From 4fd1a35b2a9baff0b2158f96c6383ea435d36180 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 1 Dec 2025 16:17:37 -0800 Subject: [PATCH] CMake: Disable some installs when building for Steam --- CMakeLists.txt | 12 ++++++++++-- FEXCore/CMakeLists.txt | 8 +++++--- FEXCore/Source/CMakeLists.txt | 8 +++++--- Source/Tools/CMakeLists.txt | 5 ++++- 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 68e48349c..4023fbc91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,7 @@ option(ENABLE_FEXCORE_PROFILER "Enables use of the FEXCore timeline profiling ca set (FEXCORE_PROFILER_BACKEND "gpuvis" CACHE STRING "Set which backend to use for the FEXCore profiler (gpuvis, tracy)") option(ENABLE_GLIBC_ALLOCATOR_HOOK_FAULT "Enables glibc memory allocation hooking with fault for CI testing") option(USE_PDB_DEBUGINFO "Builds debug info in PDB format" FALSE) +option(BUILD_STEAM_SUPPORT "Builds support for steampipe depot creation" FALSE) set (X86_32_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Data/CMake/toolchain_x86_32.cmake" CACHE FILEPATH "Toolchain file for the (cross-)compiler targeting i686") set (X86_64_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Data/CMake/toolchain_x86_64.cmake" CACHE FILEPATH "Toolchain file for the (cross-)compiler targeting x86_64") @@ -64,6 +65,10 @@ if (NOT MINGW_BUILD) endif() endif() +if (BUILD_STEAM_SUPPORT) + add_definitions(-DFEX_STEAM_SUPPORT=1) +endif() + if (ENABLE_FEXCORE_PROFILER) add_definitions(-DENABLE_FEXCORE_PROFILER=1) string(TOUPPER "${FEXCORE_PROFILER_BACKEND}" FEXCORE_PROFILER_BACKEND) @@ -476,13 +481,16 @@ add_subdirectory(FEXHeaderUtils/) add_subdirectory(CodeEmitter/) add_subdirectory(FEXCore/) -if (_M_ARM_64 AND NOT MINGW_BUILD) +if (_M_ARM_64 AND NOT MINGW_BUILD AND NOT BUILD_STEAM_SUPPORT) # Binfmt_misc files must be installed prior to Source/ installs add_subdirectory(Data/binfmts/) endif() add_subdirectory(Source/) -add_subdirectory(Data/AppConfig/) + +if (NOT BUILD_STEAM_SUPPORT) + add_subdirectory(Data/AppConfig/) +endif() # Install the ThunksDB file file(GLOB CONFIG_SOURCES CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/Data/*.json) diff --git a/FEXCore/CMakeLists.txt b/FEXCore/CMakeLists.txt index 90a14210c..8f60d8f39 100644 --- a/FEXCore/CMakeLists.txt +++ b/FEXCore/CMakeLists.txt @@ -74,9 +74,11 @@ add_compile_options($<$:-fno-strict-aliasing> $<$