]> khamidou — GitHub mirrors - electron.git/commitdiff
Only build static_library version of libchromiumcontent in CI
authorCheng Zhao <zcbenz@gmail.com>
Tue, 7 Apr 2015 15:40:36 +0000 (23:40 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 7 Apr 2015 15:41:42 +0000 (23:41 +0800)
script/bootstrap.py
script/cibuild
vendor/brightray

index fadc7a20bda1f53d87a276200ab41a0e7f03820f..caf23ed501802fdaf08c36e39e31b4f1c75bff4d 100755 (executable)
@@ -28,7 +28,7 @@ def main():
     update_win32_python()
   update_submodules()
   update_node_modules('.')
-  bootstrap_brightray(args.url)
+  bootstrap_brightray(args.dev, args.url)
 
   create_chrome_version_h()
   touch_config_gypi()
@@ -47,6 +47,8 @@ def parse_args():
   parser.add_argument('-v', '--verbose',
                       action='store_true',
                       help='Prints the output of the subprocesses')
+  parser.add_argument('-d', '--dev', action='store_true',
+                      help='Do not download static_library build')
   parser.add_argument('-y', '--yes', '--assume-yes',
                       action='store_true',
                       help='Run non-interactively by assuming "yes" to all ' \
@@ -66,10 +68,12 @@ def update_submodules():
   execute_stdout(['git', 'submodule', 'update', '--init', '--recursive'])
 
 
-def bootstrap_brightray(url):
+def bootstrap_brightray(is_dev, url):
   bootstrap = os.path.join(VENDOR_DIR, 'brightray', 'script', 'bootstrap')
-  execute_stdout([sys.executable, bootstrap, '--commit',
-                  LIBCHROMIUMCONTENT_COMMIT, url])
+  args = ['--commit', LIBCHROMIUMCONTENT_COMMIT, url]
+  if is_dev:
+    args = ['--dev'] + args
+  execute_stdout([sys.executable, bootstrap] + args)
 
 
 def update_node_modules(dirname):
index b71a1992522c8c0342fcd7f766345eb29e8f8684..264e12309884f127cc234d3335c19ddfc11c65e7 100755 (executable)
@@ -43,10 +43,10 @@ def main():
   if is_travis and sys.platform == 'linux2':
     with scoped_env('CXX', 'g++'):
       with scoped_env('CC', 'gcc'):
-        run_script('bootstrap.py')
+        run_script('bootstrap.py', ['-v', '--dev'])
     run_script('update.py')
   else:
-    run_script('bootstrap.py')
+    run_script('bootstrap.py', ['-v', '--dev'])
 
   run_script('cpplint.py')
   if sys.platform != 'win32':
index 616ce9051fef9896651686aa9a0b6403caa4e1a8..e1304edb03ac774d1386be19bcced0822aabbc70 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 616ce9051fef9896651686aa9a0b6403caa4e1a8
+Subproject commit e1304edb03ac774d1386be19bcced0822aabbc70