@@ -1,36 +1,38 | |||||
1 | !include( ../config.pri ) { |
|
1 | !include( ../config.pri ) { | |
2 | error( "Couldn't find the config.pri file!" ) |
|
2 | error( "Couldn't find the config.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | DESTDIR = $$CHART_BUILD_BIN_DIR |
|
5 | DESTDIR = $$CHART_BUILD_BIN_DIR | |
6 | OBJECTS_DIR = $$CHART_BUILD_DIR/demos/$$TARGET |
|
6 | OBJECTS_DIR = $$CHART_BUILD_DIR/demos/$$TARGET | |
7 | MOC_DIR = $$CHART_BUILD_DIR/demos/$$TARGET |
|
7 | MOC_DIR = $$CHART_BUILD_DIR/demos/$$TARGET | |
8 | UI_DIR = $$CHART_BUILD_DIR/demos/$$TARGET |
|
8 | UI_DIR = $$CHART_BUILD_DIR/demos/$$TARGET | |
9 | RCC_DIR = $$CHART_BUILD_DIR/demos/$$TARGET |
|
9 | RCC_DIR = $$CHART_BUILD_DIR/demos/$$TARGET | |
10 |
|
10 | |||
11 | TEMPLATE = app |
|
11 | TEMPLATE = app | |
12 | QT += core gui |
|
12 | QT += core gui | |
13 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets |
|
13 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | |
14 |
|
14 | |||
15 | # staticlib config causes problems when building executables |
|
15 | # staticlib config causes problems when building executables | |
16 | staticlib: CONFIG-=staticlib |
|
16 | staticlib: CONFIG-=staticlib | |
17 |
|
17 | |||
18 | android { |
|
18 | android { | |
19 | # Workaround to fix android deployment, which seems to always look for target in |
|
19 | # Workaround to fix android deployment, which seems to always look for target in | |
20 | # OUT_PWD instead of DESTDIR. |
|
20 | # OUT_PWD instead of DESTDIR. | |
21 |
|
|
21 | COPY_PARAMETERS = "$$CHART_BUILD_BIN_DIR/lib$${TARGET}.so $$OUT_PWD/lib$${TARGET}.so" | |
|
22 | contains(QMAKE_HOST.os, Windows): COPY_PARAMETERS = $$replace(COPY_PARAMETERS, "/","\\") | |||
|
23 | QMAKE_POST_LINK += $$QMAKE_COPY $$COPY_PARAMETERS | |||
22 |
|
24 | |||
23 | contains(TARGET, qml.*) { |
|
25 | contains(TARGET, qml.*) { | |
24 | charts_qmldir.files = $$CHART_BUILD_QML_PLUGIN_DIR/qmldir |
|
26 | charts_qmldir.files = $$CHART_BUILD_QML_PLUGIN_DIR/qmldir | |
25 | charts_qmldir.path = /assets/imports/QtCommercial/Chart |
|
27 | charts_qmldir.path = /assets/imports/QtCommercial/Chart | |
26 | charts_qmlplugin.files = $$CHART_BUILD_QML_PLUGIN_DIR/libqtcommercialchartqml.so |
|
28 | charts_qmlplugin.files = $$CHART_BUILD_QML_PLUGIN_DIR/libqtcommercialchartqml.so | |
27 | charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH |
|
29 | charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH | |
28 | INSTALLS += charts_qmldir charts_qmlplugin |
|
30 | INSTALLS += charts_qmldir charts_qmlplugin | |
29 | } else:contains(TARGET, quick2.*) { |
|
31 | } else:contains(TARGET, quick2.*) { | |
30 | charts_qmldir.files = $$CHART_BUILD_QML2_PLUGIN_DIR/qmldir |
|
32 | charts_qmldir.files = $$CHART_BUILD_QML2_PLUGIN_DIR/qmldir | |
31 | charts_qmldir.path = /assets/qml/QtCommercial/Chart |
|
33 | charts_qmldir.path = /assets/qml/QtCommercial/Chart | |
32 | charts_qmlplugin.files = $$CHART_BUILD_QML2_PLUGIN_DIR/libqtcommercialchartqml2.so |
|
34 | charts_qmlplugin.files = $$CHART_BUILD_QML2_PLUGIN_DIR/libqtcommercialchartqml2.so | |
33 | charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH |
|
35 | charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH | |
34 | INSTALLS += charts_qmldir charts_qmlplugin |
|
36 | INSTALLS += charts_qmldir charts_qmlplugin | |
35 | } |
|
37 | } | |
36 | } |
|
38 | } |
@@ -1,30 +1,32 | |||||
1 | !include( ../config.pri ) { |
|
1 | !include( ../config.pri ) { | |
2 | error( "Couldn't find the config.pri file!" ) |
|
2 | error( "Couldn't find the config.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | DESTDIR = $$CHART_BUILD_BIN_DIR |
|
5 | DESTDIR = $$CHART_BUILD_BIN_DIR | |
6 | OBJECTS_DIR = $$CHART_BUILD_DIR/examples/$$TARGET |
|
6 | OBJECTS_DIR = $$CHART_BUILD_DIR/examples/$$TARGET | |
7 | MOC_DIR = $$CHART_BUILD_DIR/examples/$$TARGET |
|
7 | MOC_DIR = $$CHART_BUILD_DIR/examples/$$TARGET | |
8 | UI_DIR = $$CHART_BUILD_DIR/examples/$$TARGET |
|
8 | UI_DIR = $$CHART_BUILD_DIR/examples/$$TARGET | |
9 | RCC_DIR = $$CHART_BUILD_DIR/examples/$$TARGET |
|
9 | RCC_DIR = $$CHART_BUILD_DIR/examples/$$TARGET | |
10 |
|
10 | |||
11 | TEMPLATE = app |
|
11 | TEMPLATE = app | |
12 | QT += core gui |
|
12 | QT += core gui | |
13 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets |
|
13 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | |
14 |
|
14 | |||
15 | # staticlib config causes problems when building executables |
|
15 | # staticlib config causes problems when building executables | |
16 | staticlib: CONFIG-=staticlib |
|
16 | staticlib: CONFIG-=staticlib | |
17 |
|
17 | |||
18 | android { |
|
18 | android { | |
19 | # Workaround to fix android deployment, which seems to always look for target in |
|
19 | # Workaround to fix android deployment, which seems to always look for target in | |
20 | # OUT_PWD instead of DESTDIR. |
|
20 | # OUT_PWD instead of DESTDIR. | |
21 |
|
|
21 | COPY_PARAMETERS = "$$CHART_BUILD_BIN_DIR/lib$${TARGET}.so $$OUT_PWD/lib$${TARGET}.so" | |
|
22 | contains(QMAKE_HOST.os, Windows): COPY_PARAMETERS = $$replace(COPY_PARAMETERS, "/","\\") | |||
|
23 | QMAKE_POST_LINK += $$QMAKE_COPY $$COPY_PARAMETERS | |||
22 |
|
24 | |||
23 | contains(TARGET, qml.*) { |
|
25 | contains(TARGET, qml.*) { | |
24 | charts_qmldir.files = $$CHART_BUILD_QML_PLUGIN_DIR/qmldir |
|
26 | charts_qmldir.files = $$CHART_BUILD_QML_PLUGIN_DIR/qmldir | |
25 | charts_qmldir.path = /assets/imports/QtCommercial/Chart |
|
27 | charts_qmldir.path = /assets/imports/QtCommercial/Chart | |
26 | charts_qmlplugin.files = $$CHART_BUILD_QML_PLUGIN_DIR/libqtcommercialchartqml.so |
|
28 | charts_qmlplugin.files = $$CHART_BUILD_QML_PLUGIN_DIR/libqtcommercialchartqml.so | |
27 | charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH |
|
29 | charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH | |
28 | INSTALLS += charts_qmldir charts_qmlplugin |
|
30 | INSTALLS += charts_qmldir charts_qmlplugin | |
29 | } |
|
31 | } | |
30 | } |
|
32 | } |
@@ -1,25 +1,27 | |||||
1 | !include( ../tests.pri ) { |
|
1 | !include( ../tests.pri ) { | |
2 | error( "Couldn't find the tests.pri file!" ) |
|
2 | error( "Couldn't find the tests.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | greaterThan(QT_MAJOR_VERSION, 4) { |
|
5 | greaterThan(QT_MAJOR_VERSION, 4) { | |
6 | QT += testlib widgets |
|
6 | QT += testlib widgets | |
7 | } else { |
|
7 | } else { | |
8 | CONFIG += qtestlib |
|
8 | CONFIG += qtestlib | |
9 | } |
|
9 | } | |
10 | !contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_") |
|
10 | !contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_") | |
11 |
|
11 | |||
12 | android { |
|
12 | android { | |
13 | # Workaround to fix android deployment, which seems to always look for target in |
|
13 | # Workaround to fix android deployment, which seems to always look for target in | |
14 | # OUT_PWD instead of DESTDIR. Need to override the QMAKE_POST_LINK setting done |
|
14 | # OUT_PWD instead of DESTDIR. Need to override the QMAKE_POST_LINK setting done | |
15 | # in tests.pri, as "tst_" was prepended to the target. |
|
15 | # in tests.pri, as "tst_" was prepended to the target. | |
16 |
|
|
16 | COPY_PARAMETERS = "$$CHART_BUILD_BIN_DIR/lib$${TARGET}.so $$OUT_PWD/lib$${TARGET}.so" | |
|
17 | contains(QMAKE_HOST.os, Windows): COPY_PARAMETERS = $$replace(COPY_PARAMETERS, "/","\\") | |||
|
18 | QMAKE_POST_LINK += $$QMAKE_COPY $$COPY_PARAMETERS | |||
17 | } |
|
19 | } | |
18 |
|
20 | |||
19 | INCLUDEPATH += ../inc |
|
21 | INCLUDEPATH += ../inc | |
20 | HEADERS += ../inc/tst_definitions.h |
|
22 | HEADERS += ../inc/tst_definitions.h | |
21 |
|
23 | |||
22 | OBJECTS_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET |
|
24 | OBJECTS_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET | |
23 | MOC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET |
|
25 | MOC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET | |
24 | UI_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET |
|
26 | UI_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET | |
25 | RCC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET |
|
27 | RCC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET |
@@ -1,34 +1,36 | |||||
1 | !include( ../config.pri ) { |
|
1 | !include( ../config.pri ) { | |
2 | error( "Couldn't find the config.pri file!" ) |
|
2 | error( "Couldn't find the config.pri file!" ) | |
3 | } |
|
3 | } | |
4 |
|
4 | |||
5 | TEMPLATE = app |
|
5 | TEMPLATE = app | |
6 |
|
6 | |||
7 | DESTDIR = $$CHART_BUILD_BIN_DIR |
|
7 | DESTDIR = $$CHART_BUILD_BIN_DIR | |
8 | OBJECTS_DIR = $$CHART_BUILD_DIR/tests/$$TARGET |
|
8 | OBJECTS_DIR = $$CHART_BUILD_DIR/tests/$$TARGET | |
9 | MOC_DIR = $$CHART_BUILD_DIR/tests/$$TARGET |
|
9 | MOC_DIR = $$CHART_BUILD_DIR/tests/$$TARGET | |
10 | UI_DIR = $$CHART_BUILD_DIR/tests/$$TARGET |
|
10 | UI_DIR = $$CHART_BUILD_DIR/tests/$$TARGET | |
11 | RCC_DIR = $$CHART_BUILD_DIR/tests/$$TARGET |
|
11 | RCC_DIR = $$CHART_BUILD_DIR/tests/$$TARGET | |
12 |
|
12 | |||
13 | # staticlib config causes problems when building executables |
|
13 | # staticlib config causes problems when building executables | |
14 | staticlib: CONFIG-=staticlib |
|
14 | staticlib: CONFIG-=staticlib | |
15 |
|
15 | |||
16 | android { |
|
16 | android { | |
17 | # Workaround to fix android deployment, which seems to always look for target in |
|
17 | # Workaround to fix android deployment, which seems to always look for target in | |
18 | # OUT_PWD instead of DESTDIR. |
|
18 | # OUT_PWD instead of DESTDIR. | |
19 |
|
|
19 | COPY_PARAMETERS = "$$CHART_BUILD_BIN_DIR/lib$${TARGET}.so $$OUT_PWD/lib$${TARGET}.so" | |
|
20 | contains(QMAKE_HOST.os, Windows): COPY_PARAMETERS = $$replace(COPY_PARAMETERS, "/","\\") | |||
|
21 | QMAKE_POST_LINK += $$QMAKE_COPY $$COPY_PARAMETERS | |||
20 |
|
22 | |||
21 | contains(TARGET, qml.*) { |
|
23 | contains(TARGET, qml.*) { | |
22 | charts_qmldir.files = $$CHART_BUILD_QML_PLUGIN_DIR/qmldir |
|
24 | charts_qmldir.files = $$CHART_BUILD_QML_PLUGIN_DIR/qmldir | |
23 | charts_qmldir.path = /assets/imports/QtCommercial/Chart |
|
25 | charts_qmldir.path = /assets/imports/QtCommercial/Chart | |
24 | charts_qmlplugin.files = $$CHART_BUILD_QML_PLUGIN_DIR/libqtcommercialchartqml.so |
|
26 | charts_qmlplugin.files = $$CHART_BUILD_QML_PLUGIN_DIR/libqtcommercialchartqml.so | |
25 | charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH |
|
27 | charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH | |
26 | INSTALLS += charts_qmldir charts_qmlplugin |
|
28 | INSTALLS += charts_qmldir charts_qmlplugin | |
27 | } else:contains(TARGET, quick2.*) { |
|
29 | } else:contains(TARGET, quick2.*) { | |
28 | charts_qmldir.files = $$CHART_BUILD_QML2_PLUGIN_DIR/qmldir |
|
30 | charts_qmldir.files = $$CHART_BUILD_QML2_PLUGIN_DIR/qmldir | |
29 | charts_qmldir.path = /assets/qml/QtCommercial/Chart |
|
31 | charts_qmldir.path = /assets/qml/QtCommercial/Chart | |
30 | charts_qmlplugin.files = $$CHART_BUILD_QML2_PLUGIN_DIR/libqtcommercialchartqml2.so |
|
32 | charts_qmlplugin.files = $$CHART_BUILD_QML2_PLUGIN_DIR/libqtcommercialchartqml2.so | |
31 | charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH |
|
33 | charts_qmlplugin.path = /libs/$$ANDROID_TARGET_ARCH | |
32 | INSTALLS += charts_qmldir charts_qmlplugin |
|
34 | INSTALLS += charts_qmldir charts_qmlplugin | |
33 | } |
|
35 | } | |
34 | } |
|
36 | } |
General Comments 0
You need to be logged in to leave comments.
Login now