aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/blackbox.pro
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-02-07 17:31:59 +0100
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-02-08 17:29:16 +0100
commita0442f40968da79b4b0e50e665a8885b78769df7 (patch)
tree019f0f27456b57e49079221adaf3d48e277e2674 /tests/auto/blackbox/blackbox.pro
parenta9f9ea2dbfa327b7bf5e4247c073d2ba6eaef30b (diff)
Build a shared library.
We don't want our code to be duplicated in memory for each application that uses it, so the library should not be linked statically. Some ramifications worth mentioning: - The unit tests had to be moved into the library, because otherwise we would need to export random internal symbols. This is why the patch appears so big. A follow-up patch should probably make compilation of tests optional, so the library can be deployed without unneeded code. - The DESTDIR of the auto test executables is now the same as the one of all other executables, so they can all use the dll on Windows without additional setup. - Some internal symbols were exported, namely: a) Logging-related stuff. This allows us to use a uniform logging approach in the library and in our command-line tools; I consider this acceptable. b) A handful of classes and functions currently needed by certain command-line tools. These seem more questionable to me and we should probably find a different way to implement the respective functionality. Change-Id: I9cd21e12cd622b55cf62f5e04ad398734410ede1 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/auto/blackbox/blackbox.pro')
-rw-r--r--tests/auto/blackbox/blackbox.pro4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/blackbox/blackbox.pro b/tests/auto/blackbox/blackbox.pro
index 3ce0402b3..391221ada 100644
--- a/tests/auto/blackbox/blackbox.pro
+++ b/tests/auto/blackbox/blackbox.pro
@@ -1,11 +1,13 @@
TEMPLATE = app
TARGET = tst_blackbox
-DESTDIR = ./
+DESTDIR = ../../../bin
INCLUDEPATH += ../../../src/lib/
DEFINES += SRCDIR=\\\"$$PWD/\\\"
QT = core script testlib
CONFIG += depend_includepath testcase
+CONFIG += console
+CONFIG -= app_bundle
include(../../../src/lib/use.pri)