diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2012-08-23 00:36:04 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-09-04 18:04:01 +0400 |
commit | d3135e0f57ffece13c70160606250006cd097c17 (patch) | |
tree | a677255f8dbe9b58beaa4d391dea70e30d71cdc5 /configure | |
parent | 2efa3ae64f1c713d90ea094f465695fd075db08f (diff) |
build: add configure option to build with ninja
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure index 22537d56d4e..3bf9b04879e 100755 --- a/configure +++ b/configure @@ -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'] |