@@ -1,60 +1,52 | |||
|
1 | 1 | TEMPLATE = lib |
|
2 | 2 | TARGET = qtcommercialchartqml |
|
3 | 3 | CONFIG += qt plugin |
|
4 | 4 | QT += declarative |
|
5 | 5 | |
|
6 | 6 | !include( ../config.pri ) { |
|
7 | 7 | error( "Couldn't find the config.pri file!" ) |
|
8 | 8 | } |
|
9 | 9 | |
|
10 | 10 | DESTDIR = $$CHART_BUILD_PLUGIN_DIR |
|
11 | 11 | contains(QT_MAJOR_VERSION, 5) { |
|
12 | 12 | # TODO: QtQuick2 not supported by the implementation currently |
|
13 | 13 | DEFINES += QTQUICK2 |
|
14 | 14 | } |
|
15 | 15 | |
|
16 | 16 | OBJECTS_DIR = $$CHART_BUILD_DIR/plugin |
|
17 | 17 | MOC_DIR = $$CHART_BUILD_DIR/plugin |
|
18 | 18 | UI_DIR = $$CHART_BUILD_DIR/plugin |
|
19 | 19 | RCC_DIR = $$CHART_BUILD_DIR/plugin |
|
20 | 20 | |
|
21 | 21 | SOURCES += \ |
|
22 | 22 | plugin.cpp \ |
|
23 | 23 | declarativechart.cpp \ |
|
24 | 24 | declarativexyseries.cpp \ |
|
25 | 25 | declarativexypoint.cpp \ |
|
26 | 26 | declarativelineseries.cpp \ |
|
27 | 27 | declarativesplineseries.cpp \ |
|
28 | 28 | declarativeareaseries.cpp \ |
|
29 | 29 | declarativescatterseries.cpp \ |
|
30 | 30 | declarativepieseries.cpp \ |
|
31 | 31 | declarativebarseries.cpp |
|
32 | 32 | HEADERS += \ |
|
33 | 33 | declarativechart.h \ |
|
34 | 34 | declarativexyseries.h \ |
|
35 | 35 | declarativexypoint.h \ |
|
36 | 36 | declarativelineseries.h \ |
|
37 | 37 | declarativesplineseries.h \ |
|
38 | 38 | declarativeareaseries.h \ |
|
39 | 39 | declarativescatterseries.h \ |
|
40 | 40 | declarativepieseries.h \ |
|
41 | 41 | declarativebarseries.h |
|
42 | 42 | |
|
43 | 43 | TARGETPATH = QtCommercial/Chart |
|
44 | 44 | target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH |
|
45 | 45 | qmldir.files += $$PWD/qmldir |
|
46 | 46 | qmldir.path += $$[QT_INSTALL_IMPORTS]/$$TARGETPATH |
|
47 | 47 | INSTALLS += target qmldir |
|
48 | 48 | |
|
49 | !mac { | |
|
50 | FILE = $$PWD/qmldir | |
|
51 | win32:{FILE = $$replace(FILE, "/","\\")} | |
|
52 |
|
|
|
53 | }else{ | |
|
54 | # Hack to make qml plugins available as internal build versions | |
|
55 | exists($$CHART_BUILD_PLUGIN_DIR"/lib"$$TARGET".dylib") { | |
|
56 | QMAKE_POST_LINK += " & $$QMAKE_COPY qmldir $$CHART_BUILD_PLUGIN_DIR" | |
|
57 | } | |
|
58 | } | |
|
59 | ||
|
60 | ||
|
49 | FILE = $$PWD/qmldir | |
|
50 | win32:{FILE = $$replace(FILE, "/","\\")} | |
|
51 | mac: QMAKE_POST_LINK += " & " | |
|
52 | QMAKE_POST_LINK += $$QMAKE_COPY $$FILE $$CHART_BUILD_PLUGIN_DIR |
General Comments 0
You need to be logged in to leave comments.
Login now