2018-09-22 23:20:00 +00:00
|
|
|
QT += core quick network quickcontrols2 svg
|
2018-07-04 21:16:25 +00:00
|
|
|
CONFIG += c++11
|
2018-05-06 00:25:55 +00:00
|
|
|
|
2018-07-22 10:16:33 +00:00
|
|
|
unix:!macx {
|
|
|
|
TARGET = moonlight
|
|
|
|
} else {
|
|
|
|
# On macOS, this is the name displayed in the global menu bar
|
|
|
|
TARGET = Moonlight
|
|
|
|
}
|
|
|
|
|
2019-04-21 18:08:33 +00:00
|
|
|
include(../globaldefs.pri)
|
2018-09-04 07:18:02 +00:00
|
|
|
|
2018-09-22 20:44:58 +00:00
|
|
|
# Precompile QML files to avoid writing qmlcache on portable versions.
|
|
|
|
# Since this binds the app against the Qt runtime version, we will only
|
|
|
|
# do this for Windows and Mac, since they ship with the Qt runtime.
|
|
|
|
win32|macx {
|
2018-11-19 06:04:11 +00:00
|
|
|
CONFIG(release, debug|release) {
|
|
|
|
CONFIG += qtquickcompiler
|
|
|
|
}
|
2018-09-22 20:44:58 +00:00
|
|
|
}
|
|
|
|
|
2018-05-06 00:25:55 +00:00
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
# The following define makes your compiler emit warnings if you use
|
|
|
|
# any feature of Qt which has been marked as deprecated (the exact warnings
|
|
|
|
# depend on your compiler). Please consult the documentation of the
|
|
|
|
# deprecated API in order to know how to port your code away from it.
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
|
|
# You can also make your code fail to compile if you use deprecated APIs.
|
|
|
|
# In order to do so, uncomment the following line.
|
|
|
|
# You can also select to disable deprecated APIs only up to a certain version of Qt.
|
|
|
|
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
|
|
|
|
2018-06-24 03:08:17 +00:00
|
|
|
win32 {
|
2020-12-12 19:59:47 +00:00
|
|
|
INCLUDEPATH += $$PWD/../libs/windows/include
|
2018-06-24 03:08:17 +00:00
|
|
|
|
|
|
|
contains(QT_ARCH, i386) {
|
|
|
|
LIBS += -L$$PWD/../libs/windows/lib/x86
|
|
|
|
}
|
|
|
|
contains(QT_ARCH, x86_64) {
|
|
|
|
LIBS += -L$$PWD/../libs/windows/lib/x64
|
2020-12-12 19:59:47 +00:00
|
|
|
}
|
|
|
|
contains(QT_ARCH, arm64) {
|
|
|
|
LIBS += -L$$PWD/../libs/windows/lib/arm64
|
2018-06-24 03:08:17 +00:00
|
|
|
}
|
|
|
|
|
2020-09-09 01:27:01 +00:00
|
|
|
LIBS += ws2_32.lib winmm.lib dxva2.lib ole32.lib gdi32.lib user32.lib d3d9.lib dwmapi.lib dbghelp.lib qwave.lib
|
2018-06-24 03:08:17 +00:00
|
|
|
}
|
2018-05-06 00:25:55 +00:00
|
|
|
macx {
|
2019-02-13 05:32:11 +00:00
|
|
|
INCLUDEPATH += $$PWD/../libs/mac/include
|
|
|
|
INCLUDEPATH += $$PWD/../libs/mac/Frameworks/SDL2.framework/Versions/A/Headers
|
|
|
|
INCLUDEPATH += $$PWD/../libs/mac/Frameworks/SDL2_ttf.framework/Versions/A/Headers
|
2018-07-29 10:38:59 +00:00
|
|
|
LIBS += -L$$PWD/../libs/mac/lib -F$$PWD/../libs/mac/Frameworks
|
2018-05-06 00:25:55 +00:00
|
|
|
}
|
2018-07-08 05:41:32 +00:00
|
|
|
|
2018-05-06 00:25:55 +00:00
|
|
|
unix:!macx {
|
2019-03-23 06:08:10 +00:00
|
|
|
CONFIG += link_pkgconfig
|
2019-02-13 05:38:51 +00:00
|
|
|
PKGCONFIG += openssl sdl2 SDL2_ttf opus
|
2018-07-22 00:00:09 +00:00
|
|
|
|
|
|
|
packagesExist(libavcodec) {
|
2018-07-22 06:57:39 +00:00
|
|
|
PKGCONFIG += libavcodec libavutil
|
2018-07-22 00:00:09 +00:00
|
|
|
CONFIG += ffmpeg
|
|
|
|
|
|
|
|
packagesExist(libva) {
|
2018-08-12 02:43:36 +00:00
|
|
|
packagesExist(libva-x11) {
|
|
|
|
CONFIG += libva-x11
|
|
|
|
}
|
|
|
|
packagesExist(libva-wayland) {
|
|
|
|
CONFIG += libva-wayland
|
|
|
|
}
|
2019-07-07 22:31:15 +00:00
|
|
|
packagesExist(libva-drm) {
|
|
|
|
CONFIG += libva-drm
|
|
|
|
}
|
2018-07-22 00:00:09 +00:00
|
|
|
CONFIG += libva
|
|
|
|
}
|
2018-08-03 09:11:44 +00:00
|
|
|
|
|
|
|
packagesExist(vdpau) {
|
|
|
|
CONFIG += libvdpau
|
|
|
|
}
|
2019-04-16 08:20:21 +00:00
|
|
|
|
|
|
|
packagesExist(mmal) {
|
|
|
|
PKGCONFIG += mmal
|
|
|
|
CONFIG += mmal
|
|
|
|
}
|
2019-04-21 05:22:37 +00:00
|
|
|
|
|
|
|
packagesExist(libdrm) {
|
|
|
|
PKGCONFIG += libdrm
|
|
|
|
CONFIG += libdrm
|
|
|
|
}
|
2018-07-22 00:00:09 +00:00
|
|
|
}
|
2020-02-09 02:47:59 +00:00
|
|
|
|
|
|
|
packagesExist(wayland-client) {
|
|
|
|
DEFINES += HAS_WAYLAND
|
|
|
|
PKGCONFIG += wayland-client
|
|
|
|
}
|
|
|
|
|
|
|
|
packagesExist(x11) {
|
|
|
|
DEFINES += HAS_X11
|
|
|
|
PKGCONFIG += x11
|
|
|
|
}
|
2018-05-06 00:25:55 +00:00
|
|
|
}
|
2018-06-24 03:08:17 +00:00
|
|
|
win32 {
|
2020-12-12 19:59:47 +00:00
|
|
|
LIBS += -llibssl -llibcrypto -lSDL2 -lSDL2_ttf -lavcodec -lavutil -lopus
|
2019-03-13 08:02:04 +00:00
|
|
|
CONFIG += ffmpeg
|
|
|
|
}
|
|
|
|
win32:!winrt {
|
2019-06-30 00:55:21 +00:00
|
|
|
CONFIG += soundio discord-rpc
|
2018-07-08 05:41:32 +00:00
|
|
|
}
|
|
|
|
macx {
|
2019-02-13 05:32:11 +00:00
|
|
|
LIBS += -lssl -lcrypto -lavcodec.58 -lavutil.56 -lopus -framework SDL2 -framework SDL2_ttf
|
2019-11-06 02:36:43 +00:00
|
|
|
LIBS += -lobjc -framework VideoToolbox -framework AVFoundation -framework CoreVideo -framework CoreGraphics -framework CoreMedia -framework AppKit -framework Metal
|
2018-10-06 02:22:57 +00:00
|
|
|
|
|
|
|
# For libsoundio
|
|
|
|
LIBS += -framework CoreAudio -framework AudioUnit
|
|
|
|
|
2019-06-30 00:55:21 +00:00
|
|
|
CONFIG += ffmpeg soundio discord-rpc
|
2018-06-24 03:08:17 +00:00
|
|
|
}
|
|
|
|
|
2018-05-06 00:25:55 +00:00
|
|
|
SOURCES += \
|
2020-05-08 02:54:36 +00:00
|
|
|
backend/nvapp.cpp \
|
2018-05-06 00:25:55 +00:00
|
|
|
main.cpp \
|
2018-12-06 02:45:28 +00:00
|
|
|
backend/computerseeker.cpp \
|
2018-06-28 05:30:33 +00:00
|
|
|
backend/identitymanager.cpp \
|
2018-09-29 09:19:44 +00:00
|
|
|
backend/nvcomputer.cpp \
|
2018-06-28 05:30:33 +00:00
|
|
|
backend/nvhttp.cpp \
|
|
|
|
backend/nvpairingmanager.cpp \
|
|
|
|
backend/computermanager.cpp \
|
2018-06-28 06:15:13 +00:00
|
|
|
backend/boxartmanager.cpp \
|
2019-06-30 00:40:30 +00:00
|
|
|
backend/richpresencemanager.cpp \
|
2018-09-29 21:06:55 +00:00
|
|
|
cli/commandlineparser.cpp \
|
2018-12-06 02:45:28 +00:00
|
|
|
cli/quitstream.cpp \
|
2018-09-29 21:06:55 +00:00
|
|
|
cli/startstream.cpp \
|
2020-11-21 20:45:34 +00:00
|
|
|
settings/mappingfetcher.cpp \
|
2018-06-28 08:44:43 +00:00
|
|
|
settings/streamingpreferences.cpp \
|
2020-05-01 03:22:43 +00:00
|
|
|
streaming/input/abstouch.cpp \
|
2021-02-07 19:46:38 +00:00
|
|
|
streaming/input/clipboard.cpp \
|
2020-05-01 03:22:43 +00:00
|
|
|
streaming/input/gamepad.cpp \
|
2020-05-01 03:09:36 +00:00
|
|
|
streaming/input/input.cpp \
|
2020-05-01 03:22:43 +00:00
|
|
|
streaming/input/keyboard.cpp \
|
|
|
|
streaming/input/mouse.cpp \
|
2020-05-01 03:55:15 +00:00
|
|
|
streaming/input/reltouch.cpp \
|
2018-06-28 08:44:43 +00:00
|
|
|
streaming/session.cpp \
|
2018-09-13 13:23:06 +00:00
|
|
|
streaming/audio/audio.cpp \
|
2018-10-06 02:22:57 +00:00
|
|
|
streaming/audio/renderers/sdlaud.cpp \
|
2018-07-06 03:07:05 +00:00
|
|
|
gui/computermodel.cpp \
|
2018-08-05 05:22:15 +00:00
|
|
|
gui/appmodel.cpp \
|
2018-08-10 05:51:27 +00:00
|
|
|
streaming/streamutils.cpp \
|
2018-08-17 04:04:47 +00:00
|
|
|
backend/autoupdatechecker.cpp \
|
2018-09-30 03:33:45 +00:00
|
|
|
path.cpp \
|
2018-09-30 20:41:32 +00:00
|
|
|
settings/mappingmanager.cpp \
|
2019-01-20 07:05:56 +00:00
|
|
|
gui/sdlgamepadkeynavigation.cpp \
|
2019-03-23 19:05:08 +00:00
|
|
|
streaming/video/overlaymanager.cpp \
|
2020-02-09 02:47:59 +00:00
|
|
|
backend/systemproperties.cpp \
|
|
|
|
wm.cpp
|
2018-05-06 00:25:55 +00:00
|
|
|
|
|
|
|
HEADERS += \
|
2020-05-08 02:54:36 +00:00
|
|
|
backend/nvapp.h \
|
2020-11-21 20:45:34 +00:00
|
|
|
settings/mappingfetcher.h \
|
2018-05-06 00:25:55 +00:00
|
|
|
utils.h \
|
2018-12-06 02:45:28 +00:00
|
|
|
backend/computerseeker.h \
|
2018-06-28 05:30:33 +00:00
|
|
|
backend/identitymanager.h \
|
2018-09-29 09:19:44 +00:00
|
|
|
backend/nvcomputer.h \
|
2018-06-28 05:30:33 +00:00
|
|
|
backend/nvhttp.h \
|
|
|
|
backend/nvpairingmanager.h \
|
|
|
|
backend/computermanager.h \
|
2018-06-28 06:15:13 +00:00
|
|
|
backend/boxartmanager.h \
|
2019-06-30 00:40:30 +00:00
|
|
|
backend/richpresencemanager.h \
|
2018-09-29 21:06:55 +00:00
|
|
|
cli/commandlineparser.h \
|
2018-12-06 02:45:28 +00:00
|
|
|
cli/quitstream.h \
|
2018-09-29 21:06:55 +00:00
|
|
|
cli/startstream.h \
|
2018-06-28 08:44:43 +00:00
|
|
|
settings/streamingpreferences.h \
|
2020-05-01 03:09:36 +00:00
|
|
|
streaming/input/input.h \
|
2018-09-29 23:18:46 +00:00
|
|
|
streaming/session.h \
|
2018-09-13 13:23:06 +00:00
|
|
|
streaming/audio/renderers/renderer.h \
|
2018-10-06 02:22:57 +00:00
|
|
|
streaming/audio/renderers/sdl.h \
|
2018-07-06 03:07:05 +00:00
|
|
|
gui/computermodel.h \
|
2018-07-13 09:28:10 +00:00
|
|
|
gui/appmodel.h \
|
2018-08-05 05:22:15 +00:00
|
|
|
streaming/video/decoder.h \
|
2018-08-10 05:51:27 +00:00
|
|
|
streaming/streamutils.h \
|
2018-08-17 04:04:47 +00:00
|
|
|
backend/autoupdatechecker.h \
|
2018-09-30 03:33:45 +00:00
|
|
|
path.h \
|
2018-09-30 20:41:32 +00:00
|
|
|
settings/mappingmanager.h \
|
2019-01-20 07:05:56 +00:00
|
|
|
gui/sdlgamepadkeynavigation.h \
|
2019-03-23 19:05:08 +00:00
|
|
|
streaming/video/overlaymanager.h \
|
|
|
|
backend/systemproperties.h
|
2018-07-22 00:00:09 +00:00
|
|
|
|
|
|
|
# Platform-specific renderers and decoders
|
|
|
|
ffmpeg {
|
|
|
|
message(FFmpeg decoder selected)
|
|
|
|
|
|
|
|
DEFINES += HAVE_FFMPEG
|
|
|
|
SOURCES += \
|
|
|
|
streaming/video/ffmpeg.cpp \
|
2018-09-13 13:23:06 +00:00
|
|
|
streaming/video/ffmpeg-renderers/sdlvid.cpp \
|
2019-06-27 04:02:33 +00:00
|
|
|
streaming/video/ffmpeg-renderers/cuda.cpp \
|
2018-08-21 00:24:47 +00:00
|
|
|
streaming/video/ffmpeg-renderers/pacer/pacer.cpp \
|
|
|
|
streaming/video/ffmpeg-renderers/pacer/nullthreadedvsyncsource.cpp
|
|
|
|
|
2018-07-22 00:00:09 +00:00
|
|
|
HEADERS += \
|
|
|
|
streaming/video/ffmpeg.h \
|
2018-08-15 02:13:17 +00:00
|
|
|
streaming/video/ffmpeg-renderers/renderer.h \
|
2019-02-13 03:58:36 +00:00
|
|
|
streaming/video/ffmpeg-renderers/sdlvid.h \
|
2019-06-27 04:02:33 +00:00
|
|
|
streaming/video/ffmpeg-renderers/cuda.h \
|
2018-08-21 00:24:47 +00:00
|
|
|
streaming/video/ffmpeg-renderers/pacer/pacer.h \
|
|
|
|
streaming/video/ffmpeg-renderers/pacer/nullthreadedvsyncsource.h
|
2018-07-22 00:00:09 +00:00
|
|
|
}
|
|
|
|
libva {
|
|
|
|
message(VAAPI renderer selected)
|
2018-07-13 09:28:10 +00:00
|
|
|
|
2018-08-12 02:43:36 +00:00
|
|
|
PKGCONFIG += libva
|
2018-07-22 00:00:09 +00:00
|
|
|
DEFINES += HAVE_LIBVA
|
|
|
|
SOURCES += streaming/video/ffmpeg-renderers/vaapi.cpp
|
2018-07-22 03:22:00 +00:00
|
|
|
HEADERS += streaming/video/ffmpeg-renderers/vaapi.h
|
|
|
|
}
|
2018-08-12 02:43:36 +00:00
|
|
|
libva-x11 {
|
|
|
|
message(VAAPI X11 support enabled)
|
|
|
|
|
|
|
|
PKGCONFIG += libva-x11
|
|
|
|
DEFINES += HAVE_LIBVA_X11
|
|
|
|
}
|
|
|
|
libva-wayland {
|
|
|
|
message(VAAPI Wayland support enabled)
|
|
|
|
|
|
|
|
PKGCONFIG += libva-wayland
|
|
|
|
DEFINES += HAVE_LIBVA_WAYLAND
|
|
|
|
}
|
2019-07-07 22:31:15 +00:00
|
|
|
libva-wayland {
|
|
|
|
message(VAAPI DRM support enabled)
|
|
|
|
|
|
|
|
PKGCONFIG += libva-drm
|
|
|
|
DEFINES += HAVE_LIBVA_DRM
|
|
|
|
}
|
2018-08-03 09:11:44 +00:00
|
|
|
libvdpau {
|
|
|
|
message(VDPAU renderer selected)
|
|
|
|
|
|
|
|
DEFINES += HAVE_LIBVDPAU
|
|
|
|
SOURCES += streaming/video/ffmpeg-renderers/vdpau.cpp
|
|
|
|
HEADERS += streaming/video/ffmpeg-renderers/vdpau.h
|
|
|
|
}
|
2019-04-16 08:20:21 +00:00
|
|
|
mmal {
|
|
|
|
message(MMAL renderer selected)
|
|
|
|
|
|
|
|
DEFINES += HAVE_MMAL
|
|
|
|
SOURCES += streaming/video/ffmpeg-renderers/mmal.cpp
|
|
|
|
HEADERS += streaming/video/ffmpeg-renderers/mmal.h
|
|
|
|
}
|
2019-04-21 05:22:37 +00:00
|
|
|
libdrm {
|
|
|
|
message(DRM renderer selected)
|
|
|
|
|
|
|
|
DEFINES += HAVE_DRM
|
|
|
|
SOURCES += streaming/video/ffmpeg-renderers/drm.cpp
|
|
|
|
HEADERS += streaming/video/ffmpeg-renderers/drm.h
|
2021-02-06 22:32:54 +00:00
|
|
|
|
|
|
|
linux {
|
|
|
|
message(Master hooks enabled)
|
|
|
|
SOURCES += masterhook.c
|
2021-02-06 23:07:21 +00:00
|
|
|
LIBS += -ldl
|
2021-02-06 22:32:54 +00:00
|
|
|
}
|
2019-04-21 05:22:37 +00:00
|
|
|
}
|
2020-05-15 23:46:03 +00:00
|
|
|
config_EGL {
|
2020-04-13 08:40:28 +00:00
|
|
|
message(EGL renderer selected)
|
|
|
|
|
2020-05-16 00:54:45 +00:00
|
|
|
CONFIG += egl
|
2020-04-13 08:40:28 +00:00
|
|
|
DEFINES += HAVE_EGL
|
|
|
|
SOURCES += \
|
|
|
|
streaming/video/ffmpeg-renderers/eglvid.cpp \
|
|
|
|
streaming/video/ffmpeg-renderers/egl_extensions.cpp
|
|
|
|
HEADERS += streaming/video/ffmpeg-renderers/eglvid.h
|
|
|
|
}
|
2019-03-23 05:51:08 +00:00
|
|
|
config_SL {
|
|
|
|
message(Steam Link build configuration selected)
|
2018-07-22 03:22:00 +00:00
|
|
|
|
2019-03-23 06:08:10 +00:00
|
|
|
DEFINES += STEAM_LINK HAVE_SLVIDEO HAVE_SLAUDIO
|
|
|
|
LIBS += -lSLVideo -lSLAudio
|
2018-09-23 00:12:54 +00:00
|
|
|
|
2019-03-23 05:51:08 +00:00
|
|
|
SOURCES += \
|
2019-03-23 06:08:10 +00:00
|
|
|
streaming/video/slvid.cpp \
|
|
|
|
streaming/audio/renderers/slaud.cpp
|
2019-03-23 05:51:08 +00:00
|
|
|
HEADERS += \
|
2019-03-23 06:08:10 +00:00
|
|
|
streaming/video/slvid.h \
|
|
|
|
streaming/audio/renderers/slaud.h
|
2018-07-22 00:00:09 +00:00
|
|
|
}
|
2019-03-13 08:02:04 +00:00
|
|
|
win32:!winrt {
|
2018-07-22 00:00:09 +00:00
|
|
|
message(DXVA2 renderer selected)
|
|
|
|
|
2018-08-16 06:20:56 +00:00
|
|
|
SOURCES += \
|
|
|
|
streaming/video/ffmpeg-renderers/dxva2.cpp \
|
|
|
|
streaming/video/ffmpeg-renderers/pacer/dxvsyncsource.cpp
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
streaming/video/ffmpeg-renderers/dxva2.h \
|
|
|
|
streaming/video/ffmpeg-renderers/pacer/dxvsyncsource.h
|
2018-07-13 09:28:10 +00:00
|
|
|
}
|
2018-07-15 18:53:55 +00:00
|
|
|
macx {
|
2018-07-22 00:00:09 +00:00
|
|
|
message(VideoToolbox renderer selected)
|
|
|
|
|
2018-08-16 05:02:15 +00:00
|
|
|
SOURCES += \
|
2019-05-12 01:33:12 +00:00
|
|
|
streaming/video/ffmpeg-renderers/vt.mm
|
2018-08-16 05:02:15 +00:00
|
|
|
|
|
|
|
HEADERS += \
|
2019-05-12 01:33:12 +00:00
|
|
|
streaming/video/ffmpeg-renderers/vt.h
|
2018-07-15 18:53:55 +00:00
|
|
|
}
|
2018-10-06 02:22:57 +00:00
|
|
|
soundio {
|
|
|
|
message(libsoundio audio renderer selected)
|
2018-09-23 00:12:54 +00:00
|
|
|
|
2018-10-06 02:22:57 +00:00
|
|
|
DEFINES += HAVE_SOUNDIO SOUNDIO_STATIC_LIBRARY
|
|
|
|
SOURCES += streaming/audio/renderers/soundioaudiorenderer.cpp
|
|
|
|
HEADERS += streaming/audio/renderers/soundioaudiorenderer.h
|
2018-09-23 00:12:54 +00:00
|
|
|
}
|
2019-06-30 00:55:21 +00:00
|
|
|
discord-rpc {
|
|
|
|
message(Discord integration enabled)
|
|
|
|
|
|
|
|
LIBS += -ldiscord-rpc
|
|
|
|
DEFINES += HAVE_DISCORD
|
|
|
|
}
|
2018-05-06 00:25:55 +00:00
|
|
|
|
|
|
|
RESOURCES += \
|
2018-07-04 21:16:25 +00:00
|
|
|
resources.qrc \
|
|
|
|
qml.qrc
|
|
|
|
|
2020-11-21 19:15:54 +00:00
|
|
|
TRANSLATIONS += \
|
2021-01-30 16:10:36 +00:00
|
|
|
languages/qml_zh_cn.ts \
|
2020-11-21 19:15:54 +00:00
|
|
|
languages/qml_fr.ts
|
|
|
|
|
2018-07-04 21:16:25 +00:00
|
|
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
|
|
|
QML_IMPORT_PATH =
|
|
|
|
|
|
|
|
# Additional import path used to resolve QML modules just for Qt Quick Designer
|
|
|
|
QML_DESIGNER_IMPORT_PATH =
|
2018-05-06 00:25:55 +00:00
|
|
|
|
|
|
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../moonlight-common-c/release/ -lmoonlight-common-c
|
|
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../moonlight-common-c/debug/ -lmoonlight-common-c
|
|
|
|
else:unix: LIBS += -L$$OUT_PWD/../moonlight-common-c/ -lmoonlight-common-c
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../moonlight-common-c/moonlight-common-c/src
|
|
|
|
DEPENDPATH += $$PWD/../moonlight-common-c/moonlight-common-c/src
|
|
|
|
|
2018-07-01 04:41:00 +00:00
|
|
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../qmdnsengine/release/ -lqmdnsengine
|
|
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../qmdnsengine/debug/ -lqmdnsengine
|
|
|
|
else:unix: LIBS += -L$$OUT_PWD/../qmdnsengine/ -lqmdnsengine
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../qmdnsengine/qmdnsengine/src/include $$PWD/../qmdnsengine
|
|
|
|
DEPENDPATH += $$PWD/../qmdnsengine/qmdnsengine/src/include $$PWD/../qmdnsengine
|
2018-07-04 21:16:25 +00:00
|
|
|
|
2019-03-23 06:08:10 +00:00
|
|
|
soundio {
|
2019-03-13 08:02:04 +00:00
|
|
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../soundio/release/ -lsoundio
|
|
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../soundio/debug/ -lsoundio
|
|
|
|
else:unix: LIBS += -L$$OUT_PWD/../soundio/ -lsoundio
|
2018-10-06 02:22:57 +00:00
|
|
|
|
2019-03-13 08:02:04 +00:00
|
|
|
INCLUDEPATH += $$PWD/../soundio/libsoundio
|
|
|
|
DEPENDPATH += $$PWD/../soundio/libsoundio
|
|
|
|
}
|
2018-10-06 02:22:57 +00:00
|
|
|
|
2018-10-13 00:59:53 +00:00
|
|
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../h264bitstream/release/ -lh264bitstream
|
|
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../h264bitstream/debug/ -lh264bitstream
|
|
|
|
else:unix: LIBS += -L$$OUT_PWD/../h264bitstream/ -lh264bitstream
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../h264bitstream/h264bitstream
|
|
|
|
DEPENDPATH += $$PWD/../h264bitstream/h264bitstream
|
|
|
|
|
2019-03-13 08:02:04 +00:00
|
|
|
!winrt {
|
2020-12-12 19:59:47 +00:00
|
|
|
contains(QT_ARCH, i386)|contains(QT_ARCH, x86_64) {
|
|
|
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../AntiHooking/release/ -lAntiHooking
|
|
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../AntiHooking/debug/ -lAntiHooking
|
2018-10-14 02:35:21 +00:00
|
|
|
|
2020-12-12 19:59:47 +00:00
|
|
|
INCLUDEPATH += $$PWD/../AntiHooking
|
|
|
|
DEPENDPATH += $$PWD/../AntiHooking
|
|
|
|
}
|
2019-03-13 08:02:04 +00:00
|
|
|
}
|
2018-10-14 02:35:21 +00:00
|
|
|
|
2018-07-22 06:57:39 +00:00
|
|
|
unix:!macx: {
|
|
|
|
isEmpty(PREFIX) {
|
|
|
|
PREFIX = /usr/local
|
|
|
|
}
|
|
|
|
isEmpty(BINDIR) {
|
|
|
|
BINDIR = bin
|
|
|
|
}
|
2018-09-13 18:17:51 +00:00
|
|
|
isEmpty(DATADIR) {
|
|
|
|
DATADIR = share
|
|
|
|
}
|
2018-07-22 06:57:39 +00:00
|
|
|
|
|
|
|
target.path = $$PREFIX/$$BINDIR/
|
|
|
|
|
|
|
|
desktop.files = deploy/linux/com.moonlight_stream.Moonlight.desktop
|
2018-09-13 18:17:51 +00:00
|
|
|
desktop.path = $$PREFIX/$$DATADIR/applications/
|
2018-07-22 06:57:39 +00:00
|
|
|
|
|
|
|
icons.files = res/moonlight.svg
|
2018-09-13 18:17:51 +00:00
|
|
|
icons.path = $$PREFIX/$$DATADIR/icons/hicolor/scalable/apps/
|
|
|
|
|
|
|
|
appstream.files = deploy/linux/com.moonlight_stream.Moonlight.appdata.xml
|
|
|
|
appstream.path = $$PREFIX/$$DATADIR/metainfo/
|
2018-07-22 06:57:39 +00:00
|
|
|
|
2019-03-23 19:20:01 +00:00
|
|
|
INSTALLS += target desktop icons appstream
|
2018-07-22 06:57:39 +00:00
|
|
|
}
|
2018-07-25 09:53:51 +00:00
|
|
|
win32 {
|
|
|
|
RC_ICONS = moonlight.ico
|
2018-09-05 22:52:50 +00:00
|
|
|
QMAKE_TARGET_COMPANY = Moonlight Game Streaming Project
|
|
|
|
QMAKE_TARGET_DESCRIPTION = Moonlight Game Streaming Client
|
|
|
|
QMAKE_TARGET_PRODUCT = Moonlight
|
|
|
|
|
2018-08-21 08:07:30 +00:00
|
|
|
CONFIG -= embed_manifest_exe
|
|
|
|
QMAKE_LFLAGS += /MANIFEST:embed /MANIFESTINPUT:$${PWD}/Moonlight.exe.manifest
|
2018-07-25 09:53:51 +00:00
|
|
|
}
|
2018-07-08 18:38:01 +00:00
|
|
|
macx {
|
2019-01-06 02:53:17 +00:00
|
|
|
# Create Info.plist in object dir with the correct version string
|
|
|
|
system(cp $$PWD/Info.plist $$OUT_PWD/Info.plist)
|
|
|
|
system(sed -i -e 's/VERSION/$$cat(version.txt)/g' $$OUT_PWD/Info.plist)
|
|
|
|
|
|
|
|
QMAKE_INFO_PLIST = $$OUT_PWD/Info.plist
|
2018-07-29 20:05:18 +00:00
|
|
|
|
2019-03-23 17:45:44 +00:00
|
|
|
APP_BUNDLE_RESOURCES.files = moonlight.icns
|
2018-07-29 20:05:18 +00:00
|
|
|
APP_BUNDLE_RESOURCES.path = Contents/Resources
|
2018-11-19 05:23:06 +00:00
|
|
|
|
2019-06-29 22:39:20 +00:00
|
|
|
APP_BUNDLE_FRAMEWORKS.files = $$files(../libs/mac/Frameworks/*.framework, true) $$files(../libs/mac/lib/*.dylib, true)
|
2018-11-19 05:23:06 +00:00
|
|
|
APP_BUNDLE_FRAMEWORKS.path = Contents/Frameworks
|
|
|
|
|
2020-05-05 03:25:19 +00:00
|
|
|
APP_BUNDLE_PLIST.files = $$OUT_PWD/Info.plist
|
|
|
|
APP_BUNDLE_PLIST.path = Contents
|
|
|
|
|
|
|
|
QMAKE_BUNDLE_DATA += APP_BUNDLE_RESOURCES APP_BUNDLE_FRAMEWORKS APP_BUNDLE_PLIST
|
2018-11-19 05:23:06 +00:00
|
|
|
|
|
|
|
QMAKE_RPATHDIR += @executable_path/../Frameworks
|
2018-07-08 18:38:01 +00:00
|
|
|
}
|
2018-07-25 09:53:51 +00:00
|
|
|
|
2019-01-06 02:08:34 +00:00
|
|
|
VERSION = "$$cat(version.txt)"
|
|
|
|
DEFINES += VERSION_STR=\\\"$$cat(version.txt)\\\"
|