diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2012-08-22 16:36:04 -0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-09-04 16:04:01 +0200 |
commit | d3135e0f57ffece13c70160606250006cd097c17 (patch) | |
tree | a677255f8dbe9b58beaa4d391dea70e30d71cdc5 /configure | |
parent | 2efa3ae64f1c713d90ea094f465695fd075db08f (diff) | |
download | android-node-v8-d3135e0f57ffece13c70160606250006cd097c17.tar.gz android-node-v8-d3135e0f57ffece13c70160606250006cd097c17.tar.bz2 android-node-v8-d3135e0f57ffece13c70160606250006cd097c17.zip |
build: add configure option to build with ninja
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -165,6 +165,11 @@ parser.add_option("--with-arm-float-abi", help="Specifies which floating-point ABI to use. Valid values are: " "soft, softfp, hard") +parser.add_option("--ninja", + action="store_true", + dest="ninja_build", + help="Generate files for the ninja build system") + (options, args) = parser.parse_args() @@ -457,7 +462,9 @@ write('config.gypi', "# Do not edit. Generated by the configure script.\n" + write('config.mk', "# Do not edit. Generated by the configure script.\n" + ("BUILDTYPE=%s\n" % ('Debug' if options.debug else 'Release'))) -if os.name == 'nt': +if options.ninja_build: + gyp_args = ['-f', 'ninja'] +elif os.name == 'nt': gyp_args = ['-f', 'msvs', '-G', 'msvs_version=2010'] else: gyp_args = ['-f', 'make'] |