From: Nguyễn Hồng Quân Date: Sun, 28 Oct 2012 05:56:59 +0000 (+0700) Subject: Allow to build for Simulator. X-Git-Url: http://git.maemo.org/git/?p=mverbiste;a=commitdiff_plain;h=7f6d176efe9d6065af9ffd49b562db7b882fc2e7;ds=sidebyside Allow to build for Simulator. --- 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\\\" +}