Include node's config.gypi in atom-shell.
Removed 3 commits of our node fork.
This commit is contained in:
parent
f61a7ee5eb
commit
a749a6dc2d
3 changed files with 30 additions and 5 deletions
21
common.gypi
21
common.gypi
|
@ -1,7 +1,6 @@
|
||||||
{
|
{
|
||||||
'variables': {
|
'variables': {
|
||||||
'clang': 0,
|
'clang': 0,
|
||||||
'python': 'python',
|
|
||||||
'source_root': '<!(python tools/mac/source_root.py)',
|
'source_root': '<!(python tools/mac/source_root.py)',
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['OS=="mac"', {
|
['OS=="mac"', {
|
||||||
|
@ -9,6 +8,23 @@
|
||||||
'mac_sdk%': '<!(python tools/mac/find_sdk.py 10.8)',
|
'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.
|
# Settings to compile node under Windows.
|
||||||
'target_defaults': {
|
'target_defaults': {
|
||||||
|
@ -38,6 +54,9 @@
|
||||||
'WarnAsError': 'false',
|
'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.
|
'msvs_cygwin_shell': 0, # Strangely setting it to 1 would make building under cygwin fail.
|
||||||
|
|
|
@ -19,14 +19,14 @@ def main():
|
||||||
os.chdir(SOURCE_ROOT)
|
os.chdir(SOURCE_ROOT)
|
||||||
|
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
update_submodules()
|
|
||||||
bootstrap_brightray(args.url)
|
|
||||||
|
|
||||||
if not args.skip_network:
|
if not args.skip_network:
|
||||||
|
update_submodules()
|
||||||
update_node_modules()
|
update_node_modules()
|
||||||
|
bootstrap_brightray(args.url)
|
||||||
if sys.platform == 'cygwin':
|
if sys.platform == 'cygwin':
|
||||||
update_win32_python()
|
update_win32_python()
|
||||||
|
|
||||||
|
touch_config_gypi()
|
||||||
update_atom_shell()
|
update_atom_shell()
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,6 +68,12 @@ def update_win32_python():
|
||||||
subprocess.check_call(['git', 'pull', '--rebase'])
|
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():
|
def update_atom_shell():
|
||||||
update = os.path.join(SOURCE_ROOT, 'script', 'update.py')
|
update = os.path.join(SOURCE_ROOT, 'script', 'update.py')
|
||||||
subprocess.check_call([sys.executable, update])
|
subprocess.check_call([sys.executable, update])
|
||||||
|
|
2
vendor/node
vendored
2
vendor/node
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 83da26cac127d985c05c5b5b6591d0a19cc30dad
|
Subproject commit 777ebae2717ba49040e5fcff974294e3d4bd8106
|
Loading…
Add table
Add a link
Reference in a new issue