author | zecke <zecke> | 2003-08-27 12:24:03 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-27 12:24:03 (UTC) |
commit | 6a6af694205eb9a55b18eb10f2290a9747019388 (patch) (side-by-side diff) | |
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
@@ -19,4 +19,15 @@ else echo CONFIG += qt3 >> $@ endif +ifneq ($(CONFIG_QUICK_LAUNCH),) + echo contains\( CONFIG, quick-app \) \{ >> $@ + echo CONFIG -= quick-app >> $@ + echo CONFIG += quick-app-lib >> $@ + echo \} >> $@ +else + echo contains\( CONFIG, quick-app \) \{ >> $@ + echo CONFIG -= quick-app >> $@ + echo CONFIG += quick-app-bin >> $@ + echo \} >> $@ +endif $(TOPDIR)/.depends : $(shell if [ -e $(TOPDIR)/config.in ]\; then echo $(TOPDIR)/config.in\; fi\;) $(TOPDIR)/.config $(TOPDIR)/packages @@ -38,4 +38,8 @@ config RELEASE default y depends !DEBUG + +config QUICK_LAUNCH + boolean "Enable Quick Launch" + default n config SPECFILE diff --git a/include.pro b/include.pro index 3ba8776..c70c4d5 100644 --- a/include.pro +++ b/include.pro @@ -1,2 +1,4 @@ +include ( $(OPIEDIR)/gen.pro ) + # make install @@ -4,4 +6,17 @@ prefix = /opt/QtPalmtop + +contains( CONFIG, quick-app-lib ) { + TEMPLATE = lib + DESTDIR = $(OPIEDIR)/plugins/applications + DEFINES += OPIE_APP_INTERFACE +} +contains ( CONFIG, quick-app-bin ) { + TEMPLATE = app + DESTDIR = $(OPIEDIR)/bin + DEFINES -= OPIE_APP_INTERFACE +} + + contains( TEMPLATE, lib ) { target.path = $$prefix/lib @@ -78,3 +93,4 @@ MOC_DIR=.moc/$(PLATFORM) OBJECTS_DIR=.obj/$(PLATFORM) -include ( $(OPIEDIR)/gen.pro ) +#was here now at thetop +#include ( $(OPIEDIR)/gen.pro ) |