diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-03-05 12:50:46 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-03-05 12:50:46 +0000 |
commit | 8c6b8e6cd55dc3cf72ed696efab019ef627cad2f (patch) | |
tree | a0e27761d5005256836d8cabd8f5840a1cc7dd1e | |
parent | 57bf8058e53af79f5d7f57f912df25d6b167e83a (diff) | |
download | rockbox-8c6b8e6cd55dc3cf72ed696efab019ef627cad2f.tar.gz rockbox-8c6b8e6cd55dc3cf72ed696efab019ef627cad2f.zip |
Theme Editor: make cross compiling on OS X work.
The attempt to detect if building a fat library is necessary for libskin_parser
makes cross compiling fail on OS X. Allow overriding the target platform for
libskin_parser to fix that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29515 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | lib/skin_parser/Makefile | 3 | ||||
-rw-r--r-- | utils/themeeditor/themeeditor.pro | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/skin_parser/Makefile b/lib/skin_parser/Makefile index fe417dbc58..5105b040fd 100644 --- a/lib/skin_parser/Makefile +++ b/lib/skin_parser/Makefile | |||
@@ -18,6 +18,7 @@ TARGET_DIR ?= ./ | |||
18 | 18 | ||
19 | # construct build directory if BUILDDIR is not set. | 19 | # construct build directory if BUILDDIR is not set. |
20 | BUILDDIR ?= $(TARGET_DIR)build | 20 | BUILDDIR ?= $(TARGET_DIR)build |
21 | TARGETPLATFORM ?= $(shell uname) | ||
21 | 22 | ||
22 | ifdef RBARCH | 23 | ifdef RBARCH |
23 | CFLAGS += -arch $(RBARCH) | 24 | CFLAGS += -arch $(RBARCH) |
@@ -37,7 +38,7 @@ $(OBJDIR)%.o: %.c | |||
37 | $(SILENT)mkdir -p $(dir $@) | 38 | $(SILENT)mkdir -p $(dir $@) |
38 | $(SILENT)$(CC) $(CFLAGS) -c -o $@ $< | 39 | $(SILENT)$(CC) $(CFLAGS) -c -o $@ $< |
39 | 40 | ||
40 | ifeq ($(findstring Darwin,$(shell uname)),Darwin) | 41 | ifeq ($(findstring Darwin,$(TARGETPLATFORM)),Darwin) |
41 | # some trickery to build ppc and i386 from a single call | 42 | # some trickery to build ppc and i386 from a single call |
42 | $(OUTPUT).a: $(TARGET_DIR)$(OUTPUT)i386.a $(TARGET_DIR)$(OUTPUT)ppc.a | 43 | $(OUTPUT).a: $(TARGET_DIR)$(OUTPUT)i386.a $(TARGET_DIR)$(OUTPUT)ppc.a |
43 | @echo lipo $(TARGET_DIR)$@ | 44 | @echo lipo $(TARGET_DIR)$@ |
diff --git a/utils/themeeditor/themeeditor.pro b/utils/themeeditor/themeeditor.pro index b8d1dd3523..45300e4b8f 100644 --- a/utils/themeeditor/themeeditor.pro +++ b/utils/themeeditor/themeeditor.pro | |||
@@ -40,7 +40,7 @@ cross { | |||
40 | # retrieve ar binary for w32 cross compile. This might be specific to | 40 | # retrieve ar binary for w32 cross compile. This might be specific to |
41 | # Fedora mingw32 packages of Qt. Using member() here is needed because at | 41 | # Fedora mingw32 packages of Qt. Using member() here is needed because at |
42 | # least the F13 packages add ar options to the variable. | 42 | # least the F13 packages add ar options to the variable. |
43 | CROSSOPTIONS += AR=$$member(QMAKE_LIB) | 43 | CROSSOPTIONS += AR=$$member(QMAKE_LIB) TARGETPLATFORM=\"MinGW\" |
44 | 44 | ||
45 | # make sure we use the correct subsystem to prevent a console window coming up. | 45 | # make sure we use the correct subsystem to prevent a console window coming up. |
46 | LIBS += -Wl,-subsystem,windows | 46 | LIBS += -Wl,-subsystem,windows |