-rw-r--r-- | include.pro | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include.pro b/include.pro index 70ed731..4bdcaa7 100644 --- a/include.pro +++ b/include.pro | |||
@@ -1,105 +1,115 @@ | |||
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 | 4 | # prefix = /opt/QtPalmtop ??? Why here (eilers) ??? |
5 | prefix = $(OPIEDIR) | ||
5 | 6 | ||
6 | contains( CONFIG, quick-app-lib ) { | 7 | contains( CONFIG, quick-app-lib ) { |
7 | TEMPLATE = lib | 8 | TEMPLATE = lib |
8 | DESTDIR = $(OPIEDIR)/plugins/application | 9 | DESTDIR = $(OPIEDIR)/plugins/application |
9 | DEFINES += OPIE_APP_INTERFACE | 10 | DEFINES += OPIE_APP_INTERFACE |
10 | !contains( TARGET, launcher ) { | 11 | !contains( TARGET, launcher ) { |
11 | message( Linking $$TARGET to quicklauncher ) | 12 | message( Linking $$TARGET to quicklauncher ) |
12 | system( rm -f $$(OPIEDIR)/bin/$$TARGET ) | 13 | system( rm -f $$(OPIEDIR)/bin/$$TARGET ) |
13 | system( ln -s quicklauncher $$(OPIEDIR)/bin/$$TARGET ) | 14 | system( ln -s quicklauncher $$(OPIEDIR)/bin/$$TARGET ) |
14 | } | 15 | } |
15 | } | 16 | } |
16 | 17 | ||
17 | contains ( CONFIG, quick-app-bin ) { | 18 | contains ( CONFIG, quick-app-bin ) { |
18 | TEMPLATE = app | 19 | TEMPLATE = app |
19 | DESTDIR = $(OPIEDIR)/bin | 20 | DESTDIR = $(OPIEDIR)/bin |
20 | DEFINES -= OPIE_APP_INTERFACE | 21 | DEFINES -= OPIE_APP_INTERFACE |
21 | message( Touching plugins/application/lib$${TARGET}.so ) | 22 | message( Touching plugins/application/lib$${TARGET}.so ) |
22 | system( touch $$(OPIEDIR)/plugins/application/lib$${TARGET}.so ) | 23 | system( touch $$(OPIEDIR)/plugins/application/lib$${TARGET}.so ) |
23 | } | 24 | } |
24 | 25 | ||
25 | 26 | ||
26 | contains( TEMPLATE, lib ) { | 27 | contains( TEMPLATE, lib ) { |
27 | target.path = $$prefix/lib | 28 | target.path = $$prefix/lib |
28 | } | 29 | } |
29 | !contains( TEMPLATE, lib ) { | 30 | !contains( TEMPLATE, lib ) { |
30 | target.path = $$prefix/bin | 31 | target.path = $$prefix/bin |
31 | } | 32 | } |
32 | INSTALLS += target | 33 | INSTALLS += target |
33 | 34 | ||
34 | # ipkg control files | 35 | # ipkg control files |
35 | control.path = /CONTROL | 36 | control.path = /CONTROL |
36 | control.files = control postinst prerm postrm preinst conffiles | 37 | control.files = control postinst prerm postrm preinst conffiles |
37 | INSTALLS += control | 38 | INSTALLS += control |
38 | 39 | ||
39 | # images, default is $$prefix/pics/$$TARGET | 40 | # images, default is $$prefix/pics/$$TARGET |
40 | pics.path = $$prefix/pics/$$TARGET | 41 | pics.path = $$prefix/pics/$$TARGET |
41 | pics.files = pics/* | 42 | pics.files = pics/* |
42 | INSTALLS += pics | 43 | INSTALLS += pics |
43 | 44 | ||
44 | # sounds, default path is $$prefix/sounds/$$TARGET | 45 | # sounds, default path is $$prefix/sounds/$$TARGET |
45 | sounds.path = $$prefix/sounds/$$TARGET | 46 | sounds.path = $$prefix/sounds/$$TARGET |
46 | sounds.files = sounds/* | 47 | sounds.files = sounds/* |
47 | INSTALLS += sounds | 48 | INSTALLS += sounds |
48 | 49 | ||
49 | # init scripts, default path is /etc/init.d | 50 | # init scripts, default path is /etc/init.d |
50 | init.path = /etc/init.d | 51 | init.path = /etc/init.d |
51 | init.files = init.d/* | 52 | init.files = init.d/* |
52 | INSTALLS += init | 53 | INSTALLS += init |
53 | 54 | ||
54 | # data, default path is /usr/share/$$TARGET | 55 | # data, default path is /usr/share/$$TARGET |
55 | data.path = /usr/share/$$TARGET | 56 | data.path = /usr/share/$$TARGET |
56 | data.files = share/* | 57 | data.files = share/* |
57 | INSTALLS += data | 58 | INSTALLS += data |
58 | 59 | ||
59 | etc.path = $$prefix/etc/ | 60 | etc.path = $$prefix/etc/ |
60 | etc.files = etc/* | 61 | etc.files = etc/* |
61 | INSTALLS += etc | 62 | INSTALLS += etc |
62 | 63 | ||
63 | apps.path = $$prefix/apps/ | 64 | apps.path = $$prefix/apps/ |
64 | apps.files = apps/* | 65 | apps.files = apps/* |
65 | INSTALLS += apps | 66 | INSTALLS += apps |
66 | 67 | ||
67 | # sounds, default path is $$prefix/sounds/$$TARGET | 68 | # sounds, default path is $$prefix/sounds/$$TARGET |
68 | sounds.path = $$prefix/sounds/$$TARGET | 69 | sounds.path = $$prefix/sounds/$$TARGET |
69 | sounds.files = sounds/* | 70 | sounds.files = sounds/* |
70 | INSTALLS += sounds | 71 | INSTALLS += sounds |
71 | 72 | ||
72 | # anything in nonstandard paths | 73 | # anything in nonstandard paths |
73 | root.path = / | 74 | root.path = / |
74 | root.files = root/* | 75 | root.files = root/* |
75 | INSTALLS += root | 76 | INSTALLS += root |
76 | 77 | ||
77 | # new targets | 78 | # new targets |
78 | opie-lupdate.target = opie-lupdate | 79 | opie-lupdate.target = opie-lupdate |
79 | opie-lupdate.commands = opie-lupdate $(PRO) | 80 | opie-lupdate.commands = opie-lupdate $(PRO) |
80 | 81 | ||
81 | opie-lrelease.target = opie-lrelease | 82 | opie-lrelease.target = opie-lrelease |
82 | opie-lrelease.commands = opie-lrelease $(PRO) | 83 | opie-lrelease.commands = opie-lrelease $(PRO) |
83 | 84 | ||
84 | lupdate.target = lupdate | 85 | lupdate.target = lupdate |
85 | lupdate.commands = lupdate -noobsolete $(PRO) | 86 | lupdate.commands = lupdate -noobsolete $(PRO) |
86 | 87 | ||
87 | lrelease.target = lrelease | 88 | lrelease.target = lrelease |
88 | lrelease.commands = lrelease $(PRO) | 89 | lrelease.commands = lrelease $(PRO) |
89 | 90 | ||
90 | # new message target to get all strings from the apps with and without tr | 91 | # new message target to get all strings from the apps with and without tr |
91 | messages.target = messages | 92 | messages.target = messages |
92 | 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' | 93 | 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' |
93 | 94 | ||
94 | ipk.target = ipk | 95 | ipk.target = ipk |
95 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) | 96 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) |
96 | 97 | ||
97 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease messages | 98 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease messages |
99 | CONFTEST = $$system( echo $CONFIG_TARGET_MACOSX ) | ||
100 | contains( CONFTEST, y ){ | ||
101 | QMAKE_LFLAGS += -Wl | ||
102 | } | ||
103 | else { | ||
98 | QMAKE_LFLAGS += -Wl,-rpath=$$prefix/lib | 104 | QMAKE_LFLAGS += -Wl,-rpath=$$prefix/lib |
105 | # I am not sure whether it is a good idea to change the way plugins is build | ||
106 | # on linux. Therefore I remove the "plugin" term, which is needed by MacOS-X | ||
107 | CONFIG -= plugin | ||
108 | } | ||
99 | QMAKE_LIBDIR += $(OPIEDIR)/lib | 109 | QMAKE_LIBDIR += $(OPIEDIR)/lib |
100 | 110 | ||
101 | MOC_DIR=.moc/$(PLATFORM) | 111 | MOC_DIR=.moc/$(PLATFORM) |
102 | OBJECTS_DIR=.obj/$(PLATFORM) | 112 | OBJECTS_DIR=.obj/$(PLATFORM) |
103 | 113 | ||
104 | #was here now at thetop | 114 | #was here now at thetop |
105 | #include ( $(OPIEDIR)/gen.pro ) | 115 | #include ( $(OPIEDIR)/gen.pro ) |