[vlc-commits] VLCKit: fixed 32bit compilation in Release mode on 10.6

Felix Paul Kühne git at videolan.org
Wed Feb 16 01:25:43 CET 2011


vlc/vlc-1.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Feb 16 01:25:21 2011 +0100| [129e31725fc270e3a6c7b3f0b10be77a5d4d12de] | committer: Felix Paul Kühne

VLCKit: fixed 32bit compilation in Release mode on 10.6

.. and updated xcodeproj

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=129e31725fc270e3a6c7b3f0b10be77a5d4d12de
---

 projects/macosx/framework/Configure.sh             |   24 ++++++++++++++++---
 .../framework/VLCKit.xcodeproj/project.pbxproj     |    7 +++++
 2 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/projects/macosx/framework/Configure.sh b/projects/macosx/framework/Configure.sh
index ed379e4..d275760 100644
--- a/projects/macosx/framework/Configure.sh
+++ b/projects/macosx/framework/Configure.sh
@@ -85,11 +85,27 @@ for arch in $ARCHS; do
     mkdir -p $arch
     cd $arch
 
+    echo "Running [$arch] configure $this_args"
     if test $arch = "x86_64"; then
-        this_args="--build=x86_64-apple-darwin10 $this_args"
+        export CFLAGS="-m64 -arch x86_64"
+        export CXXFLAGS="-m64 -arch x86_64"
+        export OBJCFLAGS="-m64 -arch x86_64"
+        export CPPFLAGS="-m64 -arch x86_64"
+        $top_srcdir/configure --build=x86_64-apple-darwin10 $this_args
+    fi
+    if test $arch = "i386"; then
+        export CFLAGS="-m32 -arch i686"
+        export CXXFLAGS="-m32 -arch i686"
+        export OBJCFLAGS="-m32 -arch i686"
+        export CPPFLAGS="-m32 -arch i686"
+        $top_srcdir/configure --build=i686-apple-darwin10 $this_args
+    fi
+    if test $arch = "ppc"; then
+        export CFLAGS="-m32 -arch ppc"
+        export CXXFLAGS="-m32 -arch ppc"
+        export OBJCFLAGS="-m32 -arch ppc"
+        export CPPFLAGS="-m32 -arch ppc"
+        $top_srcdir/configure --build=powerpc-apple-darwin9 $this_args
     fi
-
-    echo "Running[$arch] configure $this_args"
-    $top_srcdir/configure $this_args
     cd ..
 done
diff --git a/projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj b/projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj
index 1f431e3..b33e6e5 100644
--- a/projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj
+++ b/projects/macosx/framework/VLCKit.xcodeproj/project.pbxproj
@@ -467,7 +467,14 @@
 			isa = PBXProject;
 			buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "VLCKit" */;
 			compatibilityVersion = "Xcode 3.1";
+			developmentRegion = English;
 			hasScannedForEncodings = 1;
+			knownRegions = (
+				English,
+				Japanese,
+				French,
+				German,
+			);
 			mainGroup = 0867D691FE84028FC02AAC07 /* VLC */;
 			productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
 			projectDirPath = "";



More information about the vlc-commits mailing list