forked from len0rd/rockbox
Support cross-compiling Theme Editor.
Adjust project file with some quirks to make cross-compiling a Windows binary for the Theme Editor work. Only tested on Fedora 13, so might not work on other distributions without further modifications. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27512 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1879481dc4
commit
e86940c28b
1 changed files with 10 additions and 0 deletions
|
|
@ -23,10 +23,20 @@ INCLUDEPATH += models
|
||||||
INCLUDEPATH += graphics
|
INCLUDEPATH += graphics
|
||||||
INCLUDEPATH += quazip
|
INCLUDEPATH += quazip
|
||||||
|
|
||||||
|
cross {
|
||||||
|
message("Crossbuilding for W32 binary")
|
||||||
|
# retrieve ar binary for w32 cross compile. This might be specific to
|
||||||
|
# Fedora mingw32 packages of Qt. Using member() here is needed because at
|
||||||
|
# least the F13 packages add ar options to the variable.
|
||||||
|
CROSSOPTIONS += AR=$$member(QMAKE_LIB)
|
||||||
|
# make sure we use the correct subsystem to prevent a console window coming up.
|
||||||
|
LIBS += -Wl,-subsystem,windows
|
||||||
|
}
|
||||||
# Stuff for the parse lib
|
# Stuff for the parse lib
|
||||||
libskin_parser.commands = @$(MAKE) \
|
libskin_parser.commands = @$(MAKE) \
|
||||||
TARGET_DIR=$$MYBUILDDIR \
|
TARGET_DIR=$$MYBUILDDIR \
|
||||||
CC=\"$$QMAKE_CC\" \
|
CC=\"$$QMAKE_CC\" \
|
||||||
|
$$CROSSOPTIONS \
|
||||||
BUILDDIR=$$OBJECTS_DIR \
|
BUILDDIR=$$OBJECTS_DIR \
|
||||||
-C \
|
-C \
|
||||||
$$RBBASE_DIR/lib/skin_parser \
|
$$RBBASE_DIR/lib/skin_parser \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue