forked from fotowall/fotowall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fotowall.pro
125 lines (108 loc) · 3.34 KB
/
fotowall.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
# Check Qt >= 4.6
contains(QT_VERSION, ^4\\.[0-5]\\..*) {
message("Cannot build Fotowall with Qt version $$QT_VERSION .")
error("Use at least Qt 4.6.")
}
contains(QT_VERSION, ^4\\.6\\..*): message("Some features are not available with Qt $$QT_VERSION . Use Qt 4.7 or later.")
# Project Options
TEMPLATE = app
TARGET = fotowall
INCLUDEPATH += .
DEPENDPATH += .
MOC_DIR = build
OBJECTS_DIR = build
RCC_DIR = build
UI_DIR = build
QT = core \
gui \
svg \
network \
xml \
printsupport
# include OpenGL code paths where available
contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2) {
message("Using OpenGL")
QT += opengl
}
# enable features for mobile user interfaces
symbian|simulator: {
contains(QT_VERSION, ^4\\.6\\..*): error("Use at least Qt 4.7 for symbian builds.")
message("Compiling for Symbian")
CONFIG += mobile-ui
CONFIG += no-wordcloud-appliance
CONFIG += no-export
CONFIG += no-likeback
CONFIG += no-webcam
CONFIG += no-translations
QT -= opengl
}
# disable the Webcam source (only stable on linux and experimental on win32)
macx: CONFIG += no-webcam
# Fotowall input files
include(fotowall.pri)
# Posterazor input files (included here for separating translations)
!contains(CONFIG, no-export): include(3rdparty/posterazor/posterazor.pri)
# deployment on Linux
unix {
target.path = /usr/bin
icon.files = fotowall.png
icon.path = /usr/share/pixmaps
dfile.files = fotowall.desktop
dfile.path = /usr/share/applications
man.files = fotowall.1
man.path = /usr/share/man/man1
INSTALLS += target \
icon \
dfile \
man
}
# deployment on Windows
win32 {
CONFIG += embed_manifest_exe
RC_FILE = fotowall.rc
}
# deployment on Mac
macx {
ICON = fotowall.icns
CONFIG += x86 ppc
QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3
}
# deployment on Symbian
symbian|simulator: {
ICON = data/icon-s60.svg
# QT += multimedia
#CONFIG += mobility
#MOBILITY = contacts messaging multimedia
TARGET.CAPABILITY = \
NetworkServices \
# ReadUserData \
# WriteUserData \
# LocalServices \
# UserEnvironment \
# ReadDeviceData \
# WriteDeviceData
TARGET.UID3 = 0xe32c87ed
TARGET.EPOCSTACKSIZE = 0x14000
TARGET.EPOCHEAPSIZE = 0x020000 0x800000
}
# static builds
contains(CONFIG, static) {
message("Static build enabled; bundling plugins in 'fotowall_plugin_import.cpp'")
QTPLUGIN.bearer = -
QTPLUGIN.imageformats = qgif qjpeg qsvg qtiff qwbmp qwebp
macx:QTPLUGIN.imageformats += qicns
win32:QTPLUGIN.imageformats += qico
unix {
QTPLUGIN.platforms = qxcb
QTPLUGIN.xcbglintegrations = qxcb-glx-integration
QTPLUGIN.egldeviceintegrations = -
}
}
# Translations (make ts; make qm)
LUPDATE = lupdate -silent -no-obsolete -no-ui-lines -locations relative
LRELEASE = lrelease -silent -compress -removeidentical
ts.commands = ($$LUPDATE fotowall.pri && $$LUPDATE 3rdparty/posterazor/posterazor.pri)
qm.commands = ($$LRELEASE fotowall.pri && $$LRELEASE 3rdparty/posterazor/posterazor.pri)
QMAKE_EXTRA_TARGETS += ts qm
!exists(translations/fotowall_it.qm): {message("Compiling translations. To update strings type 'make ts', to recompile 'make qm'") system($$qm.commands)}