Skip to content

Commit ac04716

Browse files
tjfontainebnoordhuis
authored andcommitted
build: add configure option to generate xcode build files
1 parent d264b23 commit ac04716

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configure

+8
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ parser.add_option("--unsafe-optimizations",
230230
dest="unsafe_optimizations",
231231
help=optparse.SUPPRESS_HELP)
232232

233+
parser.add_option("--xcode",
234+
action="store_true",
235+
dest="use_xcode",
236+
help="Generate build files for use with xcode")
237+
233238
(options, args) = parser.parse_args()
234239

235240

@@ -570,6 +575,7 @@ write('config.gypi', "# Do not edit. Generated by the configure script.\n" +
570575
config = {
571576
'BUILDTYPE': 'Debug' if options.debug else 'Release',
572577
'USE_NINJA': str(int(options.use_ninja or 0)),
578+
'USE_XCODE': str(int(options.use_xcode or 0)),
573579
}
574580
config = '\n'.join(map('='.join, config.iteritems())) + '\n'
575581

@@ -578,6 +584,8 @@ write('config.mk',
578584

579585
if options.use_ninja:
580586
gyp_args = ['-f', 'ninja']
587+
elif options.use_xcode:
588+
gyp_args = ['-f', 'xcode']
581589
elif os.name == 'nt':
582590
gyp_args = ['-f', 'msvs', '-G', 'msvs_version=auto']
583591
elif options.dest_os:

0 commit comments

Comments
 (0)