You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
option(DISABLE_BUILD_DATE"Disable including the binary compile date")
8
8
option(ENABLE_TESTS"Enables building the unit tests"ON)
9
+
option(LIBRETRO"Enables building the libretro core"OFF)
9
10
set(USE_SYSTEM_LIBS "AUTO"CACHESTRING"Use system libraries instead of bundled libraries. ON - Always use system and fail if unavailable, OFF - Always use bundled, AUTO - Use system if available, otherwise use bundled. Default is AUTO")
10
11
optional_system_library(fmt)
11
12
optional_system_library(ryml)
12
13
optional_system_library(zstd)
13
14
optional_system_library(libzip)
14
15
optional_system_library(SDL2)
15
16
option(LTO_PCSX2_CORE"Enable LTO/IPO/LTCG on the subset of pcsx2 that benefits most from it but not anything else")
17
+
18
+
if(LIBRETRO)
19
+
set(ENABLE_TESTS OFF)
20
+
set(CMAKE_BUILD_PO FALSE)
21
+
set(BUILD_REPLAY_LOADERS FALSE)
22
+
set(CUBEB_API FALSE)
23
+
set(DISABLE_SETCAP TRUE)
24
+
set(USE_VULKAN FALSE)
25
+
set(USE_DISCORD_PRESENCE FALSE)
26
+
set(USE_ACHIEVEMENTS OFF)
27
+
set(QT_BUILD OFF)
28
+
add_definitions(-D__LIBRETRO__-DwxUSE_GUI=0)
29
+
endif()
30
+
16
31
option(USE_VTUNE"Plug VTUNE to profile GS JIT.")
17
32
option(USE_ACHIEVEMENTS"Build with RetroAchievements support"ON)
18
33
option(USE_DISCORD_PRESENCE"Enable support for Discord Rich Presence"ON)
0 commit comments