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