Only generate node.lib when we need to upload node headers.
This commit is contained in:
parent
766347ffae
commit
5fe9f281ac
2 changed files with 12 additions and 3 deletions
|
@ -20,7 +20,7 @@ def main():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
for config in args.configuration:
|
for config in args.configuration:
|
||||||
build_path = os.path.join('out', config)
|
build_path = os.path.join('out', config)
|
||||||
subprocess.call([ninja, '-C', build_path])
|
subprocess.call([ninja, '-C', build_path, args.target])
|
||||||
|
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
|
@ -30,6 +30,10 @@ def parse_args():
|
||||||
nargs='+',
|
nargs='+',
|
||||||
default=CONFIGURATIONS,
|
default=CONFIGURATIONS,
|
||||||
required=False)
|
required=False)
|
||||||
|
parser.add_argument('-t', '--target',
|
||||||
|
help='Build specified target',
|
||||||
|
default='atom',
|
||||||
|
required=False)
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -64,12 +64,17 @@ def dist_newer_than_head():
|
||||||
def upload(bucket, access_key, secret_key, version=ATOM_SHELL_VRESION):
|
def upload(bucket, access_key, secret_key, version=ATOM_SHELL_VRESION):
|
||||||
os.chdir(DIST_DIR)
|
os.chdir(DIST_DIR)
|
||||||
|
|
||||||
# s3put(bucket, access_key, secret_key, DIST_DIR,
|
s3put(bucket, access_key, secret_key, DIST_DIR,
|
||||||
# 'atom-shell/{0}'.format(version), [DIST_NAME])
|
'atom-shell/{0}'.format(version), [DIST_NAME])
|
||||||
s3put(bucket, access_key, secret_key, DIST_DIR,
|
s3put(bucket, access_key, secret_key, DIST_DIR,
|
||||||
'atom-shell/dist/{0}'.format(NODE_VERSION), glob.glob('node-*.tar.gz'))
|
'atom-shell/dist/{0}'.format(NODE_VERSION), glob.glob('node-*.tar.gz'))
|
||||||
|
|
||||||
if TARGET_PLATFORM == 'win32':
|
if TARGET_PLATFORM == 'win32':
|
||||||
|
# Generate the node.lib.
|
||||||
|
build = os.path.join(SOURCE_ROOT, 'script', 'build.py')
|
||||||
|
subprocess.check_call([sys.executable, build, '-c', 'Release',
|
||||||
|
'-t', 'generate_node_lib'])
|
||||||
|
|
||||||
out_dir = os.path.join(SOURCE_ROOT, 'out', 'Release')
|
out_dir = os.path.join(SOURCE_ROOT, 'out', 'Release')
|
||||||
node_lib = os.path.join(out_dir, 'node.lib')
|
node_lib = os.path.join(out_dir, 'node.lib')
|
||||||
s3put(bucket, access_key, secret_key, out_dir,
|
s3put(bucket, access_key, secret_key, out_dir,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue