mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Include node's config.gypi in atom-shell.
Removed 3 commits of our node fork.
This commit is contained in:
21
common.gypi
21
common.gypi
@@ -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.
|
||||
|
||||
@@ -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
2
vendor/node
vendored
Submodule vendor/node updated: 83da26cac1...777ebae271
Reference in New Issue
Block a user