X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/b80e619319b1def83d1e8b4f84042b661be1be7f..14957cd040308e3eeec43d26bae5d76da13fcd85:/gyp/JavaScriptCore.gyp?ds=sidebyside diff --git a/gyp/JavaScriptCore.gyp b/gyp/JavaScriptCore.gyp new file mode 100644 index 0000000..a520344 --- /dev/null +++ b/gyp/JavaScriptCore.gyp @@ -0,0 +1,228 @@ +{ + 'includes': [ + '../../gyp/common.gypi', + '../JavaScriptCore.gypi', + ], + 'configurations': { + 'Production': { + 'xcode_config_file': '<(project_dir)/Configurations/Base.xcconfig', + }, + 'Profiling': { + 'xcode_config_file': '<(project_dir)/Configurations/DebugRelease.xcconfig', + 'xcode_settings': { + 'STRIP_INSTALLED_PRODUCT': 'NO', + }, + }, + 'Release': { + 'xcode_config_file': '<(project_dir)/Configurations/DebugRelease.xcconfig', + 'xcode_settings': { + 'STRIP_INSTALLED_PRODUCT': 'NO', + }, + }, + 'Debug': { + 'xcode_config_file': '<(project_dir)/Configurations/DebugRelease.xcconfig', + 'xcode_settings': { + 'DEAD_CODE_STRIPPING': '$(DEAD_CODE_STRIPPING_debug)', + 'DEBUG_DEFINES': '$(DEBUG_DEFINES_debug)', + 'GCC_OPTIMIZATION_LEVEL': '$(GCC_OPTIMIZATION_LEVEL_debug)', + 'STRIP_INSTALLED_PRODUCT': '$(STRIP_INSTALLED_PRODUCT_debug)', + }, + }, + }, + 'variables': { + 'javascriptcore_include_dirs': [ + '<(project_dir)', + '<(project_dir)/icu', + ], + }, + 'target_defaults': { + 'configurations': { + 'Profiling': {}, + }, + }, + 'targets': [ + { + 'target_name': 'JavaScriptCore', + 'type': 'shared_library', + 'dependencies': [ + 'Derived Sources', + 'Update Version', + ], + 'include_dirs': [ + '<@(javascriptcore_include_dirs)', + '<(PRODUCT_DIR)/DerivedSources/JavaScriptCore', + ], + 'configurations': { + 'Production': { + 'INSTALL_PATH': '$(BUILT_PRODUCTS_DIR)', + }, + }, + 'sources': [ + '<@(javascriptcore_files)', + '<@(javascriptcore_publicheader_files)', + '<@(javascriptcore_privateheader_files)', + '<@(javascriptcore_derived_source_files)', + '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', + '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', + '/usr/lib/libicucore.dylib', + '/usr/lib/libobjc.dylib', + ], + 'mac_framework_headers': [ + '<@(javascriptcore_publicheader_files)', + ], + 'mac_framework_private_headers': [ + '<@(javascriptcore_privateheader_files)', + ], + 'xcode_config_file': '<(project_dir)/Configurations/JavaScriptCore.xcconfig', + 'sources/': [ + ['exclude', 'API/tests/'], + ['exclude', 'ForwardingHeaders/'], + ['exclude', '(?