Browse Source

Ship gyp.

Cheng Zhao 11 years ago
parent
commit
bafd6a5c49
3 changed files with 7 additions and 1 deletions
  1. 3 0
      .gitmodules
  2. 3 1
      script/update.py
  3. 1 0
      vendor/gyp

+ 3 - 0
.gitmodules

@@ -4,3 +4,6 @@
 [submodule "vendor/node"]
 	path = vendor/node
   url = https://github.com/atom/cefode-node.git
+[submodule "vendor/gyp"]
+	path = vendor/gyp
+	url = https://github.com/svn2github/gyp.git

+ 3 - 1
script/update.py

@@ -27,7 +27,9 @@ def update_frameworks_and_node(version):
 
 
 def update_gyp():
-  subprocess.check_call(['gyp', '-f', 'ninja', '--depth', '.', 'atom.gyp',
+  gyp = os.path.join(SOURCE_ROOT, 'vendor', 'gyp', 'gyp')
+  subprocess.check_call([sys.executable, gyp,
+                         '-f', 'ninja', '--depth', '.', 'atom.gyp',
                          '-Icommon.gypi', '-Ivendor/brightray/brightray.gypi',
                          '-Dtarget_arch=ia32', '-Dlibrary=static_library'])
 

+ 1 - 0
vendor/gyp

@@ -0,0 +1 @@
+Subproject commit 4e2c8086835d6e768b2e1dde82bff8f87165d257