-
Notifications
You must be signed in to change notification settings - Fork 132
/
stremio.pro
97 lines (77 loc) · 2.25 KB
/
stremio.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
TEMPLATE = app
VERSION=4.4.168
DEFINES += STREMIO_SHELL_VERSION=\\\"$$VERSION\\\"
ICON = images/stremio.icns
QMAKE_TARGET_BUNDLE_PREFIX = com.smartcodeltd
QMAKE_INFO_PLIST = Info.plist
QT += qml quick network
CONFIG += c++11
include(deps/singleapplication/singleapplication.pri)
DEFINES += QAPPLICATION_CLASS=QApplication
mac {
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
LIBS += -framework CoreFoundation
QMAKE_RPATHDIR += @executable_path/../Frameworks
QMAKE_RPATHDIR += @executable_path/lib
#LIBS += -L $$PWD/deps/libmpv/mac/lib -lmpv
LIBS += -L${MPV_BIN_PATH}/lib -lmpv -lc
}
# pkg-config way of linking with mpv works perfectly on the mac distribution process, because macdeployqt will also ship all libraries
# however, we want to hardcode specific *.dylibs, because (1) includes are hardcoded, (2) installing mpv with brew is slow
unix:!mac {
QMAKE_RPATHDIR += '$ORIGIN'
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig
LIBS += -L$$PWD/../mpv-build/mpv/build -lmpv
}
win32 {
RC_ICONS = $$PWD/images/stremio.ico
LIBS += $$PWD/deps/libmpv/win32/mpv.lib
}
INCLUDEPATH += deps/libmpv/include
# OpenSSL
unix:!mac {
LIBS += -lcrypto
}
mac {
LIBS += -L${OPENSSL_BIN_PATH}/lib -lcrypto
INCLUDEPATH += ${OPENSSL_BIN_PATH}/include
}
win32{
# First one is the convention for builds at slproweb.com, the other at www.npcglib.org (used by AppVeyor)
LIBS += C:/OpenSSL-Win32/lib/libcrypto.lib
INCLUDEPATH += C:/OpenSSL-Win32/include
}
# Razer Chroma SDK
win32 {
include(deps/chroma/chroma.pri)
}
QT += widgets
# TODO: if def WEBENGINE
QT += webengine webchannel dbus
WEBENGINE_CONFIG+=use_proprietary_codecs
SOURCES += main.cpp \
mpv.cpp \
stremioprocess.cpp \
screensaver.cpp \
autoupdater.cpp \
systemtray.cpp \
razerchroma.cpp \
qclipboardproxy.cpp \
verifysig.c
RESOURCES += qml.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Default rules for deployment.
include(deployment.pri)
HEADERS += \
mpv.h \
stremioprocess.h \
screensaver.h \
mainapplication.h \
autoupdater.h \
systemtray.h \
razerchroma.h \
qclipboardproxy.h \
verifysig.h \
publickey.h