From 93a08378e62b5d9ca3ea1b54ce8f5be2995201f1 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 21 Oct 2011 02:13:08 +0200 Subject: Tweak build scripts for iOS viewer. --- Makerules | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index 43ba78e5..a4ce91b3 100644 --- a/Makerules +++ b/Makerules @@ -85,21 +85,15 @@ CROSSCOMPILE=yes NOX11=yes endif -ifeq "$(OS)" "iphonesimulator" -CC = $(PLATFORM_DEVELOPER_BIN_DIR)/gcc -AR = $(PLATFORM_DEVELOPER_BIN_DIR)/ar -CFLAGS += -arch i386 -isysroot $(SDKROOT) -LDFLAGS += -arch i386 -isysroot $(SDKROOT) -RANLIB_CMD = $(PLATFORM_DEVELOPER_BIN_DIR)/ranlib $@ -CROSSCOMPILE=yes -NOX11=yes -endif +# Most variables when building for iOS are set up in ios/build_libs.sh, +# which is called from the Xcode project as a "Run Script" build step. +# The following section works for both device and simulator builds. -ifeq "$(OS)" "iphoneos" +ifeq "$(OS)" "ios" +# sadly, llvm generates invalid arm code when compiling freetype, +# so no clang or llvm-gcc for us :( CC = $(PLATFORM_DEVELOPER_BIN_DIR)/gcc AR = $(PLATFORM_DEVELOPER_BIN_DIR)/ar -CFLAGS += -arch armv7 -isysroot $(SDKROOT) -LDFLAGS += -arch armv7 -isysroot $(SDKROOT) RANLIB_CMD = $(PLATFORM_DEVELOPER_BIN_DIR)/ranlib $@ CROSSCOMPILE=yes NOX11=yes -- cgit v1.2.3