-rw-r--r-- | include.pro | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include.pro b/include.pro index 0dc941b..ffdba16 100644 --- a/include.pro +++ b/include.pro | |||
@@ -1,131 +1,134 @@ | |||
1 | include ( $(OPIEDIR)/gen.pro ) | 1 | include ( $(OPIEDIR)/gen.pro ) |
2 | 2 | ||
3 | # base opie install path | 3 | # base opie install path |
4 | # prefix = /opt/QtPalmtop ??? Why here (eilers) ??? | 4 | # prefix = /opt/QtPalmtop ??? Why here (eilers) ??? |
5 | prefix = $(OPIEDIR) | 5 | prefix = $(OPIEDIR) |
6 | 6 | ||
7 | contains( CONFIG, quick-app-lib ) { | 7 | contains( CONFIG, quick-app-lib ) { |
8 | TEMPLATE = lib | 8 | TEMPLATE = lib |
9 | CONFIG += plugin # "plugin" will be removed automatically later if not MacOSX ! (eilers) | 9 | CONFIG += plugin # "plugin" will be removed automatically later if not MacOSX ! (eilers) |
10 | DESTDIR = $(OPIEDIR)/plugins/application | 10 | DESTDIR = $(OPIEDIR)/plugins/application |
11 | DEFINES += OPIE_APP_INTERFACE | 11 | DEFINES += OPIE_APP_INTERFACE |
12 | DEFINES += QUICKAPP_NAME="\"$${TARGET}\"" | ||
13 | |||
12 | !contains( TARGET, launcher ) { | 14 | !contains( TARGET, launcher ) { |
13 | message( Linking $$TARGET to quicklauncher ) | 15 | message( Linking $$TARGET to quicklauncher ) |
14 | system( rm -f $$(OPIEDIR)/bin/$$TARGET ) | 16 | system( rm -f $$(OPIEDIR)/bin/$$TARGET ) |
15 | system( ln -sf $$QUICKLAUNCH_PATH $$(OPIEDIR)/bin/$$TARGET ) | 17 | system( ln -sf $$QUICKLAUNCH_PATH $$(OPIEDIR)/bin/$$TARGET ) |
16 | } | 18 | } |
17 | } | 19 | } |
18 | 20 | ||
19 | contains ( CONFIG, quick-app-bin ) { | 21 | contains ( CONFIG, quick-app-bin ) { |
20 | TEMPLATE = app | 22 | TEMPLATE = app |
21 | DESTDIR = $(OPIEDIR)/bin | 23 | DESTDIR = $(OPIEDIR)/bin |
22 | DEFINES -= OPIE_APP_INTERFACE | 24 | DEFINES -= OPIE_APP_INTERFACE |
25 | DEFINES += QUICKAPP_NAME="\"$${TARGET}\"" | ||
23 | message( Touching plugins/application/lib$${TARGET}.so.0 ) | 26 | message( Touching plugins/application/lib$${TARGET}.so.0 ) |
24 | system( touch $$(OPIEDIR)/plugins/application/lib$${TARGET}.so.0 ) | 27 | system( touch $$(OPIEDIR)/plugins/application/lib$${TARGET}.so.0 ) |
25 | } | 28 | } |
26 | 29 | ||
27 | 30 | ||
28 | contains( TEMPLATE, lib ) { | 31 | contains( TEMPLATE, lib ) { |
29 | target.path = $$prefix/lib | 32 | target.path = $$prefix/lib |
30 | } | 33 | } |
31 | !contains( TEMPLATE, lib ) { | 34 | !contains( TEMPLATE, lib ) { |
32 | target.path = $$prefix/bin | 35 | target.path = $$prefix/bin |
33 | } | 36 | } |
34 | INSTALLS += target | 37 | INSTALLS += target |
35 | 38 | ||
36 | # ipkg control files | 39 | # ipkg control files |
37 | control.path = /CONTROL | 40 | control.path = /CONTROL |
38 | control.files = control postinst prerm postrm preinst conffiles | 41 | control.files = control postinst prerm postrm preinst conffiles |
39 | INSTALLS += control | 42 | INSTALLS += control |
40 | 43 | ||
41 | # images, default is $$prefix/pics/$$TARGET | 44 | # images, default is $$prefix/pics/$$TARGET |
42 | pics.path = $$prefix/pics/$$TARGET | 45 | pics.path = $$prefix/pics/$$TARGET |
43 | pics.files = pics/* | 46 | pics.files = pics/* |
44 | INSTALLS += pics | 47 | INSTALLS += pics |
45 | 48 | ||
46 | # sounds, default path is $$prefix/sounds/$$TARGET | 49 | # sounds, default path is $$prefix/sounds/$$TARGET |
47 | sounds.path = $$prefix/sounds/$$TARGET | 50 | sounds.path = $$prefix/sounds/$$TARGET |
48 | sounds.files = sounds/* | 51 | sounds.files = sounds/* |
49 | INSTALLS += sounds | 52 | INSTALLS += sounds |
50 | 53 | ||
51 | # init scripts, default path is /etc/init.d | 54 | # init scripts, default path is /etc/init.d |
52 | init.path = /etc/init.d | 55 | init.path = /etc/init.d |
53 | init.files = init.d/* | 56 | init.files = init.d/* |
54 | INSTALLS += init | 57 | INSTALLS += init |
55 | 58 | ||
56 | # data, default path is /usr/share/$$TARGET | 59 | # data, default path is /usr/share/$$TARGET |
57 | data.path = /usr/share/$$TARGET | 60 | data.path = /usr/share/$$TARGET |
58 | data.files = share/* | 61 | data.files = share/* |
59 | INSTALLS += data | 62 | INSTALLS += data |
60 | 63 | ||
61 | etc.path = $$prefix/etc/ | 64 | etc.path = $$prefix/etc/ |
62 | etc.files = etc/* | 65 | etc.files = etc/* |
63 | INSTALLS += etc | 66 | INSTALLS += etc |
64 | 67 | ||
65 | apps.path = $$prefix/apps/ | 68 | apps.path = $$prefix/apps/ |
66 | apps.files = apps/* | 69 | apps.files = apps/* |
67 | INSTALLS += apps | 70 | INSTALLS += apps |
68 | 71 | ||
69 | # sounds, default path is $$prefix/sounds/$$TARGET | 72 | # sounds, default path is $$prefix/sounds/$$TARGET |
70 | sounds.path = $$prefix/sounds/$$TARGET | 73 | sounds.path = $$prefix/sounds/$$TARGET |
71 | sounds.files = sounds/* | 74 | sounds.files = sounds/* |
72 | INSTALLS += sounds | 75 | INSTALLS += sounds |
73 | 76 | ||
74 | # anything in nonstandard paths | 77 | # anything in nonstandard paths |
75 | root.path = / | 78 | root.path = / |
76 | root.files = root/* | 79 | root.files = root/* |
77 | INSTALLS += root | 80 | INSTALLS += root |
78 | 81 | ||
79 | # new targets | 82 | # new targets |
80 | opie-lupdate.target = opie-lupdate | 83 | opie-lupdate.target = opie-lupdate |
81 | opie-lupdate.commands = opie-lupdate $(PRO) | 84 | opie-lupdate.commands = opie-lupdate $(PRO) |
82 | 85 | ||
83 | opie-lrelease.target = opie-lrelease | 86 | opie-lrelease.target = opie-lrelease |
84 | opie-lrelease.commands = opie-lrelease $(PRO) | 87 | opie-lrelease.commands = opie-lrelease $(PRO) |
85 | 88 | ||
86 | lupdate.target = lupdate | 89 | lupdate.target = lupdate |
87 | lupdate.commands = lupdate -noobsolete $(PRO) | 90 | lupdate.commands = lupdate -noobsolete $(PRO) |
88 | 91 | ||
89 | lrelease.target = lrelease | 92 | lrelease.target = lrelease |
90 | lrelease.commands = lrelease $(PRO) | 93 | lrelease.commands = lrelease $(PRO) |
91 | 94 | ||
92 | # 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 |
93 | messages.target = messages | 96 | messages.target = messages |
94 | 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' |
95 | 98 | ||
96 | ipk.target = ipk | 99 | ipk.target = ipk |
97 | 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; ) |
98 | 101 | ||
99 | 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 |
100 | 103 | ||
101 | CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX ) | 104 | CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX ) |
102 | contains( CONFTEST, y ){ | 105 | contains( CONFTEST, y ){ |
103 | QMAKE_LFLAGS += -Wl | 106 | QMAKE_LFLAGS += -Wl |
104 | LIBS -= -ldl | 107 | LIBS -= -ldl |
105 | LIBS -= -lcrypt | 108 | LIBS -= -lcrypt |
106 | LIBS -= -lm | 109 | LIBS -= -lm |
107 | 110 | ||
108 | # Manual including indirect referenced libraries which are not loaded | 111 | # Manual including indirect referenced libraries which are not loaded |
109 | # by the mac-linker automatically | 112 | # by the mac-linker automatically |
110 | CONFTEST = $$system( echo $CONFIG_SQL_PIM_BACKEND ) | 113 | CONFTEST = $$system( echo $CONFIG_SQL_PIM_BACKEND ) |
111 | contains( CONFTEST, y ){ | 114 | contains( CONFTEST, y ){ |
112 | LIBS += -lopiedb2 -lqpe | 115 | LIBS += -lopiedb2 -lqpe |
113 | } else { | 116 | } else { |
114 | LIBS += -lqpe | 117 | LIBS += -lqpe |
115 | } | 118 | } |
116 | LIBS += -lopiecore2 | 119 | LIBS += -lopiecore2 |
117 | } | 120 | } |
118 | else { | 121 | else { |
119 | 122 | ||
120 | QMAKE_LFLAGS += -Wl,-rpath-link,$$prefix/lib | 123 | QMAKE_LFLAGS += -Wl,-rpath-link,$$prefix/lib |
121 | # I am not sure whether it is a good idea to change the way plugins is build | 124 | # I am not sure whether it is a good idea to change the way plugins is build |
122 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X | 125 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X |
123 | CONFIG -= plugin | 126 | CONFIG -= plugin |
124 | } | 127 | } |
125 | LIBS += -L$(OPIEDIR)/lib | 128 | LIBS += -L$(OPIEDIR)/lib |
126 | 129 | ||
127 | MOC_DIR=.moc/$(PLATFORM) | 130 | MOC_DIR=.moc/$(PLATFORM) |
128 | OBJECTS_DIR=.obj/$(PLATFORM) | 131 | OBJECTS_DIR=.obj/$(PLATFORM) |
129 | 132 | ||
130 | #was here now at thetop | 133 | #was here now at thetop |
131 | #include ( $(OPIEDIR)/gen.pro ) | 134 | #include ( $(OPIEDIR)/gen.pro ) |