mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-18 10:32:38 +00:00
Copy the required data files into place for building in the IDE
This commit is contained in:
parent
b1799009b3
commit
640e3213ee
19
app/app.pro
19
app/app.pro
@ -285,6 +285,16 @@ else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../AntiHooking/debu
|
|||||||
INCLUDEPATH += $$PWD/../AntiHooking
|
INCLUDEPATH += $$PWD/../AntiHooking
|
||||||
DEPENDPATH += $$PWD/../AntiHooking
|
DEPENDPATH += $$PWD/../AntiHooking
|
||||||
|
|
||||||
|
defineTest(copyToDestDir) {
|
||||||
|
files = $$1
|
||||||
|
|
||||||
|
for(FILE, files) {
|
||||||
|
QMAKE_POST_LINK += $$QMAKE_COPY $$shell_quote($$shell_path($$PWD/$$FILE)) $$shell_quote($$shell_path($$OUT_PWD)) $$escape_expand(\\n\\t)
|
||||||
|
}
|
||||||
|
|
||||||
|
export(QMAKE_POST_LINK)
|
||||||
|
}
|
||||||
|
|
||||||
unix:!macx: {
|
unix:!macx: {
|
||||||
isEmpty(PREFIX) {
|
isEmpty(PREFIX) {
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
@ -310,6 +320,12 @@ unix:!macx: {
|
|||||||
appdata.files = SDL_GameControllerDB/gamecontrollerdb.txt ModeSeven.ttf
|
appdata.files = SDL_GameControllerDB/gamecontrollerdb.txt ModeSeven.ttf
|
||||||
appdata.path = "$$PREFIX/$$DATADIR/Moonlight Game Streaming Project/Moonlight/"
|
appdata.path = "$$PREFIX/$$DATADIR/Moonlight Game Streaming Project/Moonlight/"
|
||||||
|
|
||||||
|
CONFIG(debug, debug|release) {
|
||||||
|
# Copy the required data files into the application directory only for debug builds.
|
||||||
|
# Release builds will use the INSTALLS variable to place these in the correct folders.
|
||||||
|
copyToDestDir(SDL_GameControllerDB/gamecontrollerdb.txt ModeSeven.ttf)
|
||||||
|
}
|
||||||
|
|
||||||
INSTALLS += target appdata desktop icons appstream
|
INSTALLS += target appdata desktop icons appstream
|
||||||
}
|
}
|
||||||
win32 {
|
win32 {
|
||||||
@ -318,6 +334,9 @@ win32 {
|
|||||||
QMAKE_TARGET_DESCRIPTION = Moonlight Game Streaming Client
|
QMAKE_TARGET_DESCRIPTION = Moonlight Game Streaming Client
|
||||||
QMAKE_TARGET_PRODUCT = Moonlight
|
QMAKE_TARGET_PRODUCT = Moonlight
|
||||||
|
|
||||||
|
# Copy the required data files into the application directory
|
||||||
|
copyToDestDir(SDL_GameControllerDB/gamecontrollerdb.txt ModeSeven.ttf)
|
||||||
|
|
||||||
CONFIG -= embed_manifest_exe
|
CONFIG -= embed_manifest_exe
|
||||||
QMAKE_LFLAGS += /MANIFEST:embed /MANIFESTINPUT:$${PWD}/Moonlight.exe.manifest
|
QMAKE_LFLAGS += /MANIFEST:embed /MANIFESTINPUT:$${PWD}/Moonlight.exe.manifest
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user