summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2014-08-21 15:16:38 +0200
committerTitta Heikkala <titta.heikkala@digia.com>2014-08-22 07:01:09 +0300
commit55fe15b79c2f47aa43fd51109cb1c59631761a99 (patch)
tree180c5be7ebca03f10e0f33abc6e8b1cd402e7d37
parent3b52e60d4e3611abc11e65240dda58fcd69946fd (diff)
Make the prf file be in sync with config.pri
This is needed especially for iOS as the library names are modified for the simulator Change-Id: I8be427e4be582b74b835ec1498e9e9dfec991dab Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
-rw-r--r--features/qtcommercialchart.prf20
1 files changed, 6 insertions, 14 deletions
diff --git a/features/qtcommercialchart.prf b/features/qtcommercialchart.prf
index 655f1033..87599367 100644
--- a/features/qtcommercialchart.prf
+++ b/features/qtcommercialchart.prf
@@ -1,17 +1,9 @@
INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QtCommercialChart
-
+LIBRARY_NAME = QtCommercialChart
+ios:CONFIG(iphonesimulator, iphonesimulator|iphoneos):LIBRARY_NAME = $$join(LIBRARY_NAME,,,_iphonesimulator)
CONFIG(debug, debug|release) {
-
- mac: {
- LIBS += -lQtCommercialChart_debug
- } else {
- win32: {
- LIBS += -lQtCommercialChartd
- } else {
- LIBS += -lQtCommercialChart
- }
- }
-
-} else {
- LIBS +=-lQtCommercialChart
+ mac: LIBRARY_NAME = $$join(LIBRARY_NAME,,,_debug)
+ win32: LIBRARY_NAME = $$join(LIBRARY_NAME,,,d)
}
+
+LIBS += -l$$LIBRARY_NAME