File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 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",
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" +
570575config = {
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}
574580config = '\n ' .join (map ('=' .join , config .iteritems ())) + '\n '
575581
@@ -578,6 +584,8 @@ write('config.mk',
578584
579585if options .use_ninja :
580586 gyp_args = ['-f' , 'ninja' ]
587+ elif options .use_xcode :
588+ gyp_args = ['-f' , 'xcode' ]
581589elif os .name == 'nt' :
582590 gyp_args = ['-f' , 'msvs' , '-G' , 'msvs_version=auto' ]
583591elif options .dest_os :
You can’t perform that action at this time.
0 commit comments