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