Updated framework project for SDL2
authorSam Lantinga <slouken@libsdl.org>
Sat, 28 Jan 2012 13:15:19 -0500
changeset 5805d5483acd03d
parent 579 2b0af956825c
child 581 7073b1ab6708
Updated framework project for SDL2
Xcode/SDL_mixer.xcodeproj/project.pbxproj
     1.1 --- a/Xcode/SDL_mixer.xcodeproj/project.pbxproj	Sat Jan 28 11:05:43 2012 -0500
     1.2 +++ b/Xcode/SDL_mixer.xcodeproj/project.pbxproj	Sat Jan 28 13:15:19 2012 -0500
     1.3 @@ -85,7 +85,7 @@
     1.4  		BE1FA8FC07AF96B2004B6283 /* load_aiff.c in Sources */ = {isa = PBXBuildFile; fileRef = F567D64701CD88A701F3E8B9 /* load_aiff.c */; };
     1.5  		BE1FA8FD07AF96B2004B6283 /* load_voc.c in Sources */ = {isa = PBXBuildFile; fileRef = F567D64901CD88A701F3E8B9 /* load_voc.c */; };
     1.6  		BE1FA90007AF96B2004B6283 /* load_ogg.c in Sources */ = {isa = PBXBuildFile; fileRef = B2A42D0E03FAC6A400A8000A /* load_ogg.c */; };
     1.7 -		BE1FA90207AF96B2004B6283 /* SDL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BE1FA8AE07AF95F7004B6283 /* SDL.framework */; };
     1.8 +		BE1FA90207AF96B2004B6283 /* SDL2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BE1FA8AE07AF95F7004B6283 /* SDL2.framework */; };
     1.9  		BE1FA90C07AF96B2004B6283 /* music_cmd.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CC1B87B012FB8CD7F000001 /* music_cmd.h */; };
    1.10  		BE1FA90D07AF96B2004B6283 /* music_ogg.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CC1B87D012FB8CD7F000001 /* music_ogg.h */; };
    1.11  		BE1FA90E07AF96B2004B6283 /* common.h in Headers */ = {isa = PBXBuildFile; fileRef = 5CC1B881012FB8CD7F000001 /* common.h */; };
    1.12 @@ -217,7 +217,7 @@
    1.13  		AA9F7DB714B15AE700278D1E /* FLAC.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FLAC.framework; path = Frameworks/FLAC.framework; sourceTree = "<group>"; };
    1.14  		B2A42D0E03FAC6A400A8000A /* load_ogg.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = load_ogg.c; path = ../load_ogg.c; sourceTree = SOURCE_ROOT; };
    1.15  		B2A42D0F03FAC6A400A8000A /* load_ogg.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = load_ogg.h; path = ../load_ogg.h; sourceTree = SOURCE_ROOT; };
    1.16 -		BE1FA8AE07AF95F7004B6283 /* SDL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDL.framework; path = /Library/Frameworks/SDL.framework; sourceTree = "<absolute>"; };
    1.17 +		BE1FA8AE07AF95F7004B6283 /* SDL2.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDL2.framework; path = /Library/Frameworks/SDL2.framework; sourceTree = "<absolute>"; };
    1.18  		BE1FA90507AF96B2004B6283 /* Info-Framework__Upgraded_.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Info-Framework__Upgraded_.plist"; sourceTree = "<group>"; };
    1.19  		BE1FA90607AF96B2004B6283 /* SDL_mixer.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDL_mixer.framework; sourceTree = BUILT_PRODUCTS_DIR; };
    1.20  		BE1FA95407AF96B2004B6283 /* libSDL_mixer.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libSDL_mixer.a; sourceTree = BUILT_PRODUCTS_DIR; };
    1.21 @@ -241,7 +241,7 @@
    1.22  			isa = PBXFrameworksBuildPhase;
    1.23  			buildActionMask = 2147483647;
    1.24  			files = (
    1.25 -				BE1FA90207AF96B2004B6283 /* SDL.framework in Frameworks */,
    1.26 +				BE1FA90207AF96B2004B6283 /* SDL2.framework in Frameworks */,
    1.27  				00938E1C108A36520009CF19 /* mikmod.framework in Frameworks */,
    1.28  				00939015108A5C470009CF19 /* smpeg.framework in Frameworks */,
    1.29  				AA9F7DB514B15ADC00278D1E /* Ogg.framework in Frameworks */,
    1.30 @@ -388,7 +388,7 @@
    1.31  				AA9F7DB714B15AE700278D1E /* FLAC.framework */,
    1.32  				00938E1B108A36520009CF19 /* mikmod.framework */,
    1.33  				AA9F7DB314B15ADC00278D1E /* Ogg.framework */,
    1.34 -				BE1FA8AE07AF95F7004B6283 /* SDL.framework */,
    1.35 +				BE1FA8AE07AF95F7004B6283 /* SDL2.framework */,
    1.36  				00939014108A5C470009CF19 /* smpeg.framework */,
    1.37  				AA9F7DB414B15ADC00278D1E /* Vorbis.framework */,
    1.38  			);
    1.39 @@ -619,7 +619,7 @@
    1.40  			);
    1.41  			runOnlyForDeploymentPostprocessing = 0;
    1.42  			shellPath = /bin/sh;
    1.43 -			shellScript = "cd $SYMROOT/$CONFIGURATION/SDL_mixer.framework\nif ! [ -L Frameworks ]; then\n\tln -s Versions/Current/Frameworks Frameworks\nfi\n";
    1.44 +			shellScript = "cd $SYMROOT/$CONFIGURATION/$FULL_PRODUCT_NAME\nif ! [ -L Frameworks ]; then\n    rm -f Frameworks\n    ln -s Versions/Current/Frameworks Frameworks\nfi";
    1.45  		};
    1.46  		AA9F7D9714B143C700278D1E /* Convert SDL includes to SDL Framework includes */ = {
    1.47  			isa = PBXShellScriptBuildPhase;
    1.48 @@ -633,7 +633,7 @@
    1.49  			);
    1.50  			runOnlyForDeploymentPostprocessing = 0;
    1.51  			shellPath = /bin/sh;
    1.52 -			shellScript = "cd $SYMROOT/$CONFIGURATION/SDL_mixer.framework/Versions/Current/Headers\nsed 's,#include \"\\(.*\\)\",#include <SDL/\\1>,' <SDL_mixer.h >SDL_mixer.h.new\nmv SDL_mixer.h.new SDL_mixer.h";
    1.53 +			shellScript = "cd $SYMROOT/$CONFIGURATION/$PUBLIC_HEADERS_FOLDER_PATH\nHEADER=SDL_mixer.h\nsed 's,#include \"\\(.*\\)\",#include <SDL2/\\1>,' <$HEADER >$HEADER.new\nmv $HEADER.new $HEADER";
    1.54  		};
    1.55  		BE1FA95707AF96B2004B6283 /* ShellScript */ = {
    1.56  			isa = PBXShellScriptBuildPhase;
    1.57 @@ -642,7 +642,7 @@
    1.58  			);
    1.59  			runOnlyForDeploymentPostprocessing = 0;
    1.60  			shellPath = /bin/sh;
    1.61 -			shellScript = "# clean up the framework, remove headers, extra files\nmkdir -p build/dmg-tmp\n/Developer/Tools/CpMac -r $TARGET_BUILD_DIR/SDL_mixer.framework build/dmg-tmp/\ncp pkg-support/resources/ReadMe.txt build/dmg-tmp\n\n# remove the .DS_Store files if any (we may want to provide one in the future for fancy .dmgs)\nrm -rf build/dmg-tmp/.DS_Store\n\n# create the dmg\nhdiutil create -ov -fs HFS+ -volname SDL_mixer -srcfolder build/dmg-tmp build/SDL_mixer.dmg\n\n# clean up\nrm -rf build/dmg-tmp\n\n# compress it???\n#(cd build; gnutar -zcvf SDL_mixer.dmg.tar.gz SDL_mixer.dmg)";
    1.62 +			shellScript = "# clean up the framework, remove headers, extra files\nPRODUCT_NAME=SDL2_mixer\nmkdir -p build/dmg-tmp\n/Developer/Tools/CpMac -r $TARGET_BUILD_DIR/$PRODUCT_NAME.framework build/dmg-tmp/\ncp pkg-support/resources/ReadMe.txt build/dmg-tmp\n\n# remove the .DS_Store files if any (we may want to provide one in the future for fancy .dmgs)\nrm -rf build/dmg-tmp/.DS_Store\n\n# create the dmg\nhdiutil create -ov -fs HFS+ -volname $PRODUCT_NAME -srcfolder build/dmg-tmp build/$PRODUCT_NAME.dmg\n\n# clean up\nrm -rf build/dmg-tmp";
    1.63  		};
    1.64  /* End PBXShellScriptBuildPhase section */
    1.65  
    1.66 @@ -858,17 +858,17 @@
    1.67  					USE_NATIVE_MIDI,
    1.68  					OGG_MUSIC,
    1.69  					FLAC_MUSIC,
    1.70 -					MP3_MUSIC,
    1.71 +					MP3_MUSIC_DISABLED,
    1.72  				);
    1.73  				GCC_SYMBOLS_PRIVATE_EXTERN = YES;
    1.74  				HEADER_SEARCH_PATHS = (
    1.75  					"$(HEADER_SEARCH_PATHS_QUOTED)",
    1.76 -					"$(HOME)/Library/Frameworks/SDL.framework/Headers",
    1.77 -					/Library/Frameworks/SDL.framework/Headers,
    1.78 +					"$(HOME)/Library/Frameworks/SDL2.framework/Headers",
    1.79 +					/Library/Frameworks/SDL2.framework/Headers,
    1.80  				);
    1.81  				HEADER_SEARCH_PATHS_QUOTED = "\"$(SRCROOT)/Frameworks/mikmod.framework/Headers\" \"$(SRCROOT)/Frameworks/smpeg.framework/Headers\" \"$(SRCROOT)/Frameworks/Ogg.framework/Headers\" \"$(SRCROOT)/Frameworks/Vorbis.framework/Headers\" \"$(SRCROOT)/Frameworks/FLAC.framework/Headers\"";
    1.82  				MACOSX_DEPLOYMENT_TARGET = 10.5;
    1.83 -				PRODUCT_NAME = SDL_mixer;
    1.84 +				PRODUCT_NAME = SDL2_mixer;
    1.85  				SDKROOT = macosx;
    1.86  				SEPARATE_STRIP = YES;
    1.87  				STRIP_STYLE = "non-global";
    1.88 @@ -894,17 +894,17 @@
    1.89  					USE_NATIVE_MIDI,
    1.90  					OGG_MUSIC,
    1.91  					FLAC_MUSIC,
    1.92 -					MP3_MUSIC,
    1.93 +					MP3_MUSIC_DISABLED,
    1.94  				);
    1.95  				GCC_SYMBOLS_PRIVATE_EXTERN = YES;
    1.96  				HEADER_SEARCH_PATHS = (
    1.97  					"$(HEADER_SEARCH_PATHS_QUOTED)",
    1.98 -					"$(HOME)/Library/Frameworks/SDL.framework/Headers",
    1.99 -					/Library/Frameworks/SDL.framework/Headers,
   1.100 +					"$(HOME)/Library/Frameworks/SDL2.framework/Headers",
   1.101 +					/Library/Frameworks/SDL2.framework/Headers,
   1.102  				);
   1.103  				HEADER_SEARCH_PATHS_QUOTED = "\"$(SRCROOT)/Frameworks/mikmod.framework/Headers\" \"$(SRCROOT)/Frameworks/smpeg.framework/Headers\" \"$(SRCROOT)/Frameworks/Ogg.framework/Headers\" \"$(SRCROOT)/Frameworks/Vorbis.framework/Headers\" \"$(SRCROOT)/Frameworks/FLAC.framework/Headers\"";
   1.104  				MACOSX_DEPLOYMENT_TARGET = 10.5;
   1.105 -				PRODUCT_NAME = SDL_mixer;
   1.106 +				PRODUCT_NAME = SDL2_mixer;
   1.107  				SDKROOT = macosx;
   1.108  			};
   1.109  			name = Debug;