author | zecke <zecke> | 2003-08-27 12:24:03 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-27 12:24:03 (UTC) |
commit | 6a6af694205eb9a55b18eb10f2290a9747019388 (patch) (unidiff) | |
tree | e930a44ea8b32720a9611bbfd59a71b83bb7e606 | |
parent | 151c319a9a67ae420136fb23cc987d23059737f6 (diff) | |
download | opie-6a6af694205eb9a55b18eb10f2290a9747019388.zip opie-6a6af694205eb9a55b18eb10f2290a9747019388.tar.gz opie-6a6af694205eb9a55b18eb10f2290a9747019388.tar.bz2 |
If you add quick-app to the CONFIG options
it'll use the global quick app setting to either
be a lib or normal executable
-rw-r--r-- | Rules.make | 11 | ||||
-rw-r--r-- | config.in | 4 | ||||
-rw-r--r-- | include.pro | 18 |
3 files changed, 32 insertions, 1 deletions
@@ -17,8 +17,19 @@ ifeq ($(filter 3.%,$(QTE_VERSION)),) # not qt3 | |||
17 | echo CONFIG -= qt3 >> $@ | 17 | echo CONFIG -= qt3 >> $@ |
18 | else | 18 | else |
19 | echo CONFIG += qt3 >> $@ | 19 | echo CONFIG += qt3 >> $@ |
20 | endif | 20 | endif |
21 | ifneq ($(CONFIG_QUICK_LAUNCH),) | ||
22 | echo contains\( CONFIG, quick-app \) \{ >> $@ | ||
23 | echo CONFIG -= quick-app >> $@ | ||
24 | echo CONFIG += quick-app-lib >> $@ | ||
25 | echo \} >> $@ | ||
26 | else | ||
27 | echo contains\( CONFIG, quick-app \) \{ >> $@ | ||
28 | echo CONFIG -= quick-app >> $@ | ||
29 | echo CONFIG += quick-app-bin >> $@ | ||
30 | echo \} >> $@ | ||
31 | endif | ||
21 | 32 | ||
22 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages | 33 | $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages |
23 | @echo Generating dependency information... | 34 | @echo Generating dependency information... |
24 | # add to subdir-y, and add descend rules | 35 | # add to subdir-y, and add descend rules |
@@ -36,8 +36,12 @@ config DEBUG | |||
36 | config RELEASE | 36 | config RELEASE |
37 | bool | 37 | bool |
38 | default y | 38 | default y |
39 | depends !DEBUG | 39 | depends !DEBUG |
40 | |||
41 | config QUICK_LAUNCH | ||
42 | boolean "Enable Quick Launch" | ||
43 | default n | ||
40 | 44 | ||
41 | config SPECFILE | 45 | config SPECFILE |
42 | string | 46 | string |
43 | default "qws/linux-generic-g++" if TARGET_X86 && (! X11) | 47 | default "qws/linux-generic-g++" if TARGET_X86 && (! X11) |
diff --git a/include.pro b/include.pro index 3ba8776..c70c4d5 100644 --- a/include.pro +++ b/include.pro | |||
@@ -1,9 +1,24 @@ | |||
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 ) { |
@@ -76,5 +91,6 @@ 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 ) | ||