diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2013-02-07 17:31:59 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-02-08 17:29:16 +0100 |
commit | a0442f40968da79b4b0e50e665a8885b78769df7 (patch) | |
tree | 019f0f27456b57e49079221adaf3d48e277e2674 /tests/auto/language/language.pro | |
parent | a9f9ea2dbfa327b7bf5e4247c073d2ba6eaef30b (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/language/language.pro')
-rw-r--r-- | tests/auto/language/language.pro | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/auto/language/language.pro b/tests/auto/language/language.pro index 2e4b599d8..06212a2a6 100644 --- a/tests/auto/language/language.pro +++ b/tests/auto/language/language.pro @@ -1,21 +1,15 @@ TEMPLATE = app TARGET = tst_language -DESTDIR = ./ +DESTDIR = ../../../bin INCLUDEPATH += ../../../src/lib/ -DEFINES += SRCDIR=\\\"$$PWD/\\\" QT = core testlib CONFIG += depend_includepath testcase - -HEADERS += \ - tst_language.h +CONFIG += console +CONFIG -= app_bundle SOURCES += \ tst_language.cpp -OTHER_FILES += \ - $$PWD/testdata/* \ - testdata/outerInGroup.qbs - include(../../../src/lib/use.pri) include(../../../src/app/shared/logging/logging.pri) |