summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2012-08-22 16:36:04 -0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-09-04 16:04:01 +0200
commitd3135e0f57ffece13c70160606250006cd097c17 (patch)
treea677255f8dbe9b58beaa4d391dea70e30d71cdc5 /configure
parent2efa3ae64f1c713d90ea094f465695fd075db08f (diff)
downloadandroid-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-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 22537d56d4..3bf9b04879 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']