Use "project_name" in atom.gyp as default target in build.py
This commit is contained in:
parent
43fe82e1e5
commit
4e7ed50162
1 changed files with 4 additions and 2 deletions
|
@ -5,6 +5,8 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from lib.util import atom_gyp
|
||||||
|
|
||||||
|
|
||||||
CONFIGURATIONS = ['Release', 'Debug']
|
CONFIGURATIONS = ['Release', 'Debug']
|
||||||
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||||
|
@ -26,7 +28,7 @@ def main():
|
||||||
|
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
parser = argparse.ArgumentParser(description='Build atom-shell')
|
parser = argparse.ArgumentParser(description='Build project')
|
||||||
parser.add_argument('-c', '--configuration',
|
parser.add_argument('-c', '--configuration',
|
||||||
help='Build with Release or Debug configuration',
|
help='Build with Release or Debug configuration',
|
||||||
nargs='+',
|
nargs='+',
|
||||||
|
@ -34,7 +36,7 @@ def parse_args():
|
||||||
required=False)
|
required=False)
|
||||||
parser.add_argument('-t', '--target',
|
parser.add_argument('-t', '--target',
|
||||||
help='Build specified target',
|
help='Build specified target',
|
||||||
default='atom',
|
default=atom_gyp()['project_name%'],
|
||||||
required=False)
|
required=False)
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue