[cairo-commit] [cairo-www] src/end_to_end_build_for_mac_os_x.mdwn

Carl Worth cworth at freedesktop.org
Mon Oct 19 21:28:34 PDT 2009


 src/end_to_end_build_for_mac_os_x.mdwn |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

New commits:
commit d47c68d9824142cf006ebac4a38aab426ae30538
Author: travisgriggs <travisgriggs at web>
Date:   Mon Oct 19 21:28:34 2009 -0700

diff --git a/src/end_to_end_build_for_mac_os_x.mdwn b/src/end_to_end_build_for_mac_os_x.mdwn
index f03c67a..5c7d32a 100644
--- a/src/end_to_end_build_for_mac_os_x.mdwn
+++ b/src/end_to_end_build_for_mac_os_x.mdwn
@@ -1,4 +1,4 @@
-Goal: Build CairoGraphics Frameworks directory, using only X-Code. Produce fat binaries capable of running on 10.4, 10.5, 10.6, on PPC, and on Intel.
+Goal: Build CairoGraphics Frameworks directory, using only X-Code. Produce fat binaries capable of running on 10.4, 10.5, 10.6, on PPC, and on Intel. The result is for the native OSX backends, not the any of the X-Windows ones.
 
 Original Author: Travis Griggs (travisgriggs at gmail.com)
 
@@ -70,14 +70,14 @@ The --prefix argument affects the make install command, such that it places any
 We set the following 3 environment variables to influence the compile/link operations buried in subsequent commands, so that we build fat binaries, that can be run as far back as 10.4. If you open a new shell, you'll need to set these variables again.
 
        export MACOSX_DEPLOYMENT_TARGET=10.4
-       export LDFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
-       export CFLAGS=-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
+       export LDFLAGS=-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
+       export CFLAGS="-Os -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
 
 What if you want 64 bit builds too? Then you have a choice to make. If you want 64 bit, you have to set 10.5 as your low limit. And you end up with the following variant of the above. You should do only one of the 2 sets, the above 3 commands, or the 3 below.
 
        export MACOSX_DEPLOYMENT_TARGET=10.5
-       export LDFLAGS=-arch ppc -arch i386 -arch ppc64 -arch x85_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk
-       export CFLAGS=-Os -arch ppc -arch i386 -arch ppc64 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk
+       export LDFLAGS="-arch ppc -arch i386 -arch ppc64 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk"
+       export CFLAGS="-Os -arch ppc -arch i386 -arch ppc64 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk"
 
 ### Build and install libpng
 
@@ -112,6 +112,7 @@ This builds the final library. It's not ready for widespread distribution yet, k
        make
        make install
 
+Why the --disable-xlib thing? The configure script will print a list of features that are enabled and disabled when it is done. It mostly guesses them right. It is actually possible to build a Cairo library with both X windows and Quartz backends enabled, but actually using the library then has some nuances. So for the goal of this particular build, to produce a Cairo framework to use with native Apple apps, we disable the X windows backend.
 
 
 ### Package dylibs as a relocatable Frameworks staging directory


More information about the cairo-commit mailing list