author | mickeyl <mickeyl> | 2004-03-26 17:36:46 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-03-26 17:36:46 (UTC) |
commit | 5df13d7b2acd41c54bed6253afac827bc864ea5a (patch) (unidiff) | |
tree | 8c3672a0be7f09094c0ec6658f98fd762108c17f /libopie2 | |
parent | 5d2442fc6e0fb992b9fe3998cc7b9ee6dffb8e2b (diff) | |
download | opie-5df13d7b2acd41c54bed6253afac827bc864ea5a.zip opie-5df13d7b2acd41c54bed6253afac827bc864ea5a.tar.gz opie-5df13d7b2acd41c54bed6253afac827bc864ea5a.tar.bz2 |
conditionally link against -lopiedb, i.e. only when ENABLE_SQL_PIM_BACKEND=y
-rw-r--r-- | libopie2/opiepim/opiepim.pro | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libopie2/opiepim/opiepim.pro b/libopie2/opiepim/opiepim.pro index b341819..c328315 100644 --- a/libopie2/opiepim/opiepim.pro +++ b/libopie2/opiepim/opiepim.pro | |||
@@ -1,27 +1,30 @@ | |||
1 | TEMPLATE = lib | 1 | TEMPLATE = lib |
2 | CONFIG += qt warn_on debug | 2 | CONFIG += qt warn_on debug |
3 | DESTDIR = $(OPIEDIR)/lib | 3 | DESTDIR = $(OPIEDIR)/lib |
4 | HEADERS = opimcontact.h opimcontactfields.h opimrecord.h opimtodo.h opimnotify.h \ | 4 | HEADERS = opimcontact.h opimcontactfields.h opimrecord.h opimtodo.h opimnotify.h \ |
5 | opimnotifymanager.h opimevent.h | 5 | opimnotifymanager.h opimevent.h |
6 | 6 | ||
7 | SOURCES = opimcontact.cpp opimcontactfields.cpp opimrecord.cpp opimtodo.cpp opimnotify.cpp \ | 7 | SOURCES = opimcontact.cpp opimcontactfields.cpp opimrecord.cpp opimtodo.cpp opimnotify.cpp \ |
8 | opimnotifymanager.cpp opimevent.cpp | 8 | opimnotifymanager.cpp opimevent.cpp |
9 | INTERFACES = | 9 | INTERFACES = |
10 | TARGET = opiepim2 | 10 | TARGET = opiepim2 |
11 | VERSION = 1.8.3 | 11 | VERSION = 1.8.4 |
12 | INCLUDEPATH += $(OPIEDIR)/include | 12 | INCLUDEPATH += $(OPIEDIR)/include |
13 | DEPENDPATH += $(OPIEDIR)/include | 13 | DEPENDPATH += $(OPIEDIR)/include |
14 | LIBS += -lopiecore2 -lopiedb2 | 14 | LIBS += -lopiecore2 |
15 | 15 | ||
16 | include ( core/core.pro ) | 16 | include ( core/core.pro ) |
17 | include ( core/backends/backends.pro ) | 17 | include ( core/backends/backends.pro ) |
18 | include ( ui/ui.pro ) | 18 | include ( ui/ui.pro ) |
19 | 19 | ||
20 | contains( ENABLE_SQL_PIM_BACKEND, y ) | ||
21 | LIBS += -lopiedb2 | ||
22 | |||
20 | !contains( platform, x11 ) { | 23 | !contains( platform, x11 ) { |
21 | include ( $(OPIEDIR)/include.pro ) | 24 | include ( $(OPIEDIR)/include.pro ) |
22 | } | 25 | } |
23 | 26 | ||
24 | contains( platform, x11 ) { | 27 | contains( platform, x11 ) { |
25 | LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib | 28 | LIBS = -L$(OPIEDIR)/lib -Wl,-rpath,$(OPIEDIR)/lib |
26 | } | 29 | } |
27 | 30 | ||