]> khamidou — GitHub mirrors - electron.git/commitdiff
Update to node.gyp's changes
authorCheng Zhao <zcbenz@gmail.com>
Wed, 10 Jun 2015 06:11:34 +0000 (14:11 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 10 Jun 2015 06:11:34 +0000 (14:11 +0800)
common.gypi
script/update.py

index c6f3320c0a5b889cf6b816b82c6df75f58b75278..7c6e45d045b89eec347cd3e18df19e60951cd099 100644 (file)
@@ -9,6 +9,7 @@
     'component%': 'static_library',
     'python': 'python',
     'openssl_no_asm': 1,
+    'node_target_type': 'shared_library',
     'node_install_npm': 'false',
     'node_prefix': '',
     'node_shared_cares': 'false',
         ],
       }],
       ['_target_name=="node"', {
-        'include_dirs': [ '<(libchromiumcontent_src_dir)/v8/include' ],
+        'include_dirs': [
+          '<(libchromiumcontent_src_dir)/v8',
+          '<(libchromiumcontent_src_dir)/v8/include',
+        ],
         'conditions': [
           ['OS=="mac" and libchromiumcontent_component==0', {
             # -all_load is the "whole-archive" on OS X.
index aaa07526c05feaac0197e05eb5d705cf8cdd6030..23497ff9e5ac563543ae6eb4b9b2b61ae9687961 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 
 import os
+import platform
 import subprocess
 import sys
 
@@ -43,10 +44,19 @@ def run_gyp(target_arch, component):
   defines = [
     '-Dlibchromiumcontent_component={0}'.format(component),
     '-Dtarget_arch={0}'.format(target_arch),
+    '-Dhost_arch={0}'.format(target_arch),
     '-Dlibrary=static_library',
   ]
   return subprocess.call([python, gyp, '-f', 'ninja', '--depth', '.',
                           'atom.gyp', '-Icommon.gypi'] + defines)
 
+
+def get_host_arch():
+  if platform.architecture()[0] == '32bit':
+    return 'ia32'
+  else:
+    return 'x64'
+
+
 if __name__ == '__main__':
   sys.exit(main())