{
'variables': {
'clang': 0,
- 'python': 'python',
'source_root': '<!(python tools/mac/source_root.py)',
'conditions': [
['OS=="mac"', {
'mac_sdk%': '<!(python tools/mac/find_sdk.py 10.8)',
}],
],
+ # Reflects node's config.gypi.
+ 'python': 'python',
+ 'node_install_npm': 'false',
+ 'node_prefix': '',
+ 'node_shared_cares': 'false',
+ 'node_shared_http_parser': 'false',
+ 'node_shared_libuv': 'false',
+ 'node_shared_openssl': 'false',
+ 'node_shared_v8': 'true',
+ 'node_shared_zlib': 'false',
+ 'node_tag': '',
+ 'node_unsafe_optimizations': 0,
+ 'node_use_dtrace': 'false',
+ 'node_use_etw': 'false',
+ 'node_use_openssl': 'true',
+ 'node_use_perfctr': 'false',
+ 'node_use_systemtap': 'false',
},
# Settings to compile node under Windows.
'target_defaults': {
'WarnAsError': 'false',
},
},
+ 'xcode_settings': {
+ 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO'
+ },
}],
],
'msvs_cygwin_shell': 0, # Strangely setting it to 1 would make building under cygwin fail.
os.chdir(SOURCE_ROOT)
args = parse_args()
- update_submodules()
- bootstrap_brightray(args.url)
-
if not args.skip_network:
+ update_submodules()
update_node_modules()
+ bootstrap_brightray(args.url)
if sys.platform == 'cygwin':
update_win32_python()
+ touch_config_gypi()
update_atom_shell()
subprocess.check_call(['git', 'pull', '--rebase'])
+def touch_config_gypi():
+ config_gypi = os.path.join(SOURCE_ROOT, 'vendor', 'node', 'config.gypi')
+ with open(config_gypi, 'w+') as f:
+ f.truncate(0)
+
+
def update_atom_shell():
update = os.path.join(SOURCE_ROOT, 'script', 'update.py')
subprocess.check_call([sys.executable, update])