projects
/
mverbiste
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ada75f0
)
Allow to build for Simulator.
author
Nguyễn Hồng Quân
<ng.hong.quan@gmail.com>
Sun, 28 Oct 2012 05:56:59 +0000
(12:56 +0700)
committer
Nguyễn Hồng Quân
<ng.hong.quan@gmail.com>
Sun, 28 Oct 2012 05:56:59 +0000
(12:56 +0700)
mverbiste.pro
patch
|
blob
|
history
diff --git
a/mverbiste.pro
b/mverbiste.pro
index
24554c8
..
df50c4c
100644
(file)
--- a/
mverbiste.pro
+++ b/
mverbiste.pro
@@
-66,5
+66,12
@@
unix: CONFIG += link_pkgconfig
unix: PKGCONFIG += libxml-2.0
DEFINES += ICONV_CONST=
unix: PKGCONFIG += libxml-2.0
DEFINES += ICONV_CONST=
-# installPrefix must be explicitly exported from deployment.pri first
-DEFINES += LIBDATADIR=\\\"$${installPrefix}/data\\\"
+
+CONFIG(simulator) { # Build to run on simulator. This needs the
+ # argument CONFIG+=simulator in the config of "Qt Simulator" target.
+ DEFINES += LIBDATADIR=\\\"$$PWD/data\\\"
+}
+else {
+ # installPrefix must be explicitly exported from deployment.pri first
+ DEFINES += LIBDATADIR=\\\"$${installPrefix}/data\\\"
+}