From 5ddb1d664996cdb31872bfaab6681d4cd20f5ae1 Mon Sep 17 00:00:00 2001 From: p01arst0rm Date: Sat, 3 Apr 2021 22:02:23 +0100 Subject: [PATCH] moved build options to options.cmake --- CMakeLists.txt | 13 ++------- options.cmake | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 11 deletions(-) create mode 100644 options.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 81f5cf096b..f901e658f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,17 +12,8 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang") endif() endif() -option(USE_NATIVE_INSTRUCTIONS "USE_NATIVE_INSTRUCTIONS makes rpcs3 compile with -march=native, which is useful for local builds, but not good for packages." ON) -option(WITH_LLVM "Enable usage of LLVM library" ON) -option(BUILD_LLVM_SUBMODULE "Build LLVM from git submodule" ON) -option(USE_ALSA "ALSA audio backend" ON) -option(USE_PULSE "PulseAudio audio backend" ON) -option(USE_FAUDIO "FAudio audio backend" ON) -option(USE_LIBEVDEV "libevdev-based joystick support" ON) -option(USE_DISCORD_RPC "Discord rich presence integration" ON) -option(USE_SYSTEM_ZLIB "Prefer system ZLIB instead of the builtin one" ON) -option(USE_VULKAN "Vulkan render backend" ON) -option(USE_PRECOMPILED_HEADERS "Use precompiled headers" OFF) +# include build options +include(options.cmake) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/rpcs3/cmake_modules") diff --git a/options.cmake b/options.cmake new file mode 100644 index 0000000000..5c5d4cc5a0 --- /dev/null +++ b/options.cmake @@ -0,0 +1,78 @@ +# rpcs3 project build options +#======================================================================== + + +# linker args +#======================================================================== + +option( + USE_SYSTEM_ZLIB + "Prefer system ZLIB instead of the builtin one" + ON +) + +option( + USE_PRECOMPILED_HEADERS + "Use precompiled headers" + OFF +) + +# build options +#======================================================================== + + +# "USE_NATIVE_INSTRUCTIONS makes rpcs3 compile with -march=native, +# which is useful for local builds, but not good for packages. +option( + USE_NATIVE_INSTRUCTIONS + "Enable march=native compatibility" + ON +) + +option( + WITH_LLVM + "Enable usage of LLVM library" + ON +) + +option( + BUILD_LLVM_SUBMODULE + "Build LLVM from git submodule" + ON +) + +option( + USE_ALSA + "Use ALSA audio backend" + ON +) + +option( + USE_PULSE + "Use PulseAudio audio backend" + ON +) + +option( + USE_FAUDIO + "Use FAudio audio backend" + ON +) + +option( + USE_LIBEVDEV + "Enable libevdev-based joystick support" + ON +) + +option( + USE_DISCORD_RPC + "Enable Discord rich presence integration" + ON +) + +option( + USE_VULKAN + "Enable Vulkan render backend" + ON +)