-
Notifications
You must be signed in to change notification settings - Fork 0
/
OpenBoard.pro
542 lines (484 loc) · 18.6 KB
/
OpenBoard.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
TARGET = "OpenBoard"
TEMPLATE = app
CONFIG += c++14
CONFIG -= flat
CONFIG += debug_and_release \
no_include_pwd
VERSION_MAJ = 1
VERSION_MIN = 6
VERSION_PATCH = 1
VERSION_TYPE = r # a = alpha, b = beta, rc = release candidate, r = release, other => error
VERSION_BUILD = 0309
VERSION = "$${VERSION_MAJ}.$${VERSION_MIN}.$${VERSION_PATCH}-$${VERSION_TYPE}.$${VERSION_BUILD}"
equals(VERSION_TYPE, r) {
VERSION = "$${VERSION_MAJ}.$${VERSION_MIN}.$${VERSION_PATCH}"
}
LONG_VERSION = "$${VERSION}.$${SVN_VERSION}"
macx:OSX_VERSION = "$${VERSION} (r$${SVN_VERSION})"
VERSION_RC = $$VERSION_MAJ,$$VERSION_MIN,$$VERSION_PATCH,$$VERSION_TYPE,$$VERSION_BUILD
VERSION_RC = $$replace(VERSION_RC, "a", "160") # 0xA0
VERSION_RC = $$replace(VERSION_RC, "b", "176") # 0xB0
VERSION_RC = $$replace(VERSION_RC, "rc", "192" ) # 0xC0
VERSION_RC = $$replace(VERSION_RC, "r", "240") # 0xF0
QT += webkit
QT += svg
QT += network
QT += xml
QT += xmlpatterns
QT += uitools
QT += multimedia
QT += webkitwidgets
QT += multimediawidgets
QT += printsupport
QT += core
INCLUDEPATH += src
include(src/adaptors/adaptors.pri)
include(src/api/api.pri)
include(src/board/board.pri)
include(src/core/core.pri)
include(src/document/document.pri)
include(src/domain/domain.pri)
include(src/frameworks/frameworks.pri)
include(src/gui/gui.pri)
include(src/network/network.pri)
include(src/pdf/pdf.pri)
include(src/podcast/podcast.pri)
include(src/tools/tools.pri)
include(src/desktop/desktop.pri)
include(src/web/web.pri)
include(src/qtsingleapplication/src/qtsingleapplication.pri)
DEPENDPATH += src/pdf-merger
INCLUDEPATH += src/pdf-merger
include(src/pdf-merger/pdfMerger.pri)
#plugins
include(plugins/plugins.pri)
INCLUDEPATH += plugins/cffadaptor/src
FORMS += resources/forms/mainWindow.ui \
resources/forms/preferences.ui \
resources/forms/brushProperties.ui \
resources/forms/documents.ui \
resources/forms/blackoutWidget.ui \
resources/forms/trapFlash.ui \
resources/forms/youTubePublishingDialog.ui \
resources/forms/capturePublishing.ui \
resources/forms/intranetPodcastPublishingDialog.ui
UB_ETC.files = resources/etc
UB_I18N.files = resources/i18n/*.qm
UB_LIBRARY.files = resources/library
UB_FONTS.files = resources/fonts
UB_THIRDPARTY_INTERACTIVE.files = thirdparty/interactive
DEFINES += NO_THIRD_PARTY_WARNINGS
DEFINES += UBVERSION=\"\\\"$${LONG_VERSION}\"\\\" \
UBVERSION_RC=$$VERSION_RC
ALPHA_BETA_STR = $$find(VERSION, "[ab]")
count(ALPHA_BETA_STR, 1):DEFINES += PRE_RELEASE
BUILD_DIR = build
macx:BUILD_DIR = $$BUILD_DIR/macx
win32:BUILD_DIR = $$BUILD_DIR/win32
linux-g++*:BUILD_DIR = $$BUILD_DIR/linux
freebsd:BUILD_DIR = $$BUILD_DIR/freebsd
CONFIG(debug, debug|release):BUILD_DIR = $$BUILD_DIR/debug
CONFIG(release, debug|release) {
BUILD_DIR = $$BUILD_DIR/release
CONFIG += warn_off
}
DESTDIR = $$BUILD_DIR/product
OBJECTS_DIR = $$BUILD_DIR/objects
MOC_DIR = $$BUILD_DIR/moc
RCC_DIR = $$BUILD_DIR/rcc
UI_DIR = $$BUILD_DIR/ui
win32 {
LIBS += -lUser32
LIBS += -lGdi32
LIBS += -lAdvApi32
LIBS += -lOle32
THIRD_PARTY_PATH=../OpenBoard-ThirdParty
include($$THIRD_PARTY_PATH/libs.pri)
DEPENDPATH += $$THIRD_PARTY_PATH/quazip/
INCLUDEPATH += $$THIRD_PARTY_PATH/quazip/
include($$THIRD_PARTY_PATH/quazip/quazip.pri)
RC_FILE = resources/win/OpenBoard.rc
CONFIG += axcontainer
exists(console):CONFIG += console
QMAKE_CXXFLAGS += /MP
CONFIG( debug, debug|release ) {
QMAKE_CXXFLAGS += /MDd
} else {
QMAKE_CXXFLAGS += /MD
}
QMAKE_CXXFLAGS_RELEASE += /Od /Zi
QMAKE_LFLAGS += /VERBOSE:LIB
UB_LIBRARY.path = $$DESTDIR
UB_I18N.path = $$DESTDIR/i18n
UB_ETC.path = $$DESTDIR
UB_THIRDPARTY_INTERACTIVE.path = $$DESTDIR/library
system(md $$replace(BUILD_DIR, /, \\))
system(echo "$$VERSION" > $$BUILD_DIR/version)
system(echo "$$LONG_VERSION" > $$BUILD_DIR/longversion)
system(echo "$$SVN_VERSION" > $$BUILD_DIR/svnversion)
DEFINES += NOMINMAX # avoids compilation error in qdatetime.h
# Windows doesn't support file versions with more than 4 fields, so
# we omit the build number (which is only used for pre-release versions
# anyway)
VERSION_RC = $$VERSION_MAJ,$$VERSION_MIN,$$VERSION_PATCH,$$VERSION_TYPE
VERSION_RC = $$replace(VERSION_RC, "a", "160") # 0xA0
VERSION_RC = $$replace(VERSION_RC, "b", "176") # 0xB0
VERSION_RC = $$replace(VERSION_RC, "rc", "192" ) # 0xC0
VERSION_RC = $$replace(VERSION_RC, "r", "240") # 0xF0
DEFINES += UBVERSION=\"\\\"$${VERSION}\"\\\" \
UBVERSION_RC=$$VERSION_RC
}
macx {
DEFINES += Q_WS_MACX
LIBS += -framework Foundation
LIBS += -framework Cocoa
LIBS += -framework Carbon
LIBS += -framework AVFoundation
LIBS += -framework CoreMedia
LIBS += -lcrypto
LIBS += -L/usr/local/opt/openssl/lib
# quazip depends on QT. Current is 5.14, so if you wish to build
# OB using a previous QT version, you have to build your own quazip,
# otherwise it won't link.
equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 14) {
LIBS += "-L../OpenBoard-ThirdParty/quazip/lib/macx" "-lquazip"
} else {
LIBS += -L/usr/local/opt/quazip/lib -lquazip
}
LIBS += -L/usr/local/opt/ffmpeg/lib
INCLUDEPATH += /usr/local/opt/openssl/include
INCLUDEPATH += /usr/local/opt/ffmpeg/include
equals(QT_MAJOR_VERSION, 5):lessThan(QT_MINOR_VERSION, 14) {
INCLUDEPATH += ../OpenBoard-ThirdParty/quazip/quazip-0.7.1
} else {
INCLUDEPATH += /usr/local/opt/quazip/include/quazip
}
LIBS += -L/usr/local/opt/poppler/lib -lpoppler
INCLUDEPATH += /usr/local/opt/poppler/include
INCLUDEPATH += /usr/local/opt/poppler/include/poppler
CONFIG(release, debug|release):CONFIG += x86_64
CONFIG(debug, debug|release):CONFIG += x86_64
QMAKE_MAC_SDK = macosx
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10
QMAKE_CXXFLAGS += -Wno-overloaded-virtual
#VERSION_RC_PATH = "$$BUILD_DIR/version_rc"
# No references to breakpad in the code =>is this still used?
# Embed version into executable for breakpad
#QMAKE_LFLAGS += -sectcreate \
# __DATA \
# __version \
# $$VERSION_RC_PATH
QMAKE_CXXFLAGS_RELEASE += -gdwarf-2 \
-mdynamic-no-pic
# QMAKE_CFLAGS += -fopenmp
# QMAKE_CXXFLAGS += -fopenmp
# QMAKE_LFLAGS += -fopenmp
CONTENTS_DIR = "Contents"
RESOURCES_DIR = "Contents/Resources"
FRAMEWORKS_DIR = "Contents/Frameworks"
UB_ETC.files = "resources/etc"
UB_ETC.path = "$$RESOURCES_DIR"
UB_LIBRARY.files = "resources/library"
UB_LIBRARY.path = "$$RESOURCES_DIR"
UB_FONTS.files = "resources/fonts"
UB_FONTS.path = "$$RESOURCES_DIR"
UB_THIRDPARTY_INTERACTIVE.files = $$files($$THIRD_PARTY_PATH/interactive/*)
UB_THIRDPARTY_INTERACTIVE.path = "$$RESOURCES_DIR/library/interactive"
UB_MACX_ICNS.files = $$files(resources/macx/*.icns)
UB_MACX_ICNS.path = "$$RESOURCES_DIR"
UB_MACX_EXTRAS.files = "resources/macx/Save PDF to OpenBoard.workflow"
UB_MACX_EXTRAS.path = "$$RESOURCES_DIR"
UB_I18N.path = $$DESTDIR/i18n # not used
exists(resources/i18n/OpenBoard_en.qm) {
TRANSLATION_en.files = resources/i18n/OpenBoard_en.qm \
resources/i18n/Localizable.strings
TRANSLATION_en.path = "$$RESOURCES_DIR/en.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_en
}
exists(resources/i18n/OpenBoard_en_UK.qm) {
TRANSLATION_en_UK.files = resources/i18n/OpenBoard_en_UK.qm \
resources/i18n/Localizable.strings
TRANSLATION_en_UK.path = "$$RESOURCES_DIR/en_UK.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_en_UK
}
exists(resources/i18n/OpenBoard_fr.qm) {
TRANSLATION_fr.files = resources/i18n/OpenBoard_fr.qm \
resources/i18n/Localizable.strings
TRANSLATION_fr.path = "$$RESOURCES_DIR/fr.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_fr
}
exists(resources/i18n/OpenBoard_fr_CH.qm) {
TRANSLATION_fr_CH.files = resources/i18n/OpenBoard_fr_CH.qm \
resources/i18n/Localizable.strings
TRANSLATION_fr_CH.path = "$$RESOURCES_DIR/fr_CH.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_fr_CH
}
exists(resources/i18n/OpenBoard_de.qm) {
TRANSLATION_de.files = resources/i18n/OpenBoard_de.qm \
resources/i18n/Localizable.strings
TRANSLATION_de.path = "$$RESOURCES_DIR/de.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_de
}
exists(resources/i18n/OpenBoard_nl.qm) {
TRANSLATION_nl.files = resources/i18n/OpenBoard_nl.qm \
resources/i18n/Localizable.strings
TRANSLATION_nl.path = "$$RESOURCES_DIR/nl.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_nl
}
exists(resources/i18n/OpenBoard_es.qm) {
TRANSLATION_es.files = resources/i18n/OpenBoard_es.qm \
resources/i18n/Localizable.strings
TRANSLATION_es.path = "$$RESOURCES_DIR/es.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_es
}
exists(resources/i18n/OpenBoard_it.qm) {
TRANSLATION_it.files = resources/i18n/OpenBoard_it.qm \
resources/i18n/Localizable.strings
TRANSLATION_it.path = "$$RESOURCES_DIR/it.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_it
}
exists(resources/i18n/OpenBoard_pl.qm) {
TRANSLATION_pl.files = resources/i18n/OpenBoard_pl.qm \
resources/i18n/Localizable.strings
TRANSLATION_pl.path = "$$RESOURCES_DIR/pl.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_pl
}
exists(resources/i18n/OpenBoard_ru.qm) {
TRANSLATION_ru.files = resources/i18n/OpenBoard_ru.qm \
resources/i18n/Localizable.strings
TRANSLATION_ru.path = "$$RESOURCES_DIR/ru.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_ru
}
exists(resources/i18n/OpenBoard_da.qm) {
TRANSLATION_da.files = resources/i18n/OpenBoard_da.qm \
resources/i18n/Localizable.strings
TRANSLATION_da.path = "$$RESOURCES_DIR/da.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_da
}
exists(resources/i18n/OpenBoard_nb.qm) {
TRANSLATION_nb.files = resources/i18n/OpenBoard_nb.qm \
resources/i18n/Localizable.strings
TRANSLATION_nb.path = "$$RESOURCES_DIR/nb.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_nb
}
exists(resources/i18n/OpenBoard_sv.qm) {
TRANSLATION_sv.files = resources/i18n/OpenBoard_sv.qm \
resources/i18n/Localizable.strings
TRANSLATION_sv.path = "$$RESOURCES_DIR/sv.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_sv
}
exists(resources/i18n/OpenBoard_ja.qm) {
TRANSLATION_ja.files = resources/i18n/OpenBoard_ja.qm \
resources/i18n/Localizable.strings
TRANSLATION_ja.path = "$$RESOURCES_DIR/ja.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_ja
}
exists(resources/i18n/OpenBoard_ko.qm) {
TRANSLATION_ko.files = resources/i18n/OpenBoard_ko.qm \
resources/i18n/Localizable.strings
TRANSLATION_ko.path = "$$RESOURCES_DIR/ko.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_ko
}
exists(resources/i18n/OpenBoard_zh.qm) {
TRANSLATION_zh.files = resources/i18n/OpenBoard_zh.qm \
resources/i18n/Localizable.strings
TRANSLATION_zh.path = "$$RESOURCES_DIR/zh.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_zh
}
exists(resources/i18n/OpenBoard_zh_CN.qm) {
TRANSLATION_zh_CN.files = resources/i18n/OpenBoard_zh_CN.qm \
resources/i18n/Localizable.strings
TRANSLATION_zh_CN.path = "$$RESOURCES_DIR/zh_CN.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_zh_CN
}
exists(resources/i18n/OpenBoard_zh_TW.qm) {
TRANSLATION_zh_TW.files = resources/i18n/OpenBoard_zh_TW.qm \
resources/i18n/Localizable.strings
TRANSLATION_zh_TW.path = "$$RESOURCES_DIR/zh_TW.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_zh_TW
}
exists(resources/i18n/OpenBoard_ro.qm) {
TRANSLATION_ro.files = resources/i18n/OpenBoard_ro.qm \
resources/i18n/Localizable.strings
TRANSLATION_ro.path = "$$RESOURCES_DIR/ro.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_ro
}
exists(resources/i18n/OpenBoard_ar.qm) {
TRANSLATION_ar.files = resources/i18n/OpenBoard_ar.qm \
resources/i18n/Localizable.strings
TRANSLATION_ar.path = "$$RESOURCES_DIR/ar.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_ar
}
exists(resources/i18n/OpenBoard_iw.qm) {
TRANSLATION_iw.files = resources/i18n/OpenBoard_iw.qm \
resources/i18n/Localizable.strings
TRANSLATION_iw.path = "$$RESOURCES_DIR/iw.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_iw
}
exists(resources/i18n/OpenBoard_pt.qm) {
TRANSLATION_pt.files = resources/i18n/OpenBoard_pt.qm \
resources/i18n/Localizable.strings
TRANSLATION_pt.path = "$$RESOURCES_DIR/pt.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_pt
}
exists(resources/i18n/OpenBoard_sk.qm) {
TRANSLATION_sk.files = resources/i18n/OpenBoard_sk.qm \
resources/i18n/Localizable.strings
TRANSLATION_sk.path = "$$RESOURCES_DIR/sk.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_sk
}
exists(resources/i18n/OpenBoard_bg.qm) {
TRANSLATION_bg.files = resources/i18n/OpenBoard_bg.qm \
resources/i18n/Localizable.strings
TRANSLATION_bg.path = "$$RESOURCES_DIR/bg.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_bg
}
exists(resources/i18n/OpenBoard_ca.qm) {
TRANSLATION_ca.files = resources/i18n/OpenBoard_ca.qm \
resources/i18n/Localizable.strings
TRANSLATION_ca.path = "$$RESOURCES_DIR/ca.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_ca
}
exists(resources/i18n/OpenBoard_el.qm) {
TRANSLATION_el.files = resources/i18n/OpenBoard_el.qm \
resources/i18n/Localizable.strings
TRANSLATION_el.path = "$$RESOURCES_DIR/el.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_el
}
exists(resources/i18n/OpenBoard_tr.qm) {
TRANSLATION_tr.files = resources/i18n/OpenBoard_tr.qm \
resources/i18n/Localizable.strings
TRANSLATION_tr.path = "$$RESOURCES_DIR/tr.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_tr
}
exists(resources/i18n/OpenBoard_cs.qm) {
TRANSLATION_cs.files = resources/i18n/OpenBoard_cs.qm \
resources/i18n/localizable.strings
TRANSLATION_cs.path = "$$RESOURCES_DIR/cs.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_cs
}
exists(resources/i18n/OpenBoard_mg.qm) {
TRANSLATION_mg.files = resources/i18n/OpenBoard_mg.qm \
resources/i18n/localizable.strings
TRANSLATION_mg.path = "$$RESOURCES_DIR/mg.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_mg
}
exists(resources/i18n/OpenBoard_gl.qm) {
TRANSLATION_gl.files = resources/i18n/OpenBoard_gl.qm \
resources/i18n/localizable.strings
TRANSLATION_gl.path = "$$RESOURCES_DIR/gl.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_gl
}
exists(resources/i18n/OpenBoard_uk.qm) {
TRANSLATION_uk.files = resources/i18n/OpenBoard_uk.qm \
resources/i18n/localizable.strings
TRANSLATION_uk.path = "$$RESOURCES_DIR/uk.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_uk
}
exists(resources/i18n/OpenBoard_hu.qm) {
TRANSLATION_hu.files = resources/i18n/OpenBoard_hu.qm \
resources/i18n/localizable.strings
TRANSLATION_hu.path = "$$RESOURCES_DIR/hu.lproj"
QMAKE_BUNDLE_DATA += TRANSLATION_hu
}
QMAKE_BUNDLE_DATA += UB_ETC \
UB_LIBRARY \
UB_FONTS \
UB_THIRDPARTY_INTERACTIVE \
UB_MACX_ICNS \
UB_MACX_EXTRAS \
SPARKLE_KEY \
FRAMEWORKS
QMAKE_PKGINFO_TYPEINFO = "OpenB"
QMAKE_INFO_PLIST = "resources/macx/Info.plist"
# For packger (release.macx.sh script) to know OpenBoard version
system(mkdir -p $$BUILD_DIR)
system(printf \""$$OSX_VERSION"\" > $$BUILD_DIR/osx_version)
system(printf \""$$VERSION"\" > $$BUILD_DIR/version)
# system(printf "%02x%02x%02x%02x" `printf $$VERSION_RC | cut -d ',' -f 1` `printf $$VERSION_RC | cut -d ',' -f 2` `printf $$VERSION_RC | cut -d ',' -f 3` `printf $$VERSION_RC | cut -d ',' -f 4` | xxd -r -p > "$$VERSION_RC_PATH")
}
linux-g++* {
CONFIG += link_prl
LIBS += -lcrypto
#LIBS += -lprofiler
LIBS += -lX11
LIBS += -lquazip5
INCLUDEPATH += "/usr/include/quazip"
LIBS += -lpoppler
INCLUDEPATH += "/usr/include/poppler"
QMAKE_CFLAGS += -fopenmp
QMAKE_CXXFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp
UB_LIBRARY.path = $$DESTDIR
UB_I18N.path = $$DESTDIR/i18n
UB_ETC.path = $$DESTDIR
UB_THIRDPARTY_INTERACTIVE.path = $$DESTDIR/library
system(mkdir -p $$BUILD_DIR)
system(echo "$$VERSION" > $$BUILD_DIR/version)
system(echo "$$LONG_VERSION" > $$BUILD_DIR/longversion)
system(echo "$$SVN_VERSION" > $$BUILD_DIR/svnversion)
}
freebsd-clang {
CONFIG += link_prl
LIBS += -L/usr/local/lib
LIBS += -lcrypto
INCLUDEPATH += "/usr/local/include"
#LIBS += -lprofiler
LIBS += -lX11
LIBS += -lquazip1-qt5
INCLUDEPATH += "/usr/local/include/QuaZip-Qt5-1.1/quazip"
LIBS += -lpoppler
INCLUDEPATH += "/usr/local/include/poppler"
QMAKE_CFLAGS += -fopenmp
QMAKE_CXXFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp
UB_LIBRARY.path = $$DESTDIR
UB_I18N.path = $$DESTDIR/i18n
UB_ETC.path = $$DESTDIR
UB_THIRDPARTY_INTERACTIVE.path = $$DESTDIR/library
system(mkdir -p $$BUILD_DIR)
system(echo "$$VERSION" > $$BUILD_DIR/version)
system(echo "$$LONG_VERSION" > $$BUILD_DIR/longversion)
system(echo "$$SVN_VERSION" > $$BUILD_DIR/svnversion)
}
RESOURCES += resources/OpenBoard.qrc
# When adding a translation here, also add it in the macx part
TRANSLATIONS = resources/i18n/OpenBoard_en.ts \
resources/i18n/OpenBoard_en_UK.ts \
resources/i18n/OpenBoard_fr.ts \
resources/i18n/OpenBoard_fr_CH.ts \
resources/i18n/OpenBoard_de.ts \
resources/i18n/OpenBoard_nl.ts \
resources/i18n/OpenBoard_es.ts \
resources/i18n/OpenBoard_it.ts \
resources/i18n/OpenBoard_pl.ts \
resources/i18n/OpenBoard_ru.ts \
resources/i18n/OpenBoard_da.ts \
resources/i18n/OpenBoard_nb.ts \
resources/i18n/OpenBoard_sv.ts \
resources/i18n/OpenBoard_ja.ts \
resources/i18n/OpenBoard_ko.ts \
resources/i18n/OpenBoard_zh.ts \
resources/i18n/OpenBoard_zh_CN.ts \
resources/i18n/OpenBoard_zh_TW.ts \
resources/i18n/OpenBoard_ro.ts \
resources/i18n/OpenBoard_ar.ts \
resources/i18n/OpenBoard_iw.ts \
resources/i18n/OpenBoard_pt.ts \
resources/i18n/OpenBoard_sk.ts \
resources/i18n/OpenBoard_bg.ts \
resources/i18n/OpenBoard_ca.ts \
resources/i18n/OpenBoard_el.ts \
resources/i18n/OpenBoard_tr.ts \
resources/i18n/OpenBoard_cs.ts \
resources/i18n/OpenBoard_gl.ts \
resources/i18n/OpenBoard_uk.ts \
resources/i18n/OpenBoard_hu.ts \
resources/i18n/OpenBoard_mg.ts
INSTALLS = UB_ETC \
UB_I18N \
UB_LIBRARY \
UB_THIRDPARTY_INTERACTIVE
DISTFILES += \
resources/images/moveDown.svg \
resources/images/moveDownDisabled.svg