From: Cheng Zhao Date: Sun, 12 Apr 2015 13:52:56 +0000 (+0800) Subject: Use "project_name" in atom.gyp as default target in build.py X-Git-Tag: v0.24.0~4^2~26 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4e7ed501628d3613cd0cbe1252f6d4a59372bb25;p=electron.git Use "project_name" in atom.gyp as default target in build.py --- diff --git a/script/build.py b/script/build.py index 9935c1b2..c428b95f 100755 --- a/script/build.py +++ b/script/build.py @@ -5,6 +5,8 @@ import os import subprocess import sys +from lib.util import atom_gyp + CONFIGURATIONS = ['Release', 'Debug'] SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) @@ -26,7 +28,7 @@ def main(): def parse_args(): - parser = argparse.ArgumentParser(description='Build atom-shell') + parser = argparse.ArgumentParser(description='Build project') parser.add_argument('-c', '--configuration', help='Build with Release or Debug configuration', nargs='+', @@ -34,7 +36,7 @@ def parse_args(): required=False) parser.add_argument('-t', '--target', help='Build specified target', - default='atom', + default=atom_gyp()['project_name%'], required=False) return parser.parse_args()