diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2012-09-14 14:16:43 -0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-11-06 00:18:36 +0100 |
commit | ac047166f6fd6f9624294d5d9d2c672a7a76a828 (patch) | |
tree | ba42150d41f3a1548c12084a2641b91c070127be /configure | |
parent | d264b230775a9d386f3654b33ad639db7f4e7819 (diff) | |
download | node-ac047166f6fd6f9624294d5d9d2c672a7a76a828.tar.gz |
build: add configure option to generate xcode build files
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -230,6 +230,11 @@ parser.add_option("--unsafe-optimizations", dest="unsafe_optimizations", help=optparse.SUPPRESS_HELP) +parser.add_option("--xcode", + action="store_true", + dest="use_xcode", + help="Generate build files for use with xcode") + (options, args) = parser.parse_args() @@ -570,6 +575,7 @@ write('config.gypi', "# Do not edit. Generated by the configure script.\n" + config = { 'BUILDTYPE': 'Debug' if options.debug else 'Release', 'USE_NINJA': str(int(options.use_ninja or 0)), + 'USE_XCODE': str(int(options.use_xcode or 0)), } config = '\n'.join(map('='.join, config.iteritems())) + '\n' @@ -578,6 +584,8 @@ write('config.mk', if options.use_ninja: gyp_args = ['-f', 'ninja'] +elif options.use_xcode: + gyp_args = ['-f', 'xcode'] elif os.name == 'nt': gyp_args = ['-f', 'msvs', '-G', 'msvs_version=auto'] elif options.dest_os: |