2018-07-04 21:16:25 +00:00
|
|
|
QT += core quick network
|
|
|
|
CONFIG += c++11
|
2018-05-06 00:25:55 +00:00
|
|
|
|
|
|
|
TARGET = moonlight-qt
|
|
|
|
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 {
|
|
|
|
INCLUDEPATH += $$PWD/../libs/windows/include
|
|
|
|
|
|
|
|
contains(QT_ARCH, i386) {
|
|
|
|
LIBS += -L$$PWD/../libs/windows/lib/x86
|
|
|
|
}
|
|
|
|
contains(QT_ARCH, x86_64) {
|
|
|
|
LIBS += -L$$PWD/../libs/windows/lib/x64
|
|
|
|
}
|
|
|
|
|
|
|
|
LIBS += ws2_32.lib winmm.lib
|
|
|
|
}
|
2018-05-06 00:25:55 +00:00
|
|
|
macx {
|
|
|
|
INCLUDEPATH += $$PWD/../libs/mac/include
|
2018-06-24 03:08:17 +00:00
|
|
|
LIBS += -L$$PWD/../libs/mac/lib
|
2018-05-06 00:25:55 +00:00
|
|
|
}
|
|
|
|
unix:!macx {
|
|
|
|
CONFIG += link_pkgconfig
|
2018-06-24 01:46:59 +00:00
|
|
|
PKGCONFIG += openssl sdl2
|
2018-05-06 00:25:55 +00:00
|
|
|
}
|
|
|
|
|
2018-06-24 03:08:17 +00:00
|
|
|
LIBS += -lSDL2
|
|
|
|
win32 {
|
|
|
|
LIBS += -llibssl -llibcrypto
|
|
|
|
} else {
|
|
|
|
LIBS += -lssl -lcrypto
|
|
|
|
}
|
|
|
|
|
2018-05-06 00:25:55 +00:00
|
|
|
SOURCES += \
|
|
|
|
main.cpp \
|
2018-06-28 05:30:33 +00:00
|
|
|
backend/identitymanager.cpp \
|
|
|
|
backend/nvhttp.cpp \
|
|
|
|
backend/nvpairingmanager.cpp \
|
|
|
|
backend/computermanager.cpp \
|
2018-06-28 06:15:13 +00:00
|
|
|
backend/boxartmanager.cpp \
|
2018-06-28 08:44:43 +00:00
|
|
|
settings/streamingpreferences.cpp \
|
|
|
|
streaming/input.cpp \
|
|
|
|
streaming/session.cpp \
|
|
|
|
streaming/audio.cpp \
|
2018-07-04 23:40:21 +00:00
|
|
|
streaming/video.cpp \
|
2018-07-06 03:07:05 +00:00
|
|
|
gui/computermodel.cpp \
|
|
|
|
gui/appmodel.cpp
|
2018-05-06 00:25:55 +00:00
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
utils.h \
|
2018-06-28 05:30:33 +00:00
|
|
|
backend/identitymanager.h \
|
|
|
|
backend/nvhttp.h \
|
|
|
|
backend/nvpairingmanager.h \
|
|
|
|
backend/computermanager.h \
|
2018-06-28 06:15:13 +00:00
|
|
|
backend/boxartmanager.h \
|
2018-06-28 08:44:43 +00:00
|
|
|
settings/streamingpreferences.h \
|
|
|
|
streaming/input.hpp \
|
2018-07-04 23:40:21 +00:00
|
|
|
streaming/session.hpp \
|
2018-07-06 03:07:05 +00:00
|
|
|
gui/computermodel.h \
|
|
|
|
gui/appmodel.h
|
2018-05-06 00:25:55 +00:00
|
|
|
|
|
|
|
RESOURCES += \
|
2018-07-04 21:16:25 +00:00
|
|
|
resources.qrc \
|
|
|
|
qml.qrc
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../opus/release/ -lopus
|
|
|
|
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../opus/debug/ -lopus
|
|
|
|
else:unix: LIBS += -L$$OUT_PWD/../opus/ -lopus
|
|
|
|
|
|
|
|
INCLUDEPATH += $$PWD/../opus/opus/include
|
|
|
|
DEPENDPATH += $$PWD/../opus/opus/include
|
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
|
|
|
|
|
|
|
# Default rules for deployment.
|
|
|
|
qnx: target.path = /tmp/$${TARGET}/bin
|
|
|
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
|
|
|
!isEmpty(target.path): INSTALLS += target
|