Include node's config.gypi in atom-shell.

Removed 3 commits of our node fork.
This commit is contained in:
Cheng Zhao 2013-07-02 09:16:56 +08:00
parent f61a7ee5eb
commit a749a6dc2d
3 changed files with 30 additions and 5 deletions

View file

@ -1,7 +1,6 @@
{
'variables': {
'clang': 0,
'python': 'python',
'source_root': '<!(python tools/mac/source_root.py)',
'conditions': [
['OS=="mac"', {
@ -9,6 +8,23 @@
'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': {
@ -38,6 +54,9 @@
'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.

View file

@ -19,14 +19,14 @@ def main():
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()
@ -68,6 +68,12 @@ def update_win32_python():
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])

2
vendor/node vendored

@ -1 +1 @@
Subproject commit 83da26cac127d985c05c5b5b6591d0a19cc30dad
Subproject commit 777ebae2717ba49040e5fcff974294e3d4bd8106