ports/emulators/cemu/files/patch-gui_qt_CEmu.pro
Alexey Dokuchaev e1f074dc26 emulators/cemu: the port had been updated to version 2.0
After many years and around 450 commits, it's finally here.
CEmu is more accurate and more powerful than ever before!
Major core and GUI improvements plus new features.

Reported by:	portscout
2024-09-07 18:21:40 +00:00

62 lines
2.1 KiB
INI

--- gui/qt/CEmu.pro.orig 2024-09-05 20:35:24 UTC
+++ gui/qt/CEmu.pro
@@ -9,7 +9,7 @@ if (lessThan(QT_MAJOR_VERSION, 6)) {
# CEmu version and info
CEMU_RELEASE = true
-CEMU_GIT_SHA = $$system(git describe --abbrev=7 --always)
+CEMU_GIT_SHA = a0a9d35 # XXX: don't forget to change for the next version!
isEmpty(CEMU_VERSION) {
CEMU_VERSION = v2.0dev
CEMU_RELEASE = false
@@ -31,7 +31,7 @@ CI = $$(CI)
DISTFILES += ../../.astylerc
# Linux desktop files
-if (linux) {
+if (unix) {
isEmpty(PREFIX) {
PREFIX = /usr
}
@@ -93,11 +93,12 @@ if (!win32-msvc*) {
QMAKE_CFLAGS += -std=gnu11 -Werror=implicit-function-declaration -Werror=missing-prototypes
# -flto might cause an internal compiler error on GCC in some circumstances (with -g3?)... Comment it if needed.
- CONFIG(release, debug|release): GLOBAL_FLAGS += -O3 -flto
+ #CONFIG(release, debug|release): GLOBAL_FLAGS += -O3 -flto
if (contains(DEFINES, LIB_ARCHIVE_SUPPORT)) {
CONFIG += link_pkgconfig
- PKGCONFIG += zlib libarchive
+ PKGCONFIG += zlib
+ LIBS += -larchive
}
# You should run ./capture/get_libpng-apng.sh first!
isEmpty(USE_LIBPNG) {
@@ -172,7 +173,7 @@ if (!win32-msvc*) {
}
}
-if (macx|linux) {
+if (macx|unix) {
# Be more secure by default...
GLOBAL_FLAGS += -fPIE -Wstack-protector -fstack-protector-strong --param=ssp-buffer-size=1
# Use ASAN on debug builds. Watch out about ODR crashes when built with -flto. detect_odr_violation=0 as an env var may help.
@@ -180,7 +181,7 @@ if (macx|linux) {
}
macx: QMAKE_LFLAGS += -Wl,-dead_strip
-linux: QMAKE_LFLAGS += -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,--gc-sections -pie
+unix: QMAKE_LFLAGS += -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,--gc-sections -pie
QMAKE_CFLAGS += $$GLOBAL_FLAGS
QMAKE_CXXFLAGS += $$GLOBAL_FLAGS
@@ -279,7 +280,7 @@ SOURCES += \
tablewidget.cpp \
basicdebugger.cpp
-linux|macx: SOURCES += ../../core/os/os-linux.c
+unix|macx: SOURCES += ../../core/os/os-linux.c
win32: SOURCES += ../../core/os/os-win32.c win32-console.cpp
win32: LIBS += -lpsapi