forked from piggz/harbour-shutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathharbour-shutter.pro
246 lines (218 loc) · 7.67 KB
/
harbour-shutter.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
# NOTICE:
#
# Application name defined in TARGET has a corresponding QML filename.
# If name defined in TARGET is changed, the following needs to be done
# to match new name:
# - corresponding QML filename must be changed
# - desktop icon filename must be changed
# - desktop filename must be changed
# - icon definition filename in desktop file must be changed
# - translation filenames have to be changed
# The name of your application
TARGET = harbour-shutter
CONFIG += link_pkgconfig
CONFIG += sailfishapp
CONFIG += no_keywords
CONFIG += c++1z
QT += quick multimedia
PKGCONFIG += libcamera
INCLUDEPATH += /usr/local/include/libcamera
SOURCES += \
src/cameramodel.cpp \
src/cameraproxy.cpp \
src/controlmodel.cpp \
src/effectsmodel.cpp \
src/exifmodel.cpp \
src/exposuremodel.cpp \
src/format_converter.cpp \
src/formatmodel.cpp \
src/harbour-shutter.cpp \
src/image.cpp \
src/isomodel.cpp \
src/encoder_jpeg.cpp \
src/metadatamodel.cpp \
src/resolutionmodel.cpp \
src/settings.cpp \
src/viewfinder2d.cpp \
src/viewfinderitem.cpp \
src/viewfinderrenderer.cpp \
src/wbmodel.cpp \
src/focusmodel.cpp \
src/flashmodel.cpp \
src/fsoperations.cpp \
src/resourcehandler.cpp \
src/storagemodel.cpp
DISTFILES += \
README.md \
qml/components/ControlSlider.qml \
qml/components/DockModes.qml \
qml/components/DockedControlListView.qml \
qml/components/DockedListView.qml \
qml/components/platform.kirigami/SlideshowPL.qml \
qml/components/platform.qtcontrols/DockedPanelPL.qml \
qml/components/platform.silica/DockedPanelPL.qml \
qml/components/platform.silica/SlideshowPL.qml \
qml/harbour-shutter.qml \
qml/pages/SettingsX.qml \
qml/pics/icon-camera-switch.svg \
qml/pics/icon-m-camera.svg \
qml/pics/icon-m-developer-mode.svg \
qml/pics/icon-m-image.svg \
qml/pics/icon-m-pixelformat.png \
qml/pics/icon-m-sd-card.svg \
qml/pics/icon-m-tele-lense-active.png \
qml/pics/icon-m-tele-lense.svg \
qml/pics/icon-m-uwide-lense-active.png \
qml/pics/icon-m-uwide-lense.svg \
qml/pics/icon-m-video.svg \
qml/pics/icon-m-wide-lense-active.png \
qml/pics/icon-m-wide-lense.svg \
qml/components/AboutMedia.qml \
qml/pages/AboutImage.qml \
qml/pages/AboutVideo.qml \
rpm/harbour-shutter.spec \
translations/*.ts \
harbour-shutter.desktop \
qml/components/IconSwitch.qml \
qml/components/RoundButton.qml \
qml/cover/CoverPage.qml \
qml/pages/CameraUI.qml \
qml/pages/GalleryUI.qml \
qml/pages/SettingsOverlay.qml \
qml/components/platform.silica/ApplicationWindowPL.qml \
qml/components/platform.silica/BusyIndicatorPL.qml \
qml/components/platform.silica/BusyIndicatorSmallPL.qml \
qml/components/platform.silica/ButtonPL.qml \
qml/components/platform.silica/ClipboardPL.qml \
qml/components/platform.silica/ComboBoxPL.qml \
qml/components/platform.silica/ContextMenuItemPL.qml \
qml/components/platform.silica/ContextMenuPL.qml \
qml/components/platform.silica/Cover.qml \
qml/components/platform.silica/DatePickerDialogPL.qml \
qml/components/platform.silica/DialogAutoPL.qml \
qml/components/platform.silica/DialogListPL.qml \
qml/components/platform.silica/DialogPL.qml \
qml/components/platform.silica/DockedPanelPL.qml \
qml/components/platform.silica/ExpandingSectionGroupPL.qml \
qml/components/platform.silica/ExpandingSectionPL.qml \
qml/components/platform.silica/FileSelectorPL.qml \
qml/components/platform.silica/FormLayoutPL.qml \
qml/components/platform.silica/IconButtonPL.qml \
qml/components/platform.silica/IconPL.qml \
qml/components/platform.silica/LabelPL.qml \
qml/components/platform.silica/ListItemPL.qml \
qml/components/platform.silica/MenuDrawerItemPL.qml \
qml/components/platform.silica/MenuDrawerPL.qml \
qml/components/platform.silica/MenuDrawerSubmenuItemPL.qml \
qml/components/platform.silica/MenuDrawerSubmenuPL.qml \
qml/components/platform.silica/PageEmptyPL.qml \
qml/components/platform.silica/PageListPL.qml \
qml/components/platform.silica/PageMenuItemPL.qml \
qml/components/platform.silica/PageMenuPL.qml \
qml/components/platform.silica/PagePL.qml \
qml/components/platform.silica/RemorsePopupPL.qml \
qml/components/platform.silica/SearchFieldPL.qml \
qml/components/platform.silica/SectionHeaderPL.qml \
qml/components/platform.silica/SliderPL.qml \
qml/components/platform.silica/StackPL.qml \
qml/components/platform.silica/StylerPL.qml \
qml/components/platform.silica/TextAreaPL.qml \
qml/components/platform.silica/TextFieldPL.qml \
qml/components/platform.silica/TextSwitchPL.qml \
qml/components/platform.silica/TimePickerDialogPL.qml \
qml/components/platform.silica/ToolItemPL.qml \
qml/components/platform.silica/ValueButtonPL.qml
SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172
# to disable building translations every time, comment out the
# following CONFIG line
CONFIG += sailfishapp_i18n
# German translation is enabled as an example. If you aren't
# planning to localize your app, remember to comment out the
# following TRANSLATIONS line. And also do not forget to
# modify the localized app name in the the .desktop file.
TRANSLATIONS +=
HEADERS += \
src/cameramodel.h \
src/cameraproxy.h \
src/controlmodel.h \
src/effectsmodel.h \
src/exifmodel.h \
src/exposuremodel.h \
src/format_converter.h \
src/formatmodel.h \
src/image.h \
src/isomodel.h \
src/encoder_jpeg.h \
src/metadatamodel.h \
src/resolutionmodel.h \
src/settings.h \
src/viewfinder.h \
src/viewfinder2d.h \
src/viewfinderitem.h \
src/viewfinderrenderer.h \
src/wbmodel.h \
src/focusmodel.h \
src/flashmodel.h \
src/fsoperations.h \
src/resourcehandler.h \
src/storagemodel.h
LIBS += -ldl
RESOURCES += \
shutter.qrc
equals(FLAVOR, "silica") {
CONFIG += flavor_silica
SOURCES += src/deviceinfo.cpp
} else:equals(FLAVOR, "kirigami") {
CONFIG += flavor_kirigami
} else:equals(FLAVOR, "qtcontrols") {
CONFIG += flavor_qtcontrols
} else:equals(FLAVOR, "uuitk") {
CONFIG += flavor_uuitk
} else {
error("Please specify platform using FLAVOR=platform as qmake option. Supported platforms: kirigami, silica, qtcontrols, uuitk.")
}
equals(DISABLE_SYSTEMD, "yes") {
DEFINES += DISABLE_SYSTEMD
}
flavor_silica {
message(SailfishOS build)
CONFIG += sailfishapp sailfishapp_no_deploy_qml sailfishapp_i18n
DEFINES += MER_EDITION_SAILFISH
}
# PREFIX
isEmpty(PREFIX) {
flavor_silica {
PREFIX = /usr
} else:flavor_uuitk {
PREFIX = /
} else {
PREFIX = /usr/local
}
}
# PREFIX_RUNNING
isEmpty(PREFIX_RUNNING) {
flavor_uuitk {
PREFIX_RUNNING = .
} else {
PREFIX_RUNNING = $$PREFIX
}
}
DATADIR = $$PREFIX/share/$${TARGET}
target.path = $$PREFIX/bin
qml.files = qml/*.qml \
qml/pages \
qml/cover \
qml/components
qml.path = $$DATADIR/qml
js.files = qml/tools/*.js
js.path = $$DATADIR/qml/tools
icons.files = qml/pics/*.png qml/pics/*.svg
icons.path = $$DATADIR/qml/pics
qmlplatform.extra = mkdir -p ${INSTALL_ROOT}$$DATADIR/qml/components/platform && cp -L -v $$PWD/qml/components/platform.$$FLAVOR/*.qml ${INSTALL_ROOT}$$DATADIR/qml/components/platform
qmlplatform.path = $$DATADIR/qml/platform
desktopfile.files = harbour-shutter.desktop
desktopfile.path = $$PREFIX/share/applications
appicon.files = ../harbour-shutter.svg
appicon.path = $$PREFIX/share/icons/hicolor/scalable/apps
INSTALLS += qmlplatform qml js icons target desktopfile appicon
#End install config