source: psi/trunk/src/src.pro@ 7

Last change on this file since 7 was 2, checked in by dmik, 19 years ago

Imported original Psi 0.10 sources from Affinix

File size: 6.6 KB
Line 
1#
2# Psi qmake profile
3#
4
5# Configuration
6TEMPLATE = app
7CONFIG += qt thread x11
8
9#CONFIG += use_crash
10#DEFINES += GPG_DEBUG
11
12# Executable name
13TARGET = psi
14
15MOC_DIR = .moc
16OBJECTS_DIR = .obj
17UI_DIR = .ui
18
19# qconf
20exists(../conf.pri) {
21 include(../conf.pri)
22
23 # Shared files
24 sharedfiles.path = $$DATADIR
25 sharedfiles.files = ../README ../COPYING ../iconsets ../sound ../certs
26 INSTALLS += sharedfiles
27
28 # Widgets
29 #widgets.path = $$DATADIR/designer
30 #widgets.files = ../libpsi/psiwidgets/libpsiwidgets.so
31 #INSTALLS += widgets
32
33 # icons and desktop files
34 dt.path=$$PREFIX/share/applications/
35 dt.files = ../psi.desktop
36 icon1.path=$$PREFIX/share/icons/hicolor/16x16/apps
37 icon1.extra = cp -f ../iconsets/system/default/icon_16.png $(INSTALL_ROOT)$$icon1.path/psi.png
38 icon2.path=$$PREFIX/share/icons/hicolor/32x32/apps
39 icon2.extra = cp -f ../iconsets/system/default/icon_32.png $(INSTALL_ROOT)$$icon2.path/psi.png
40 icon3.path=$$PREFIX/share/icons/hicolor/48x48/apps
41 icon3.extra = cp -f ../iconsets/system/default/icon_48.png $(INSTALL_ROOT)$$icon3.path/psi.png
42 INSTALLS += dt icon1 icon2 icon3
43}
44
45win32: {
46 include(../conf_win32.pri)
47}
48
49# qxml
50!isEmpty(QXML_STATIC) {
51 unix: {
52 INCLUDEPATH += tools/qxml
53 HEADERS += tools/qxml/qxml.h tools/qxml/qdom.h
54 SOURCES += tools/qxml/qxml.cpp tools/qxml/qdom.cpp
55 }
56}
57
58# IPv6 ?
59#DEFINES += NO_NDNS
60
61# include some of cutestuff
62CONFIG += psics
63IRISCS_CPP = ../../cutestuff
64exists(../cutestuff) {
65 IRISCS_CPP = ../cutestuff
66}
67PSICS_CPP = tools
68include(../psics.pri)
69
70# qca
71#DEFINES += QCA_STATIC
72#QCA_PREFIX = ../qca
73#!exists(../qca) {
74# QCA_PREFIX = ../../qca/src
75#}
76#INCLUDEPATH += $$QCA_PREFIX
77#HEADERS += $$QCA_PREFIX/qca.h $$QCA_PREFIX/qcaprovider.h
78#SOURCES += $$QCA_PREFIX/qca.cpp
79
80# libxmpp
81#CONFIG += xmpp
82#XMPP_BASE = ../../xmpp
83#exists(../xmpp) {
84# XMPP_BASE = ../xmpp
85#}
86#include($$XMPP_BASE/xmpp.pri)
87
88# include Iris XMPP library
89#CONFIG += iris
90IRIS_BASE = ../../iris
91exists(../iris) {
92 IRIS_BASE = ../iris
93}
94include(../iris.pri)
95
96# include Psi library
97CONFIG += libpsi
98LIBPSI_CPP = ../../libpsi
99exists(../libpsi) {
100 LIBPSI_CPP = ../libpsi
101}
102include(../libpsi.pri)
103
104# Psi sources
105PSI_CPP = .
106
107# Header files
108HEADERS += \
109 $$PSI_CPP/varlist.h \
110 $$PSI_CPP/showtextdlg.h \
111 $$PSI_CPP/profiles.h \
112 $$PSI_CPP/profiledlg.h \
113 $$PSI_CPP/main.h \
114 $$PSI_CPP/psiaccount.h \
115 $$PSI_CPP/psicon.h \
116 $$PSI_CPP/psievent.h \
117 $$PSI_CPP/xmlconsole.h \
118 $$PSI_CPP/contactview.h \
119 $$PSI_CPP/psiiconset.h \
120 $$PSI_CPP/userlist.h \
121 $$PSI_CPP/mainwin.h \
122 $$PSI_CPP/mainwin_p.h \
123 $$PSI_CPP/rtparse.h \
124 $$PSI_CPP/common.h \
125 $$PSI_CPP/proxy.h \
126 $$PSI_CPP/accountdlg.h \
127 $$PSI_CPP/changepwdlg.h \
128 $$PSI_CPP/msgmle.h \
129 $$PSI_CPP/statusdlg.h \
130 $$PSI_CPP/eventdlg.h \
131 $$PSI_CPP/chatdlg.h \
132 $$PSI_CPP/tabdlg.h \
133 $$PSI_CPP/adduserdlg.h \
134 $$PSI_CPP/groupchatdlg.h \
135 $$PSI_CPP/infodlg.h \
136 $$PSI_CPP/eventdb.h \
137 $$PSI_CPP/historydlg.h \
138 $$PSI_CPP/servicesdlg.h \
139 $$PSI_CPP/jltest.h \
140# $$PSI_CPP/browserdlg.h \
141 $$PSI_CPP/psitoolbar.h \
142 $$PSI_CPP/passphrasedlg.h \
143 $$PSI_CPP/vcardfactory.h \
144 $$PSI_CPP/sslcertdlg.h \
145 $$PSI_CPP/qwextend.h \
146 $$PSI_CPP/tasklist.h \
147 $$PSI_CPP/discodlg.h \
148 $$PSI_CPP/alerticon.h \
149 $$PSI_CPP/psipopup.h \
150 $$PSI_CPP/psiapplication.h \
151 $$PSI_CPP/filetransdlg.h \
152 $$PSI_CPP/avatars.h \
153 $$PSI_CPP/actionlist.h \
154 $$PSI_CPP/psiactionlist.h \
155 $$PSI_CPP/xdata_widget.h \
156 $$PSI_CPP/xmpp_xdata.h
157
158# Source files
159SOURCES += \
160 $$PSI_CPP/varlist.cpp \
161 $$PSI_CPP/showtextdlg.cpp \
162 $$PSI_CPP/psi_profiles.cpp \
163 $$PSI_CPP/profiledlg.cpp \
164 $$PSI_CPP/main.cpp \
165 $$PSI_CPP/psiaccount.cpp \
166 $$PSI_CPP/psicon.cpp \
167 $$PSI_CPP/psievent.cpp \
168 $$PSI_CPP/xmlconsole.cpp \
169 $$PSI_CPP/contactview.cpp \
170 $$PSI_CPP/psiiconset.cpp \
171 $$PSI_CPP/userlist.cpp \
172 $$PSI_CPP/mainwin.cpp \
173 $$PSI_CPP/mainwin_p.cpp \
174 $$PSI_CPP/rtparse.cpp \
175 $$PSI_CPP/common.cpp \
176 $$PSI_CPP/proxy.cpp \
177 $$PSI_CPP/accountdlg.cpp \
178 $$PSI_CPP/changepwdlg.cpp \
179 $$PSI_CPP/msgmle.cpp \
180 $$PSI_CPP/statusdlg.cpp \
181 $$PSI_CPP/eventdlg.cpp \
182 $$PSI_CPP/chatdlg.cpp \
183 $$PSI_CPP/tabdlg.cpp \
184 $$PSI_CPP/adduserdlg.cpp \
185 $$PSI_CPP/groupchatdlg.cpp \
186 $$PSI_CPP/infodlg.cpp \
187 $$PSI_CPP/eventdb.cpp \
188 $$PSI_CPP/historydlg.cpp \
189 $$PSI_CPP/servicesdlg.cpp \
190 $$PSI_CPP/jltest.cpp \
191# $$PSI_CPP/browserdlg.cpp \
192 $$PSI_CPP/psitoolbar.cpp \
193 $$PSI_CPP/passphrasedlg.cpp \
194 $$PSI_CPP/vcardfactory.cpp \
195 $$PSI_CPP/sslcertdlg.cpp \
196 $$PSI_CPP/qwextend.cpp \
197 $$PSI_CPP/discodlg.cpp \
198 $$PSI_CPP/alerticon.cpp \
199 $$PSI_CPP/psipopup.cpp \
200 $$PSI_CPP/psiapplication.cpp \
201 $$PSI_CPP/filetransdlg.cpp \
202 $$PSI_CPP/avatars.cpp \
203 $$PSI_CPP/actionlist.cpp \
204 $$PSI_CPP/psiactionlist.cpp \
205 $$PSI_CPP/xdata_widget.cpp \
206 $$PSI_CPP/xmpp_xdata.cpp
207mac {
208 contains( DEFINES, HAVE_GROWL ) {
209 HEADERS += $$PSI_CPP/psigrowlnotifier.h
210 SOURCES += $$PSI_CPP/psigrowlnotifier.cpp
211 }
212}
213
214# Qt Designer interfaces
215INTERFACES = \
216 $$PSI_CPP/ui_profileopen.ui \
217 $$PSI_CPP/ui_profilemanage.ui \
218 $$PSI_CPP/ui_profilenew.ui \
219 $$PSI_CPP/ui_proxy.ui \
220 $$PSI_CPP/ui_pgpkey.ui \
221 $$PSI_CPP/ui_accountmanage.ui \
222 $$PSI_CPP/ui_accountadd.ui \
223 $$PSI_CPP/ui_accountreg.ui \
224 $$PSI_CPP/ui_accountremove.ui \
225 $$PSI_CPP/ui_accountmodify.ui \
226 $$PSI_CPP/ui_changepw.ui \
227 $$PSI_CPP/ui_addurl.ui \
228 $$PSI_CPP/ui_adduser.ui \
229 $$PSI_CPP/ui_gcjoin.ui \
230 $$PSI_CPP/ui_info.ui \
231 $$PSI_CPP/ui_search.ui \
232 $$PSI_CPP/ui_about.ui \
233# $$PSI_CPP/ui_browser.ui \
234 $$PSI_CPP/ui_passphrase.ui \
235 $$PSI_CPP/ui_sslcert.ui \
236 $$PSI_CPP/ui_disco.ui \
237 $$PSI_CPP/ui_tip.ui \
238 $$PSI_CPP/ui_filetrans.ui
239
240# options dialog
241include(options/options.pri)
242
243LANG_PATH = ../lang
244
245# Translations
246TRANSLATIONS = \
247 $$LANG_PATH/psi_ar.ts \
248 $$LANG_PATH/psi_ca.ts \
249 $$LANG_PATH/psi_cs.ts \
250 $$LANG_PATH/psi_da.ts \
251 $$LANG_PATH/psi_de.ts \
252 $$LANG_PATH/psi_el.ts \
253 $$LANG_PATH/psi_eo.ts \
254 $$LANG_PATH/psi_es.ts \
255 $$LANG_PATH/psi_fi.ts \
256 $$LANG_PATH/psi_fr.ts \
257 $$LANG_PATH/psi_it.ts \
258 $$LANG_PATH/psi_jp.ts \
259 $$LANG_PATH/psi_mk.ts \
260 $$LANG_PATH/psi_nl.ts \
261 $$LANG_PATH/psi_pl.ts \
262 $$LANG_PATH/psi_pt.ts \
263 $$LANG_PATH/psi_ptbr.ts \
264 $$LANG_PATH/psi_ru.ts \
265 $$LANG_PATH/psi_se.ts \
266 $$LANG_PATH/psi_sk.ts \
267 $$LANG_PATH/psi_sr.ts \
268 $$LANG_PATH/psi_zh.ts
269
270# Platform specifics
271unix:!mac {
272 QMAKE_POST_LINK = rm -f ../psi ; ln -s src/psi ../psi
273}
274win32: {
275 RC_FILE = ../win32/psi_win32.rc
276
277 # buggy MSVC workaround
278 contains(MAKEFILE_GENERATOR, MSVC): QMAKE_LFLAGS += /FORCE:MULTIPLE
279 contains(MAKEFILE_GENERATOR, MSVC.NET): QMAKE_LFLAGS += /FORCE:MULTIPLE
280}
281mac: {
282 QMAKE_LFLAGS += -framework Carbon -framework IOKit
283 QMAKE_INFO_PLIST = ../mac/Info.plist
284 RC_FILE = ../mac/application.icns
285 QMAKE_POST_LINK = cp -R ../COPYING ../README ../certs ../iconsets ../sound $(DESTDIR)../Resources ; echo "APPLpsi " > $(DESTDIR)../PkgInfo
286}
Note: See TracBrowser for help on using the repository browser.