File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,11 @@ parser.add_option("--unsafe-optimizations",
230
230
dest = "unsafe_optimizations" ,
231
231
help = optparse .SUPPRESS_HELP )
232
232
233
+ parser .add_option ("--xcode" ,
234
+ action = "store_true" ,
235
+ dest = "use_xcode" ,
236
+ help = "Generate build files for use with xcode" )
237
+
233
238
(options , args ) = parser .parse_args ()
234
239
235
240
@@ -570,6 +575,7 @@ write('config.gypi', "# Do not edit. Generated by the configure script.\n" +
570
575
config = {
571
576
'BUILDTYPE' : 'Debug' if options .debug else 'Release' ,
572
577
'USE_NINJA' : str (int (options .use_ninja or 0 )),
578
+ 'USE_XCODE' : str (int (options .use_xcode or 0 )),
573
579
}
574
580
config = '\n ' .join (map ('=' .join , config .iteritems ())) + '\n '
575
581
@@ -578,6 +584,8 @@ write('config.mk',
578
584
579
585
if options .use_ninja :
580
586
gyp_args = ['-f' , 'ninja' ]
587
+ elif options .use_xcode :
588
+ gyp_args = ['-f' , 'xcode' ]
581
589
elif os .name == 'nt' :
582
590
gyp_args = ['-f' , 'msvs' , '-G' , 'msvs_version=auto' ]
583
591
elif options .dest_os :
You can’t perform that action at this time.
0 commit comments