From 7f6d176efe9d6065af9ffd49b562db7b882fc2e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?= Date: Sun, 28 Oct 2012 12:56:59 +0700 Subject: [PATCH] Allow to build for Simulator. --- mverbiste.pro | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mverbiste.pro b/mverbiste.pro index 24554c8..df50c4c 100644 --- a/mverbiste.pro +++ b/mverbiste.pro @@ -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\\\" +} -- 1.7.9.5