[xiph-commits] r3010 - liboggplay/trunk/plugin/mac/liboggplay.xcodeproj

tahn at svn.annodex.net tahn at svn.annodex.net
Wed Jun 20 16:46:15 PDT 2007


Author: tahn
Date: 2007-06-20 16:46:15 -0700 (Wed, 20 Jun 2007)
New Revision: 3010

Modified:
   liboggplay/trunk/plugin/mac/liboggplay.xcodeproj/project.pbxproj
Log:
Added a comment explaining the need to copy/rename libraries.


Modified: liboggplay/trunk/plugin/mac/liboggplay.xcodeproj/project.pbxproj
===================================================================
--- liboggplay/trunk/plugin/mac/liboggplay.xcodeproj/project.pbxproj	2007-06-20 22:38:54 UTC (rev 3009)
+++ liboggplay/trunk/plugin/mac/liboggplay.xcodeproj/project.pbxproj	2007-06-20 23:46:15 UTC (rev 3010)
@@ -329,7 +329,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "SRC=/usr/local/lib\nDST=$SRCROOT/libs\nLIBS=\"ogg theora vorbis vorbisenc speex fishsound oggz oggplay\"\nechocmd() { echo \"$*\"; $*; }\n[ ! -d $DST ] && echocmd mkdir $DST\n[ ! -d $DST ] && echo \"Could not create $DST\" && exit 1\nfor L in $LIBS; do\n  if [ -e $SRC/lib$L.a ]; then\n    if [ $DST/local_$L.a -ot $SRC/lib$L.a ]; then\n      echocmd cp $SRC/lib$L.a $DST/local_$L.a || exit 1\n    fi\n  else\n    echo \"Missing $SRC/lib$L.a\"\n    exit 1\n  fi\ndone\n";
+			shellScript = "# If Xcode can find a .dylib of the same name as our static .a libraries, it\n# will *automatically* use dynamic linking, and there is NO way to tell it\n# otherwise. What's worse, Xcode magically knows about /usr/local/lib, so simply\n# moving the .a files away from there isn't sufficient; we have to rename them\n# as well. Bravo, Xcode writers, bravo. What happened to letting the *users*\n# decide what they want to do? Oh wait, that's right, this is a Mac.\n\nSRC=/usr/local/lib\nDST=$SRCROOT/libs\nLIBS=\"ogg theora vorbis vorbisenc speex fishsound oggz oggplay\"\nechocmd() { echo \"$*\"; $*; }\n[ ! -d $DST ] && echocmd mkdir $DST\n[ ! -d $DST ] && echo \"Could not create $DST\" && exit 1\nfor L in $LIBS; do\n  if [ -e $SRC/lib$L.a ]; then\n    if [ $DST/local_$L.a -ot $SRC/lib$L.a ]; then\n      echocmd cp $SRC/lib$L.a $DST/local_$L.a || exit 1\n    fi\n  else\n    echo \"Missing $SRC/lib$L.a\"\n    exit 1\n  fi\ndone\n";
 		};
 /* End PBXShellScriptBuildPhase section */
 



More information about the commits mailing list