summaryrefslogtreecommitdiffstats
path: root/tests/tests.pri
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-09-03 08:21:22 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-09-03 08:43:59 +0300
commitde88514dba523734170652d75a5cefcc7feb7c6c (patch)
tree649f908f09720f02c949782dfac7847a1b62f9c6 /tests/tests.pri
parent7b988086e9976b78d0f1ff433dcec205c6d33478 (diff)
Fixed issues from Improve examples task
Task-number: QTRD-2239 + Moved extra-full examples to tests + Removed extra functionality from widget and scatterchart examples + Changed bars default to bevelbar + Changed default label style to nobackground Change-Id: Idffba7a44d5b54dbaf36d7cdbfe616b78e0d4073 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
Diffstat (limited to 'tests/tests.pri')
-rw-r--r--tests/tests.pri72
1 files changed, 72 insertions, 0 deletions
diff --git a/tests/tests.pri b/tests/tests.pri
new file mode 100644
index 00000000..e772d18a
--- /dev/null
+++ b/tests/tests.pri
@@ -0,0 +1,72 @@
+android {
+ target.path = /libs/$$ANDROID_TARGET_ARCH
+} else {
+ target.path = $$[QT_INSTALL_TESTS]/datavis3d/$$TARGET
+}
+
+win32 {
+ CONFIG(debug, release|debug):DESTDIR = $$OUT_PWD/debug
+ CONFIG(release, release|debug):DESTDIR = $$OUT_PWD/release
+} else {
+ DESTDIR = $$OUT_PWD
+}
+
+LIBS += -L$$OUT_PWD/../../lib
+
+TEMPLATE = app
+
+QT += datavis3d
+
+contains(TARGET, qml.*) {
+ uri = com.digia.QtDataVis3D
+ lib_name = datavis3dqml2
+
+ uri_replaced = $$replace(uri, \\., $$QMAKE_DIR_SEP)
+ make_qmldir_path = $$DESTDIR/$$uri_replaced
+ !exists($$make_qmldir_path) {
+ make_qmldir_target = \"$$replace(make_qmldir_path, /, $$QMAKE_DIR_SEP)\"
+ system($$QMAKE_MKDIR $$make_qmldir_target)
+ }
+ copy_qmldir_examples.target = $$make_qmldir_path/qmldir
+ copy_qmldir_examples.depends = $$_PRO_FILE_PWD_/../../src/$$lib_name/qmldir
+ copy_qmldir_examples.commands = $(COPY_FILE) \"$$replace(copy_qmldir_examples.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir_examples.target, /, $$QMAKE_DIR_SEP)\"
+ QMAKE_EXTRA_TARGETS += copy_qmldir_examples
+ PRE_TARGETDEPS += $$copy_qmldir_examples.target
+
+ win32 {
+ CONFIG(debug, release|debug) {
+ src_dir = debug
+ src_lib = $${lib_name}d.dll
+ }
+ CONFIG(release, release|debug){
+ src_dir = release
+ src_lib = $${lib_name}.dll
+ }
+ } else {
+ src_dir = .
+ mac {
+ CONFIG(debug, release|debug) {
+ src_lib = lib$${lib_name}_debug.dylib
+ }
+ CONFIG(release, release|debug){
+ src_lib = lib$${lib_name}.dylib
+ }
+ } else {
+ # linux, android
+ src_lib = lib$${lib_name}.so
+ }
+ }
+ copy_lib.target = $$make_qmldir_path/$$src_lib
+ copy_lib.depends = $$OUT_PWD/../../src/$$lib_name/$$src_dir/$$src_lib
+ copy_lib.commands = $(COPY_FILE) \"$$replace(copy_lib.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_lib.target, /, $$QMAKE_DIR_SEP)\"
+ QMAKE_EXTRA_TARGETS += copy_lib
+ PRE_TARGETDEPS += $$copy_lib.target
+
+ android {
+ android_qmldir.files = $$copy_qmldir_examples.target
+ android_qmldir.path = /assets/qml/$$uri_replaced
+ android_qmlplugin.files = $$copy_lib.target
+ android_qmlplugin.path = $$target.path
+ INSTALLS += android_qmldir android_qmlplugin
+ }
+}