-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMotionBox.pro
303 lines (253 loc) · 9.82 KB
/
MotionBox.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
SK = $$_PRO_FILE_PWD_/../Sky
SK_CORE = $$SK/src/SkCore/src
SK_GUI = $$SK/src/SkGui/src
SK_BARCODE = $$SK/src/SkBarcode/src
SK_BACKEND = $$SK/src/SkBackend/src
SK_MEDIA = $$SK/src/SkMedia/src
SK_MULTIMEDIA = $$SK/src/SkMultimedia/src
SK_TORRENT = $$SK/src/SkTorrent/src
TARGET = MotionBox
DESTDIR = $$_PRO_FILE_PWD_/bin
contains(QT_MAJOR_VERSION, 4) {
QT += opengl declarative network script xml xmlpatterns svg
} else:contains(QT_MAJOR_VERSION, 5) {
QT += opengl quick network xml xmlpatterns svg multimedia
win32:QT += winextras
unix:!macx:!ios:!android:QT += x11extras
android:QT += androidextras
} else {
QT += opengl quick network xml svg multimedia core5compat
#----------------------------------------------------------------------------------------------
# NOTE Qt6.3: We need the widgets for QApplication and QFileDialog(s).
win32:QT += widgets
macx:QT += widgets
unix:!android:QT += widgets
}
greaterThan(QT_MAJOR_VERSION, 4) {
unix:!macx:!ios:!android:QT += dbus
}
# C++17
contains(QT_MAJOR_VERSION, 4) {
QMAKE_CXXFLAGS += -std=c++1z
} else {
CONFIG += c++1z
}
DEFINES += QUAZIP_BUILD \
SK_CORE_LIBRARY SK_GUI_LIBRARY SK_BARCODE_LIBRARY SK_BACKEND_LIBRARY SK_MEDIA_LIBRARY \
SK_MULTIMEDIA_LIBRARY SK_TORRENT_LIBRARY \
SK_CHARSET SK_BACKEND_LOCAL #SK_BACKEND_LOG
win32-msvc* {
# libtorrent: This fixes the winsock2 and std::min errors.
DEFINES += WIN32_LEAN_AND_MEAN NOMINMAX
# Boost: This prevents an issue with linking
DEFINES += BOOST_ALL_NO_LIB
}
!win32-msvc*:!ios:!android:DEFINES += CAN_COMPILE_SSE2
#DEFINES += SK_SOFTWARE
contains(QT_MAJOR_VERSION, 4) {
CONFIG(release, debug|release) {
win32:DEFINES += SK_WIN_NATIVE
}
} else {
win32:DEFINES += SK_WIN_NATIVE
}
deploy|android {
DEFINES += SK_DEPLOY
RESOURCES = dist/qrc/MotionBox.qrc
}
!win32-msvc*:!ios:!android:QMAKE_CXXFLAGS += -msse
unix:QMAKE_LFLAGS += "-Wl,-rpath,'\$$ORIGIN'"
include($$SK/src/Sk.pri)
include(src/global/global.pri)
include(src/controllers/controllers.pri)
include(src/kernel/kernel.pri)
include(src/io/io.pri)
include(src/thread/thread.pri)
include(src/network/network.pri)
include(src/image/image.pri)
include(src/graphicsview/graphicsview.pri)
include(src/declarative/declarative.pri)
include(src/models/models.pri)
include(src/media/media.pri)
include(src/vlc/vlc.pri)
include(src/torrent/torrent.pri)
include(src/3rdparty/qtsingleapplication/qtsingleapplication.pri)
include(src/3rdparty/zlib/zlib.pri)
include(src/3rdparty/quazip/quazip.pri)
include(src/3rdparty/libcharsetdetect/libcharsetdetect.pri)
include(src/3rdparty/zxing-cpp/zxing-cpp.pri)
INCLUDEPATH += $$SK/include/SkCore \
$$SK/include/SkGui \
$$SK/include/SkBarcode \
$$SK/include/SkBackend \
$$SK/include/SkMedia \
$$SK/include/SkMultimedia \
$$SK/include/SkTorrent \
$$SK/include \
src/controllers \
src/io
unix:contains(QT_MAJOR_VERSION, 4) {
INCLUDEPATH += $$SK/include/$$QTX \
$$SK/include/$$QTX/QtCore \
$$SK/include/$$QTX/QtGui \
$$SK/include/$$QTX/QtDeclarative
}
greaterThan(QT_MAJOR_VERSION, 4) {
INCLUDEPATH += $$SK/include/$$QTX \
$$SK/include/$$QTX/QtCore \
$$SK/include/$$QTX/QtGui \
$$SK/include/$$QTX/QtQml \
$$SK/include/$$QTX/QtQuick
}
unix:!macx:!ios:!android:greaterThan(QT_MAJOR_VERSION, 4) {
INCLUDEPATH += $$SK/include/$$QTX/QtDBus
}
#win32:contains(QT_MAJOR_VERSION, 5) {
# LIBS += -lopengl32
#}
win32:LIBS += -L$$SK/lib -llibvlc \
-lmswsock -lws2_32
win32:LIBS += -L$$SK/lib -ltorrent \
-L$$SK/lib -lboost_system
# Boost dependencies
win32-msvc*:LIBS += Advapi32.lib Iphlpapi.lib
# Windows dependency for ShellExecuteA and SystemParametersInfo
win32-msvc*:LIBS += shell32.lib User32.lib
unix:!ios:!android:LIBS += -L$$SK/lib -lvlc \
-L$$SK/lib -ltorrent-rasterbar \
-L$$SK/lib -lboost_system
android:LIBS += -L$$SK/lib/$$ABI -lvlc \
-L$$SK/lib/$$ABI -ltorrent-rasterbar \
-L$$SK/lib/$$ABI -ltry_signal
unix:!macx:!ios:!android:contains(QT_MAJOR_VERSION, 4) {
LIBS += -lX11
}
macx {
PATH=$${DESTDIR}/$${TARGET}.app/Contents/MacOS
QMAKE_POST_LINK = install_name_tool -change @rpath/libvlccore.dylib \
@loader_path/libvlccore.dylib $${DESTDIR}/libvlc.dylib;
QMAKE_POST_LINK += install_name_tool -change @rpath/libvlc.dylib \
@loader_path/libvlc.dylib $$PATH/$${TARGET};
QMAKE_POST_LINK += install_name_tool -change libtorrent-rasterbar.dylib.2.0.10 \
@loader_path/libtorrent-rasterbar.dylib $$PATH/$${TARGET};
QMAKE_POST_LINK += install_name_tool -change libboost_system.dylib \
@loader_path/libboost_system.dylib $$PATH/$${TARGET};
QMAKE_POST_LINK += $${QMAKE_COPY} -r $${DESTDIR}/plugins $$PATH;
QMAKE_POST_LINK += $${QMAKE_COPY} $${DESTDIR}/libvlc.dylib $$PATH;
QMAKE_POST_LINK += $${QMAKE_COPY} $${DESTDIR}/libvlccore.dylib $$PATH;
}
macx:ICON = dist/icon.icns
RC_FILE = dist/MotionBox.rc
OTHER_FILES += 3rdparty.sh \
configure.sh \
build.sh \
deploy.sh \
environment.sh \
README.md \
LICENSE.md \
AUTHORS.md \
.azure-pipelines.yml \
.appveyor.yml \
content/text/credits.txt \
content/generate.sh \
content/icons.sh \
content/Main.qml \
content/StyleApplication.qml \
content/Splash.qml \
content/Gui.qml \
content/AreaContextualApplication.qml \
content/AreaDrag.qml \
content/ItemNew.qml \
content/TextLogo.qml \
content/BasePanelSettings.qml \
content/PanelSettingsAction.qml \
content/PanelSettingsSplit.qml \
content/PanelSearch.qml \
content/PanelLibrary.qml \
content/PanelFolder.qml \
content/PanelTracks.qml \
content/PanelPlayer.qml \
content/PanelBrowse.qml \
content/PanelRelated.qml \
#content/PanelCover.qml \
content/PanelTag.qml \
content/PanelSettings.qml \
content/PanelSubtitles.qml \
content/PanelOutput.qml \
content/PanelEdit.qml \
content/PanelAdd.qml \
content/PanelPreview.qml \
content/PanelAssociate.qml \
content/PanelCodeInput.qml \
content/BarWindowApplication.qml \
content/BarTop.qml \
content/BarControls.qml \
content/BarSettings.qml \
content/ButtonPianoTitle.qml \
content/ButtonLogo.qml \
content/ButtonOutput.qml \
content/ButtonWideSource.qml \
content/ButtonSettings.qml \
content/ButtonSettingsAction.qml \
content/ButtonSettingsExtra.qml \
content/ButtonCheckSettings.qml \
content/ButtonsBrowse.qml \
content/LineEditSearch.qml \
content/ListFolder.qml \
content/ListPlaylist.qml \
content/ScrollFolder.qml \
content/ScrollFolderCreate.qml \
content/ScrollPlaylist.qml \
content/ScrollPlaylistCreate.qml \
#content/ComponentDiscover.qml \
content/ComponentLibraryItem.qml \
content/ComponentTrack.qml \
content/ComponentFolder.qml \
content/PageCamera.qml \
content/PageTag.qml \
content/PageGrid.qml \
content/PageApplication.qml \
content/BasePageSettings.qml \
content/PageSettingsProxy.qml \
content/PageSettingsTorrent.qml \
content/PageVideo.qml \
content/PageAdvanced.qml \
content/PageConsole.qml \
content/PageAbout.qml \
content/PageAboutMain.qml \
content/PageAboutText.qml \
content/PageAboutCredits.qml \
content/PageSubtitles.qml \
content/PageSubtitlesSearch.qml \
content/PageSubtitlesView.qml \
content/PageOutput.qml \
content/PageOutputSettings.qml \
content/PageOutputAdvanced.qml \
content/PageAmbient.qml \
content/ContextualMode.qml \
content/ContextualLinks.qml \
dist/MotionBox.rc \
dist/script/start.sh \
dist/extension/chromium/manifest.json \
dist/extension/chromium/background.js \
dist/doc/readme.md \
dist/doc/shortcuts.md \
dist/doc/about.md \
dist/doc/license.md \
dist/doc/fr/readme.md \
dist/doc/fr/shortcuts.md \
dist/doc/fr/about.md \
dist/changes/1.0.1.md \
dist/changes/1.1.0.md \
dist/changes/1.1.1.md \
dist/changes/1.1.2.md \
dist/changes/1.2.0.md \
dist/changes/1.3.0.md \
dist/changes/1.4.0.md \
dist/changes/1.5.0.md \
dist/changes/1.6.0.md \
dist/changes/1.7.0.md \
dist/changes/1.8.0.md \
dist/changes/2.0.0.md \
dist/changes/3.0.0.md \
dist/changes/3.1.0.md \