]> git.sven.stormbind.net Git - sven/vym.git/blob - vym.pro
Replace Pierre as the maintainer
[sven/vym.git] / vym.pro
1 TARGET      = vym
2 TEMPLATE    = app
3 LANGUAGE    = C++
4
5 CONFIG  += qt warn_on x86_64 
6
7 QMAKE_MAC_SDK = macosx10.10
8
9 QT += network 
10 QT += xml 
11 QT += script 
12 QT += svg 
13 QT += printsupport
14 QT += widgets
15
16 #  include(tmp/modeltest/modeltest.pri)
17
18 RESOURCES = vym.qrc
19
20 unix:!macx:isEmpty(NO_DBUS) {
21     message("Compiling with DBUS")
22     DEFINES += VYM_DBUS
23     QT      += dbus 
24     HEADERS += src/adaptormodel.h src/adaptorvym.h 
25     SOURCES += src/adaptormodel.cpp src/adaptorvym.cpp 
26 }
27
28 win32 {
29     message("Compiling with win32")
30     HEADERS += src/mkdtemp.h
31     SOURCES += src/mkdtemp.cpp
32     RC_FILE = vym.rc
33     # Manifest embedding was suggested by Qt docs somewhere...
34     win32: CONFIG += embed_manifest_exe
35
36     # Without this, M_PI, and M_PI_2 won`t be defined.
37     win32:DEFINES *= _USE_MATH_DEFINES
38
39     QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins\platforms\
40 }
41 macx {
42     QMAK_MAC_SDK = macosx10.10
43     QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10
44 }
45
46 TRANSLATIONS += lang/vym.de.ts
47 TRANSLATIONS += lang/vym.el.ts
48 TRANSLATIONS += lang/vym.en.ts
49 TRANSLATIONS += lang/vym.es.ts
50 TRANSLATIONS += lang/vym.fr.ts
51 TRANSLATIONS += lang/vym.hr_HR.ts
52 TRANSLATIONS += lang/vym.ia.ts
53 TRANSLATIONS += lang/vym.it.ts
54 TRANSLATIONS += lang/vym.ja.ts
55 TRANSLATIONS += lang/vym.pt_BR.ts
56 TRANSLATIONS += lang/vym.ru.ts
57 TRANSLATIONS += lang/vym.sv.ts
58 TRANSLATIONS += lang/vym.zh_CN.ts
59 TRANSLATIONS += lang/vym.zh_TW.ts
60 TRANSLATIONS += lang/vym.cs_CZ.ts
61
62 ICON =icons/vym.icns
63
64
65 HEADERS += \
66     src/aboutdialog.h \
67     src/animpoint.h \
68     src/arrowobj.h \
69     src/attribute.h \
70     src/attributeitem.h \
71 #    src/attributedelegate.h\
72 #    src/attributedialog.h \
73 #    src/attributewidget.h \
74     src/branchitem.h \
75     src/branchobj.h \
76     src/branchpropeditor.h\
77     src/codeeditor.h \
78     src/command.h \
79     src/confluence-agent.h \
80     src/confluence-user.h \
81     src/confluence-userdialog.h \
82     src/credentials.h \
83     src/dockeditor.h \
84     src/download-agent.h \
85     src/editxlinkdialog.h \
86     src/exportoofiledialog.h \
87     src/export-html-dialog.h\
88     src/export-confluence-dialog.h\
89     src/export-ao.h \
90     src/export-ascii.h \
91     src/export-base.h \
92     src/export-csv.h \
93     src/export-confluence.h \
94     src/export-firefox.h \
95     src/export-html.h \
96     src/export-impress.h \
97     src/export-latex.h \
98     src/export-markdown.h \
99     src/export-orgmode.h \
100     src/export-taskjuggler.h \
101     src/extrainfodialog.h \
102     src/file.h \
103     src/findwidget.h \
104     src/findresultwidget.h \
105     src/findresultitem.h \
106     src/findresultmodel.h \
107     src/flag.h \
108     src/flagobj.h \
109     src/flagrowobj.h \
110     src/flagrow.h \
111     src/flagrowmaster.h \
112     src/floatimageobj.h \
113     src/floatobj.h \
114     src/frameobj.h \
115     src/geometry.h \
116     src/heading.h \
117     src/headingeditor.h \
118     src/headingobj.h \
119     src/highlighter.h \
120     src/historywindow.h \
121     src/imageitem.h \
122     src/imageobj.h \
123     src/imports.h \
124     src/jira-agent.h \
125     src/lineeditdialog.h \
126     src/linkablemapobj.h \
127     src/lockedfiledialog.h \
128     src/macros.h \
129     src/mainwindow.h \
130     src/mapeditor.h \
131     src/mapitem.h \
132     src/mapobj.h \
133     src/misc.h \
134     src/mysortfilterproxymodel.h \
135     src/noteeditor.h \
136     src/options.h \
137     src/ornamentedobj.h \
138     src/scripteditor.h\
139     src/scripting.h \
140     src/scriptoutput.h \
141     src/settings.h \
142     src/shortcuts.h\
143     src/showtextdialog.h\
144     src/slidecontrolwidget.h\
145     src/slideeditor.h\
146     src/slideitem.h\
147     src/slidemodel.h\
148     src/task.h\
149     src/taskeditor.h\
150     src/taskfiltermodel.h \
151     src/taskmodel.h\
152     src/treedelegate.h \
153     src/treeeditor.h \
154     src/treeitem.h \
155     src/treemodel.h \
156     src/texteditor.h \
157     src/version.h \
158     src/vymlock.h \
159     src/vymmodel.h \
160     src/vymmodelwrapper.h \
161     src/vymnote.h \
162     src/vymprocess.h \
163     src/vymtext.h \
164     src/vymview.h \
165     src/winter.h \
166     src/warningdialog.h \
167     src/xlink.h \
168     src/xlinkitem.h \
169     src/xlinkobj.h \
170     src/xml-base.h \
171     src/xml-vym.h \
172     src/xml-freemind.h \
173     src/xmlobj.h\
174     src/xsltproc.h \
175     src/zip-settings-dialog.h
176
177 SOURCES += \
178     src/aboutdialog.cpp \
179     src/animpoint.cpp \
180     src/arrowobj.cpp \
181     src/attribute.cpp \
182     src/attributeitem.cpp \
183 #    src/attributedelegate.cpp \
184 #    src/attributedialog.cpp \
185 #    src/attributewidget.cpp \
186     src/branchitem.cpp \
187     src/branchobj.cpp \
188     src/branchpropeditor.cpp \
189     src/codeeditor.cpp \
190     src/command.cpp \
191     src/confluence-agent.cpp \
192     src/confluence-user.cpp \
193     src/credentials.cpp \
194     src/dockeditor.cpp \
195     src/download-agent.cpp \
196     src/editxlinkdialog.cpp \
197     src/export-html-dialog.cpp \
198     src/export-confluence-dialog.cpp \
199     src/exportoofiledialog.cpp \
200     src/export-ao.cpp \
201     src/export-ascii.cpp \
202     src/export-base.cpp \
203     src/export-confluence.cpp \
204     src/export-csv.cpp \
205     src/export-firefox.cpp \
206     src/export-html.cpp \
207     src/export-impress.cpp \
208     src/export-latex.cpp \
209     src/export-markdown.cpp \
210     src/export-orgmode.cpp \
211     src/export-taskjuggler.cpp \
212     src/extrainfodialog.cpp \
213     src/file.cpp \
214     src/findwidget.cpp \
215     src/findresultwidget.cpp \
216     src/findresultitem.cpp \
217     src/findresultmodel.cpp \
218     src/flag.cpp \
219     src/flagobj.cpp \
220     src/flagrow.cpp \
221     src/flagrowmaster.cpp \
222     src/flagrowobj.cpp \
223     src/floatimageobj.cpp \
224     src/floatobj.cpp \
225     src/frameobj.cpp \
226     src/geometry.cpp \
227     src/heading.cpp \
228     src/headingeditor.cpp \
229     src/headingobj.cpp \
230     src/highlighter.cpp \
231     src/historywindow.cpp \
232     src/imageitem.cpp \
233     src/imageobj.cpp \
234     src/imports.cpp \
235     src/jira-agent.cpp \
236     src/lineeditdialog.cpp \
237     src/linkablemapobj.cpp \
238     src/lockedfiledialog.cpp \
239     src/macros.cpp \
240     src/main.cpp \
241     src/mainwindow.cpp \
242     src/mapeditor.cpp \
243     src/mapitem.cpp \
244     src/mapobj.cpp \
245     src/misc.cpp \
246     src/mysortfilterproxymodel.cpp \
247     src/noteeditor.cpp \
248     src/options.cpp \
249     src/ornamentedobj.cpp \
250     src/scripteditor.cpp \
251     src/scripting.cpp \
252     src/scriptoutput.cpp \
253     src/settings.cpp \
254     src/shortcuts.cpp\
255     src/showtextdialog.cpp \
256     src/slidecontrolwidget.cpp \
257     src/slideeditor.cpp \
258     src/slideitem.cpp \
259     src/slidemodel.cpp \
260     src/task.cpp \
261     src/taskeditor.cpp \
262     src/taskfiltermodel.cpp \
263     src/taskmodel.cpp \
264     src/texteditor.cpp \
265     src/treedelegate.cpp \
266     src/treeeditor.cpp \
267     src/treeitem.cpp \
268     src/treemodel.cpp \
269     src/confluence-userdialog.cpp \
270     src/version.cpp \
271     src/vymlock.cpp \
272     src/vymmodel.cpp \
273     src/vymmodelwrapper.cpp \
274     src/vymnote.cpp \
275     src/vymprocess.cpp \
276     src/vymtext.cpp \
277     src/vymview.cpp \
278     src/warningdialog.cpp \
279     src/winter.cpp \
280     src//xlink.cpp \
281     src/xlinkitem.cpp \
282     src/xlinkobj.cpp \
283     src/xml-base.cpp \
284     src/xml-vym.cpp \
285     src/xml-freemind.cpp \
286     src/xmlobj.cpp \
287     src/xsltproc.cpp \
288     src/zip-settings-dialog.cpp
289
290 FORMS = \
291     forms/attributewidget.ui \
292     forms/branchpropeditor.ui \
293     forms/credentials.ui \
294     forms/export-html-dialog.ui \
295     forms/export-confluence-dialog.ui \
296     forms/extrainfodialog.ui \
297     forms/editxlinkdialog.ui \
298     forms/historywindow.ui \
299     forms/lineeditdialog.ui \
300     forms/lockedfiledialog.ui \
301     forms/scripteditor.ui \
302     forms/showtextdialog.ui \
303     forms/confluence-userdialog.ui \
304     forms/warningdialog.ui \
305     forms/zip-settings-dialog.ui
306
307 isEmpty( PREFIX ) {
308     PREFIX = /usr/share
309     count( INSTALLDIR, 1 ) {
310         PREFIX = $${INSTALLDIR}
311     }
312 }
313 isEmpty( BINDIR ) {
314     BINDIR = /usr/bin
315 }
316 isEmpty( DATADIR ) {
317     DATADIR = $${PREFIX}/vym
318 }
319
320 target.path = $${BINDIR}
321 INSTALLS += target
322
323 DEFINES += "VYMBASEDIR='\"$${DATADIR}\"'"
324
325 message( "PREFIX Dir: $$PREFIX" )
326 message( "DATADIR: $$DATADIR" )
327 message( "DEFINES: $$DEFINES" )
328
329 language.files = lang/*.qm
330 language.path = $${DATADIR}/lang
331 INSTALLS += language
332
333 support.files = demos \
334     exports/  \
335     flags/ \
336     icons/ \
337     macros/ \
338     scripts/ \
339     styles/ 
340
341 support.path = $${DATADIR}
342 INSTALLS += support 
343
344 # doc.files = doc/vym.pdf
345 # doc.files += LICENSE.txt
346 # doc.path = $${DOCDIR}
347 # INSTALLS += doc
348 # DEFINES += VYM_DOCDIR=\\\"$${DOCDIR}\\\"