Browse Source

build: add configure option to build with ninja

v0.9.2-release
Timothy J Fontaine 13 years ago
committed by Ben Noordhuis
parent
commit
d3135e0f57
  1. 9
      configure
  2. 3
      tools/gyp_node

9
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']

3
tools/gyp_node

@ -44,8 +44,7 @@ if __name__ == '__main__':
args.append('--depth=' + node_root)
# There's a bug with windows which doesn't allow this feature.
if sys.platform != 'win32':
if sys.platform != 'win32' and 'ninja' not in args:
# Tell gyp to write the Makefiles into output_dir
args.extend(['--generator-output', output_dir])

Loading…
Cancel
Save