@@ -24,7 +24,7 @@ endif()
2424
2525# Minimum OS X version.
2626# This is inserted into the Info.plist as well.
27- set (CMAKE_OSX_DEPLOYMENT_TARGET "11.0 .0" CACHE STRING "" )
27+ set (CMAKE_OSX_DEPLOYMENT_TARGET "10.15 .0" CACHE STRING "" )
2828
2929set (CMAKE_USER_MAKE_RULES_OVERRIDE "${CMAKE_CURRENT_SOURCE_DIR} /CMake/FlagsOverride.cmake" )
3030
@@ -44,7 +44,7 @@ endif()
4444
4545set (COMPILER ${CMAKE_CXX_COMPILER_ID} )
4646if (COMPILER STREQUAL "GNU" )
47- set (COMPILER "GCC" ) # prefer printing GCC instead of GNU
47+ set (COMPILER "GCC" ) # perfer printing GCC instead of GNU
4848endif ()
4949
5050# Enforce minimum compiler versions that support the c++20 features we use
@@ -98,7 +98,6 @@ option(ENABLE_GENERIC "Enables generic build that should run on any little-endia
9898option (ENABLE_HEADLESS "Enables running Dolphin as a headless variant" OFF )
9999option (ENABLE_ALSA "Enables ALSA sound backend" ON )
100100option (ENABLE_PULSEAUDIO "Enables PulseAudio sound backend" ON )
101- option (ENABLE_CUBEB "Enables Cubeb sound backend" ON )
102101option (ENABLE_LLVM "Enables LLVM support, for disassembly" ON )
103102option (ENABLE_TESTS "Enables building the unit tests" ON )
104103option (ENABLE_VULKAN "Enables vulkan video backend" ON )
@@ -124,11 +123,6 @@ option(OPROFILING "Enable profiling" OFF)
124123# TODO: Add DSPSpy
125124option (DSPTOOL "Build dsptool" OFF )
126125
127- # RetroAchievements developer tools require Windows hooks
128- if (WIN32 )
129- option (RC_CLIENT_SUPPORTS_RAINTEGRATION "Enables RetroAchievements developer tools" ON )
130- endif ()
131-
132126# Enable SDL by default on operating systems that aren't Android.
133127if (NOT ANDROID)
134128 option (ENABLE_SDL "Enables SDL as a generic controller backend" ON )
@@ -149,7 +143,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
149143 option (ENABLE_VTUNE "Enable Intel VTune integration for JIT code." OFF )
150144
151145 if (NOT ANDROID)
152- option (ENABLE_HWDB "Enables the udev hardware database" ON )
153146 option (ENABLE_EVDEV "Enables the evdev controller backend" ON )
154147 endif ()
155148endif ()
@@ -413,7 +406,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
413406 set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/usr/local/lib" )
414407
415408 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14.0)
416- # Workaround: the llvm libc++ and versions of clang earlier than 14 have a bug with consteval
409+ # Workaround: the llvm libc++ and versions of clang eariler than 14 have a bug with consteval
417410 # so we define FMT_CONSTEVAL to blank to just disable consteval in fmt
418411 add_definitions (-DFMT_CONSTEVAL=)
419412 endif ()
@@ -572,16 +565,6 @@ if(OPROFILING)
572565 endif ()
573566endif ()
574567
575- if (ENABLE_HWDB)
576- find_package (LIBUDEV REQUIRED)
577- if (LIBUDEV_FOUND)
578- message (STATUS "libudev found, enabling hardware database" )
579- add_definitions (-DHAVE_LIBUDEV=1)
580- else ()
581- message (FATAL_ERROR "Couldn't find libudev. Can't build hardware database.\n Disable ENABLE_HWDB if you wish to build without hardware database support" )
582- endif ()
583- endif ()
584-
585568if (ENABLE_EVDEV)
586569 find_package (LIBUDEV REQUIRED)
587570 find_package (LIBEVDEV REQUIRED)
@@ -689,7 +672,7 @@ dolphin_make_imported_target_if_missing(LibLZMA::LibLZMA LIBLZMA)
689672
690673dolphin_find_optional_system_library_pkgconfig(ZSTD libzstd>=1.4.0 zstd::zstd Externals/zstd)
691674
692- dolphin_find_optional_system_library_pkgconfig(ZLIB zlib>=1.3.1 ZLIB::ZLIB Externals/zlib-ng)
675+ add_subdirectory ( Externals/zlib-ng)
693676
694677dolphin_find_optional_system_library_pkgconfig(MINIZIP
695678 "minizip>=4.0.4" minizip::minizip Externals/minizip-ng
@@ -712,10 +695,12 @@ if (APPLE OR WIN32)
712695 include_directories (Externals/ed25519)
713696endif ()
714697
715- if (ENABLE_CUBEB)
716- dolphin_find_optional_system_library(CUBEB Externals/cubeb)
717- add_definitions (-DHAVE_CUBEB)
718- endif ()
698+ # Using static soundtouch from Externals
699+ # Unable to use system soundtouch library: We require shorts, not floats.
700+ add_subdirectory (Externals/soundtouch)
701+ include_directories (Externals/soundtouch)
702+
703+ dolphin_find_optional_system_library(CUBEB Externals/cubeb)
719704
720705if (NOT ANDROID)
721706 dolphin_find_optional_system_library_pkgconfig(
@@ -724,7 +709,7 @@ if(NOT ANDROID)
724709 add_definitions (-D__LIBUSB__)
725710endif ()
726711
727- dolphin_find_optional_system_library(SFML Externals/SFML 3.0 COMPONENTS Network System )
712+ dolphin_find_optional_system_library(SFML Externals/SFML 2.1 COMPONENTS network system )
728713
729714if (USE_UPNP)
730715 dolphin_find_optional_system_library(MINIUPNPC Externals/miniupnpc 1.6)
@@ -798,16 +783,14 @@ if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/Source/Core/Common/scmrev.h)
798783endif ()
799784
800785if (APPLE )
801- file (MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /Source /Core)
802- if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR} /Source /Core/VersionInfo .plist)
803- file (TOUCH ${CMAKE_CURRENT_BINARY_DIR} /Source /Core/VersionInfo .plist)
786+ file (MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /Source /Core/DolphinQt )
787+ if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR} /Source /Core/DolphinQt/Info .plist)
788+ file (TOUCH ${CMAKE_CURRENT_BINARY_DIR} /Source /Core/DolphinQt/Info .plist)
804789 endif ()
805- endif ()
806790
807- if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
808- file (MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /Flatpak)
809- if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR} /Flatpak/org.DolphinEmu.dolphin-emu.metainfo.xml)
810- file (TOUCH ${CMAKE_CURRENT_BINARY_DIR} /Flatpak/org.DolphinEmu.dolphin-emu.metainfo.xml)
791+ file (MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /Source /Core/MacUpdater)
792+ if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR} /Source /Core/MacUpdater/Info.plist)
793+ file (TOUCH ${CMAKE_CURRENT_BINARY_DIR} /Source /Core/MacUpdater/Info.plist)
811794 endif ()
812795endif ()
813796
@@ -818,7 +801,7 @@ endif()
818801add_custom_target (
819802 dolphin_scmrev
820803 ${CMAKE_COMMAND} -DPROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR} -DPROJECT_BINARY_DIR =${PROJECT_BINARY_DIR} -DDISTRIBUTOR=${DISTRIBUTOR} -DDOLPHIN_DEFAULT_UPDATE_TRACK=${DOLPHIN_DEFAULT_UPDATE_TRACK} -DGIT_FOUND=${GIT_FOUND} -DGIT_EXECUTABLE=${GIT_EXECUTABLE} -DDOLPHIN_WC_REVISION=${DOLPHIN_WC_REVISION} -DDOLPHIN_WC_DESCRIBE=${DOLPHIN_WC_DESCRIBE} -DDOLPHIN_WC_BRANCH=${DOLPHIN_WC_BRANCH} -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} -P ${CMAKE_CURRENT_SOURCE_DIR} /CMake/ScmRevGen.cmake
821- BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR} /Source/Core/Common/scmrev.h" "${CMAKE_CURRENT_BINARY_DIR} /Source/Core/DolphinQt/Info.plist" "${CMAKE_CURRENT_BINARY_DIR} /Source/Core/MacUpdater/Info.plist" " ${CMAKE_CURRENT_BINARY_DIR} /Flatpak/org.DolphinEmu.dolphin-emu.metainfo.xml"
804+ BYPRODUCTS "${CMAKE_CURRENT_BINARY_DIR} /Source/Core/Common/scmrev.h" "${CMAKE_CURRENT_BINARY_DIR} /Source/Core/DolphinQt/Info.plist" "${CMAKE_CURRENT_BINARY_DIR} /Source/Core/MacUpdater/Info.plist"
822805 VERBATIM
823806)
824807
0 commit comments