##// END OF EJS Templates
Fix autotests build for android...
Heikkinen Miikka -
r2524:eaf45afc1a90
parent child
Show More
@@ -1,18 +1,25
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 {
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
15 # in tests.pri, as "tst_" was prepended to the target.
16 QMAKE_POST_LINK = $$QMAKE_COPY $$CHART_BUILD_BIN_DIR/lib$${TARGET}.so $$OUT_PWD/lib$${TARGET}.so
17 }
18
12 INCLUDEPATH += ../inc
19 INCLUDEPATH += ../inc
13 HEADERS += ../inc/tst_definitions.h
20 HEADERS += ../inc/tst_definitions.h
14
21
15 OBJECTS_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
22 OBJECTS_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
16 MOC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
23 MOC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
17 UI_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
24 UI_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
18 RCC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
25 RCC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
General Comments 0
You need to be logged in to leave comments. Login now