diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-09-04 16:03:01 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-09-04 16:04:01 +0200 |
commit | 7b6d3cea2c165c4f83222dce9243884397584b8c (patch) | |
tree | 7e3f978ea3d1474496a56c9d879ccbdcc2117d78 /configure | |
parent | d3135e0f57ffece13c70160606250006cd097c17 (diff) | |
download | android-node-v8-7b6d3cea2c165c4f83222dce9243884397584b8c.tar.gz android-node-v8-7b6d3cea2c165c4f83222dce9243884397584b8c.tar.bz2 android-node-v8-7b6d3cea2c165c4f83222dce9243884397584b8c.zip |
build: add ninja support to Makefile
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -167,7 +167,7 @@ parser.add_option("--with-arm-float-abi", parser.add_option("--ninja", action="store_true", - dest="ninja_build", + dest="use_ninja", help="Generate files for the ninja build system") (options, args) = parser.parse_args() @@ -459,10 +459,16 @@ def write(filename, data): write('config.gypi', "# Do not edit. Generated by the configure script.\n" + pprint.pformat(output, indent=2) + "\n") -write('config.mk', "# Do not edit. Generated by the configure script.\n" + - ("BUILDTYPE=%s\n" % ('Debug' if options.debug else 'Release'))) +config = { + 'BUILDTYPE': 'Debug' if options.debug else 'Release', + 'USE_NINJA': str(int(options.use_ninja or 0)), +} +config = '\n'.join(map('='.join, config.iteritems())) + '\n' + +write('config.mk', + '# Do not edit. Generated by the configure script.\n' + config) -if options.ninja_build: +if options.use_ninja: gyp_args = ['-f', 'ninja'] elif os.name == 'nt': gyp_args = ['-f', 'msvs', '-G', 'msvs_version=2010'] |