diff options
author | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2021-01-12 05:47:34 -0500 |
---|---|---|
committer | Jonathan Buchanan <jonathan.russ.buchanan@gmail.com> | 2021-01-12 05:47:34 -0500 |
commit | e046b4133c98e830c445f36554030a0656567bcf (patch) | |
tree | 76f3a02ea1566507a508bba301c433c36daa5fe0 /node.gyp | |
parent | 23af36d99ea59d934c38ca8a69536119c49bac7f (diff) | |
download | ios-node-v8-e046b4133c98e830c445f36554030a0656567bcf.tar.gz ios-node-v8-e046b4133c98e830c445f36554030a0656567bcf.tar.bz2 ios-node-v8-e046b4133c98e830c445f36554030a0656567bcf.zip |
edit build process so node runs properly on ios
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 30 |
1 files changed, 17 insertions, 13 deletions
@@ -441,7 +441,7 @@ }, }, 'conditions': [ - ['OS != "aix" and OS != "mac"', { + ['OS != "aix" and OS != "mac" and OS != "ios"', { 'ldflags': [ '-Wl,--whole-archive', '<(obj_dir)/<(STATIC_LIB_PREFIX)<(node_core_target_name)<(STATIC_LIB_SUFFIX)', @@ -522,10 +522,6 @@ ], }, ], - }, { - 'sources': [ - 'src/node_code_cache_stub.cc' - ], }], ['node_use_node_snapshot=="true"', { 'dependencies': [ @@ -547,10 +543,6 @@ ], }, ], - }, { - 'sources': [ - 'src/node_snapshot_stub.cc' - ], }], [ 'OS in "linux freebsd" and ' 'target_arch=="x64"', { @@ -821,6 +813,18 @@ 'src/node_code_cache_stub.cc', ] }], + [ 'node_target_type=="static_library" and OS=="ios"', { + 'sources': [ + 'src/node_snapshot_stub.cc', + 'src/node_code_cache_stub.cc', + ] + }], + [ 'node_target_type!="static_library" and OS=="ios"', { + 'sources': [ + 'src/node_snapshot_stub.cc', + 'src/node_code_cache_stub.cc', + ] + }], [ 'node_shared=="true" and node_module_version!="" and OS!="win"', { 'product_extension': '<(shlib_suffix)', 'xcode_settings': { @@ -908,7 +912,7 @@ '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o' ], }], - [ 'OS!="mac" and OS!="linux"', { + [ 'OS!="mac" and OS!="ios" and OS!="linux"', { 'sources': [ 'src/node_dtrace_ustack.cc', 'src/node_dtrace_provider.cc', @@ -970,7 +974,7 @@ 'src/node_crypto.h' ], }], - [ 'OS in "linux freebsd mac solaris" and ' + [ 'OS in "linux freebsd mac ios solaris" and ' 'target_arch=="x64" and ' 'node_target_type=="executable"', { 'defines': [ 'NODE_ENABLE_LARGE_CODE_PAGES=1' ], @@ -1126,7 +1130,7 @@ 'target_name': 'node_dtrace_provider', 'type': 'none', 'conditions': [ - [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', { + [ 'node_use_dtrace=="true" and OS!="mac" and OS!="ios" and OS!="linux"', { 'actions': [ { 'action_name': 'node_dtrace_provider_o', @@ -1161,7 +1165,7 @@ 'target_name': 'node_dtrace_ustack', 'type': 'none', 'conditions': [ - [ 'node_use_dtrace=="true" and OS!="mac" and OS!="linux"', { + [ 'node_use_dtrace=="true" and OS!="mac" and OS!="ios" and OS!="linux"', { 'actions': [ { 'action_name': 'node_dtrace_ustack_constants', |