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 | |
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-- | Rules.make | 7 | ||||
-rw-r--r-- | include.pro | 2 | ||||
-rw-r--r-- | libopie2/opiepim/opiepim.pro | 7 |
3 files changed, 12 insertions, 4 deletions
@@ -26,13 +26,18 @@ ifneq ($(CONFIG_QUICK_LAUNCH),) | |||
26 | echo \} >> $@ | 26 | echo \} >> $@ |
27 | else | 27 | else |
28 | echo contains\( CONFIG, quick-app \) \{ >> $@ | 28 | echo contains\( CONFIG, quick-app \) \{ >> $@ |
29 | echo CONFIG -= quick-app >> $@ | 29 | echo CONFIG -= quick-app >> $@ |
30 | echo CONFIG += quick-app-bin >> $@ | 30 | echo CONFIG += quick-app-bin >> $@ |
31 | echo \} >> $@ | 31 | echo \} >> $@ |
32 | endif | 32 | endif |
33 | ifeq ($(CONFIG_SQL_PIM_BACKEND),y) | ||
34 | echo ENABLE_SQL_PIM_BACKEND=$(CONFIG_SQL_PIM_BACKEND) >> $@ | ||
35 | else | ||
36 | echo ENABLE_SQL_PIM_BACKEND=n >> $@ | ||
37 | endif | ||
33 | ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) | 38 | ifeq ($(CONFIG_OPIE_NO_OVERRIDE_QT),y) |
34 | echo CONFIG += no-override >> $@ | 39 | echo CONFIG += no-override >> $@ |
35 | endif | 40 | endif |
36 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) | 41 | ifeq ($(CONFIG_OPIE_NO_BUILTIN_SHUTDOWN),y) |
37 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ | 42 | echo DEFINES += OPIE_NO_BUILTIN_SHUTDOWN >> $@ |
38 | endif | 43 | endif |
diff --git a/include.pro b/include.pro index c0019b0..c19e2f0 100644 --- a/include.pro +++ b/include.pro | |||
@@ -107,13 +107,13 @@ LIBS -= -lm | |||
107 | else { | 107 | else { |
108 | QMAKE_LFLAGS += -Wl,-rpath=$$prefix/lib | 108 | QMAKE_LFLAGS += -Wl,-rpath=$$prefix/lib |
109 | # I am not sure whether it is a good idea to change the way plugins is build | 109 | # I am not sure whether it is a good idea to change the way plugins is build |
110 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X | 110 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X |
111 | CONFIG -= plugin | 111 | CONFIG -= plugin |
112 | } | 112 | } |
113 | QMAKE_LIBDIR += $(OPIEDIR)/lib | 113 | LIBS += -L$(OPIEDIR)/lib |
114 | 114 | ||
115 | MOC_DIR=.moc/$(PLATFORM) | 115 | MOC_DIR=.moc/$(PLATFORM) |
116 | OBJECTS_DIR=.obj/$(PLATFORM) | 116 | OBJECTS_DIR=.obj/$(PLATFORM) |
117 | 117 | ||
118 | #was here now at thetop | 118 | #was here now at thetop |
119 | #include ( $(OPIEDIR)/gen.pro ) | 119 | #include ( $(OPIEDIR)/gen.pro ) |
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 | |||
@@ -5,21 +5,24 @@ HEADERS = opimcontact.h opimcontactfields.h opimrecord.h opimtodo.h opimnoti | |||
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 |