Allow to build for Simulator.
authorNguyễn Hồng Quân <ng.hong.quan@gmail.com>
Sun, 28 Oct 2012 05:56:59 +0000 (12:56 +0700)
committerNguyễn Hồng Quân <ng.hong.quan@gmail.com>
Sun, 28 Oct 2012 05:56:59 +0000 (12:56 +0700)
mverbiste.pro

index 24554c8..df50c4c 100644 (file)
@@ -66,5 +66,12 @@ unix: CONFIG += link_pkgconfig
 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\\\"
+}