mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Switch to SDL3+SDL2-compat
This commit is contained in:
21
app/app.pro
21
app/app.pro
@@ -36,17 +36,13 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
win32 {
|
||||
contains(QT_ARCH, i386) {
|
||||
LIBS += -L$$PWD/../libs/windows/lib/x86
|
||||
INCLUDEPATH += $$PWD/../libs/windows/include/x86
|
||||
}
|
||||
contains(QT_ARCH, x86_64) {
|
||||
LIBS += -L$$PWD/../libs/windows/lib/x64
|
||||
INCLUDEPATH += $$PWD/../libs/windows/include/x64
|
||||
INCLUDEPATH += $$PWD/../libs/windows/include/x64 $$PWD/../libs/windows/include/x64/SDL2
|
||||
}
|
||||
contains(QT_ARCH, arm64) {
|
||||
LIBS += -L$$PWD/../libs/windows/lib/arm64
|
||||
INCLUDEPATH += $$PWD/../libs/windows/include/arm64
|
||||
INCLUDEPATH += $$PWD/../libs/windows/include/arm64 $$PWD/../libs/windows/include/arm64/SDL2
|
||||
}
|
||||
|
||||
INCLUDEPATH += $$PWD/../libs/windows/include
|
||||
@@ -56,15 +52,8 @@ win32 {
|
||||
DEFINES += _USE_MATH_DEFINES
|
||||
}
|
||||
macx:!disable-prebuilts {
|
||||
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
|
||||
LIBS += -L$$PWD/../libs/mac/lib -F$$PWD/../libs/mac/Frameworks
|
||||
|
||||
# QMake doesn't handle framework-style includes correctly on its own
|
||||
QMAKE_CFLAGS += -F$$PWD/../libs/mac/Frameworks
|
||||
QMAKE_CXXFLAGS += -F$$PWD/../libs/mac/Frameworks
|
||||
QMAKE_OBJECTIVE_CFLAGS += -F$$PWD/../libs/mac/Frameworks
|
||||
INCLUDEPATH += $$PWD/../libs/mac/include $$PWD/../libs/mac/include/SDL2
|
||||
LIBS += -L$$PWD/../libs/mac/lib
|
||||
}
|
||||
|
||||
unix:if(!macx|disable-prebuilts) {
|
||||
@@ -163,7 +152,7 @@ win32:!winrt {
|
||||
}
|
||||
macx {
|
||||
!disable-prebuilts {
|
||||
LIBS += -lssl.3 -lcrypto.3 -lavcodec.62 -lavutil.60 -lswscale.9 -lopus -framework SDL2 -framework SDL2_ttf
|
||||
LIBS += -lssl.3 -lcrypto.3 -lavcodec.62 -lavutil.60 -lswscale.9 -lopus -lSDL2 -lSDL2_ttf
|
||||
CONFIG += discord-rpc
|
||||
}
|
||||
|
||||
|
||||
2
libs
2
libs
Submodule libs updated: a13c11c7d2...6a5f6036d1
@@ -4,15 +4,31 @@ while [[ "$#" -gt 0 ]]; do
|
||||
echo $1
|
||||
case "$1" in
|
||||
--sdl2_win)
|
||||
rm $LIB_PATH/windows/include/*/begin_code.h $LIB_PATH/windows/include/*/close_code.h $LIB_PATH/windows/include/*/SDL*.h $LIB_PATH/windows/lib/*/SDL2.* $LIB_PATH/windows/lib/*/SDL2main.*
|
||||
rm -r $LIB_PATH/windows/include/*/SDL2
|
||||
rm $LIB_PATH/windows/lib/*/SDL2.* $LIB_PATH/windows/lib/*/SDL2main.*
|
||||
shift
|
||||
;;
|
||||
--sdl2_mac)
|
||||
rm -r $LIB_PATH/mac/Frameworks/SDL2.framework
|
||||
rm -r $LIB_PATH/mac/include/SDL2
|
||||
rm $LIB_PATH/mac/lib/libSDL2.dylib
|
||||
shift
|
||||
;;
|
||||
--sdl3_win)
|
||||
rm -r $LIB_PATH/windows/include/*/SDL3
|
||||
rm $LIB_PATH/windows/lib/*/SDL3.* $LIB_PATH/windows/lib/*/SDL3main.*
|
||||
shift
|
||||
;;
|
||||
--sdl3_mac)
|
||||
rm -r $LIB_PATH/mac/include/SDL3
|
||||
rm $LIB_PATH/mac/lib/libSDL3.dylib
|
||||
shift
|
||||
;;
|
||||
--sdl_ttf_win)
|
||||
rm $LIB_PATH/windows/include/SDL_ttf.h $LIB_PATH/windows/lib/*/SDL2_ttf.*
|
||||
rm $LIB_PATH/windows/include/*/SDL2/SDL_ttf.h $LIB_PATH/windows/lib/*/SDL2_ttf.*
|
||||
shift
|
||||
;;
|
||||
--sdl_ttf_mac)
|
||||
rm $LIB_PATH/mac/include/SDL2/SDL_ttf.h $LIB_PATH/mac/lib/libSDL2_ttf.dylib
|
||||
shift
|
||||
;;
|
||||
--detours_win)
|
||||
|
||||
Reference in New Issue
Block a user