-rw-r--r-- | include.pro | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include.pro b/include.pro index 3ba8776..c70c4d5 100644 --- a/include.pro +++ b/include.pro | |||
@@ -1,80 +1,96 @@ | |||
1 | include ( $(OPIEDIR)/gen.pro ) | ||
2 | |||
1 | # make install | 3 | # make install |
2 | 4 | ||
3 | # base opie install path | 5 | # base opie install path |
4 | prefix = /opt/QtPalmtop | 6 | prefix = /opt/QtPalmtop |
5 | 7 | ||
8 | |||
9 | contains( CONFIG, quick-app-lib ) { | ||
10 | TEMPLATE = lib | ||
11 | DESTDIR = $(OPIEDIR)/plugins/applications | ||
12 | DEFINES += OPIE_APP_INTERFACE | ||
13 | } | ||
14 | contains ( CONFIG, quick-app-bin ) { | ||
15 | TEMPLATE = app | ||
16 | DESTDIR = $(OPIEDIR)/bin | ||
17 | DEFINES -= OPIE_APP_INTERFACE | ||
18 | } | ||
19 | |||
20 | |||
6 | contains( TEMPLATE, lib ) { | 21 | contains( TEMPLATE, lib ) { |
7 | target.path = $$prefix/lib | 22 | target.path = $$prefix/lib |
8 | } | 23 | } |
9 | !contains( TEMPLATE, lib ) { | 24 | !contains( TEMPLATE, lib ) { |
10 | target.path = $$prefix/bin | 25 | target.path = $$prefix/bin |
11 | } | 26 | } |
12 | INSTALLS += target | 27 | INSTALLS += target |
13 | 28 | ||
14 | # ipkg control files | 29 | # ipkg control files |
15 | control.path = /CONTROL | 30 | control.path = /CONTROL |
16 | control.files = control postinst prerm postrm preinst conffiles | 31 | control.files = control postinst prerm postrm preinst conffiles |
17 | INSTALLS += control | 32 | INSTALLS += control |
18 | 33 | ||
19 | # images, default is $$prefix/pics/$$TARGET | 34 | # images, default is $$prefix/pics/$$TARGET |
20 | pics.path = $$prefix/pics/$$TARGET | 35 | pics.path = $$prefix/pics/$$TARGET |
21 | pics.files = pics/* | 36 | pics.files = pics/* |
22 | INSTALLS += pics | 37 | INSTALLS += pics |
23 | 38 | ||
24 | # sounds, default path is $$prefix/sounds/$$TARGET | 39 | # sounds, default path is $$prefix/sounds/$$TARGET |
25 | sounds.path = $$prefix/sounds/$$TARGET | 40 | sounds.path = $$prefix/sounds/$$TARGET |
26 | sounds.files = sounds/* | 41 | sounds.files = sounds/* |
27 | INSTALLS += sounds | 42 | INSTALLS += sounds |
28 | 43 | ||
29 | # init scripts, default path is /etc/init.d | 44 | # init scripts, default path is /etc/init.d |
30 | init.path = /etc/init.d | 45 | init.path = /etc/init.d |
31 | init.files = init.d/* | 46 | init.files = init.d/* |
32 | INSTALLS += init | 47 | INSTALLS += init |
33 | 48 | ||
34 | # data, default path is /usr/share/$$TARGET | 49 | # data, default path is /usr/share/$$TARGET |
35 | data.path = /usr/share/$$TARGET | 50 | data.path = /usr/share/$$TARGET |
36 | data.files = share/* | 51 | data.files = share/* |
37 | INSTALLS += data | 52 | INSTALLS += data |
38 | 53 | ||
39 | etc.path = $$prefix/etc/ | 54 | etc.path = $$prefix/etc/ |
40 | etc.files = etc/* | 55 | etc.files = etc/* |
41 | INSTALLS += etc | 56 | INSTALLS += etc |
42 | 57 | ||
43 | apps.path = $$prefix/apps/ | 58 | apps.path = $$prefix/apps/ |
44 | apps.files = apps/* | 59 | apps.files = apps/* |
45 | INSTALLS += apps | 60 | INSTALLS += apps |
46 | 61 | ||
47 | # sounds, default path is $$prefix/sounds/$$TARGET | 62 | # sounds, default path is $$prefix/sounds/$$TARGET |
48 | sounds.path = $$prefix/sounds/$$TARGET | 63 | sounds.path = $$prefix/sounds/$$TARGET |
49 | sounds.files = sounds/* | 64 | sounds.files = sounds/* |
50 | INSTALLS += sounds | 65 | INSTALLS += sounds |
51 | 66 | ||
52 | # anything in nonstandard paths | 67 | # anything in nonstandard paths |
53 | root.path = / | 68 | root.path = / |
54 | root.files = root/* | 69 | root.files = root/* |
55 | INSTALLS += root | 70 | INSTALLS += root |
56 | 71 | ||
57 | # new targets | 72 | # new targets |
58 | opie-lupdate.target = opie-lupdate | 73 | opie-lupdate.target = opie-lupdate |
59 | opie-lupdate.commands = opie-lupdate -noobsolete $(PRO) | 74 | opie-lupdate.commands = opie-lupdate -noobsolete $(PRO) |
60 | 75 | ||
61 | opie-lrelease.target = opie-lrelease | 76 | opie-lrelease.target = opie-lrelease |
62 | opie-lrelease.commands = opie-lrelease $(PRO) | 77 | opie-lrelease.commands = opie-lrelease $(PRO) |
63 | 78 | ||
64 | lupdate.target = lupdate | 79 | lupdate.target = lupdate |
65 | lupdate.commands = lupdate -noobsolete $(PRO) | 80 | lupdate.commands = lupdate -noobsolete $(PRO) |
66 | 81 | ||
67 | lrelease.target = lrelease | 82 | lrelease.target = lrelease |
68 | lrelease.commands = lrelease $(PRO) | 83 | lrelease.commands = lrelease $(PRO) |
69 | 84 | ||
70 | ipk.target = ipk | 85 | ipk.target = ipk |
71 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) | 86 | ipk.commands = tmp=`mktemp -d /tmp/ipkg-opie.XXXXXXXXXX` && ( $(MAKE) INSTALL_ROOT="$$$$tmp" install && ipkg-build $$$$tmp; rm -rf $$$$tmp; ) |
72 | 87 | ||
73 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease | 88 | QMAKE_EXTRA_UNIX_TARGETS += lupdate lrelease ipk opie-lupdate opie-lrelease |
74 | QMAKE_LFLAGS += -Wl,-rpath=$$prefix/lib | 89 | QMAKE_LFLAGS += -Wl,-rpath=$$prefix/lib |
75 | QMAKE_LIBDIR += $(OPIEDIR)/lib | 90 | QMAKE_LIBDIR += $(OPIEDIR)/lib |
76 | 91 | ||
77 | MOC_DIR=.moc/$(PLATFORM) | 92 | MOC_DIR=.moc/$(PLATFORM) |
78 | OBJECTS_DIR=.obj/$(PLATFORM) | 93 | OBJECTS_DIR=.obj/$(PLATFORM) |
79 | 94 | ||
80 | include ( $(OPIEDIR)/gen.pro ) | 95 | #was here now at thetop |
96 | #include ( $(OPIEDIR)/gen.pro ) | ||