-rw-r--r-- | include.pro | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include.pro b/include.pro index ffdba16..4815f19 100644 --- a/include.pro +++ b/include.pro | |||
@@ -81,54 +81,56 @@ INSTALLS += root | |||
81 | 81 | ||
82 | # new targets | 82 | # new targets |
83 | opie-lupdate.target = opie-lupdate | 83 | opie-lupdate.target = opie-lupdate |
84 | opie-lupdate.commands = opie-lupdate $(PRO) | 84 | opie-lupdate.commands = opie-lupdate $(PRO) |
85 | 85 | ||
86 | opie-lrelease.target = opie-lrelease | 86 | opie-lrelease.target = opie-lrelease |
87 | opie-lrelease.commands = opie-lrelease $(PRO) | 87 | opie-lrelease.commands = opie-lrelease $(PRO) |
88 | 88 | ||
89 | lupdate.target = lupdate | 89 | lupdate.target = lupdate |
90 | lupdate.commands = lupdate -noobsolete $(PRO) | 90 | lupdate.commands = lupdate -noobsolete $(PRO) |
91 | 91 | ||
92 | lrelease.target = lrelease | 92 | lrelease.target = lrelease |
93 | lrelease.commands = lrelease $(PRO) | 93 | lrelease.commands = lrelease $(PRO) |
94 | 94 | ||
95 | # new message target to get all strings from the apps with and without tr | 95 | # new message target to get all strings from the apps with and without tr |
96 | messages.target = messages | 96 | messages.target = messages |
97 | messages.commands = xgettext -C -n -ktr -kQT_TRANSLATE_NOOP $$HEADERS $$SOURCES -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-tr.po' && xgettext -C -n -a $$HEADERS $$SOURCES -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-allstrings.po' | 97 | messages.commands = xgettext -C -n -ktr -kQT_TRANSLATE_NOOP $$HEADERS $$SOURCES -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-tr.po' && xgettext -C -n -a $$HEADERS $$SOURCES -o '$(OPIEDIR)/messages-$(QMAKE_TARGET)-allstrings.po' |
98 | 98 | ||
99 | ipk.target = ipk | 99 | ipk.target = ipk |
100 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) | 100 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) |
101 | 101 | ||
102 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease messages | 102 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease messages |
103 | 103 | ||
104 | CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX ) | 104 | CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX ) |
105 | contains( CONFTEST, y ){ | 105 | contains( CONFTEST, y ){ |
106 | QMAKE_LFLAGS += -Wl | 106 | QMAKE_LFLAGS += -Wl |
107 | LIBS -= -ldl | 107 | LIBS -= -ldl |
108 | LIBS -= -lcrypt | 108 | LIBS -= -lcrypt |
109 | LIBS -= -lm | 109 | LIBS -= -lm |
110 | 110 | ||
111 | # Manual including indirect referenced libraries which are not loaded | 111 | # Manual including indirect referenced libraries which are not loaded |
112 | # by the mac-linker automatically | 112 | # by the mac-linker automatically |
113 | # IF YOU COMPILE FOR THE FIRST TIME, COMMENT OUT ONE OF THE FOLLOWING | ||
114 | # (regarding whether you activate SQL) and the last one (-lopiecore2) | ||
113 | CONFTEST = $$system( echo $CONFIG_SQL_PIM_BACKEND ) | 115 | CONFTEST = $$system( echo $CONFIG_SQL_PIM_BACKEND ) |
114 | contains( CONFTEST, y ){ | 116 | contains( CONFTEST, y ){ |
115 | LIBS += -lopiedb2 -lqpe | 117 | LIBS += -lopiedb2 -lqpe |
116 | } else { | 118 | } else { |
117 | LIBS += -lqpe | 119 | LIBS += -lqpe |
118 | } | 120 | } |
119 | LIBS += -lopiecore2 | 121 | LIBS += -lopiecore2 |
120 | } | 122 | } |
121 | else { | 123 | else { |
122 | 124 | ||
123 | QMAKE_LFLAGS += -Wl,-rpath-link,$$prefix/lib | 125 | QMAKE_LFLAGS += -Wl,-rpath-link,$$prefix/lib |
124 | # I am not sure whether it is a good idea to change the way plugins is build | 126 | # I am not sure whether it is a good idea to change the way plugins is build |
125 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X | 127 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X |
126 | CONFIG -= plugin | 128 | CONFIG -= plugin |
127 | } | 129 | } |
128 | LIBS += -L$(OPIEDIR)/lib | 130 | LIBS += -L$(OPIEDIR)/lib |
129 | 131 | ||
130 | MOC_DIR=.moc/$(PLATFORM) | 132 | MOC_DIR=.moc/$(PLATFORM) |
131 | OBJECTS_DIR=.obj/$(PLATFORM) | 133 | OBJECTS_DIR=.obj/$(PLATFORM) |
132 | 134 | ||
133 | #was here now at thetop | 135 | #was here now at thetop |
134 | #include ( $(OPIEDIR)/gen.pro ) | 136 | #include ( $(OPIEDIR)/gen.pro ) |