private PBXObjectRef addNativeTargetConfigurationList ( final Map objects , final String projectName ) { // // Create a configuration list with // two stock configurations: Debug and Release // final List < PBXObjectRef > configurations = new ArrayList <> ( ) ; final Map debugSettings = new HashMap ( ) ; debugSettings . put ( "COPY_PHASE_STRIP" , "NO" ) ; debugSettings . put ( "GCC_DYNAMIC_NO_PIC" , "NO" ) ; debugSettings . put ( "GCC_ENABLE_FIX_AND_CONTINUE" , "YES" ) ; debugSettings . put ( "GCC_MODEL_TUNING" , "G5" ) ; debugSettings . put ( "GCC_OPTIMIZATION_LEVEL" , "0" ) ; debugSettings . put ( "INSTALL_PATH" , "$(HOME)/bin" ) ; debugSettings . put ( "PRODUCT_NAME" , projectName ) ; debugSettings . put ( "ZERO_LINK" , "YES" ) ; final PBXObjectRef debugConfig = createXCBuildConfiguration ( "Debug" , debugSettings ) ; objects . put ( debugConfig . getID ( ) , debugConfig . getProperties ( ) ) ; configurations . add ( debugConfig ) ; final Map < String , Object > releaseSettings = new HashMap <> ( ) ; final List < String > archs = new ArrayList <> ( ) ; archs . add ( "ppc" ) ; archs . add ( "i386" ) ; releaseSettings . put ( "ARCHS" , archs ) ; releaseSettings . put ( "GCC_GENERATE_DEBUGGING_SYMBOLS" , "NO" ) ; releaseSettings . put ( "GCC_MODEL_TUNING" , "G5" ) ; releaseSettings . put ( "INSTALL_PATH" , "$(HOME)/bin" ) ; releaseSettings . put ( "PRODUCT_NAME" , projectName ) ; final PBXObjectRef releaseConfig = createXCBuildConfiguration ( "Release" , releaseSettings ) ; objects . put ( releaseConfig . getID ( ) , releaseConfig . getProperties ( ) ) ; configurations . add ( releaseConfig ) ; final PBXObjectRef configurationList = createXCConfigurationList ( configurations ) ; objects . put ( configurationList . getID ( ) , configurationList . getProperties ( ) ) ; return configurationList ; }
Add native target configuration list .