From ca4b1cb2d378916ef94cf56cef6ee4b7c2e78d8d Mon Sep 17 00:00:00 2001 From: Miku AuahDark Date: Thu, 11 Feb 2021 18:13:49 +0800 Subject: [PATCH] Re-apply Megasource-specific changes to OpenAL-soft CMakeLists --- libs/openal-soft/CMakeLists.txt | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/libs/openal-soft/CMakeLists.txt b/libs/openal-soft/CMakeLists.txt index 0cf0613d..fb60c1b8 100644 --- a/libs/openal-soft/CMakeLists.txt +++ b/libs/openal-soft/CMakeLists.txt @@ -76,17 +76,17 @@ option(ALSOFT_DLOPEN "Check for the dlopen API for loading optional libs" ON) option(ALSOFT_WERROR "Treat compile warnings as errors" OFF) -option(ALSOFT_UTILS "Build utility programs" ON) -option(ALSOFT_NO_CONFIG_UTIL "Disable building the alsoft-config utility" OFF) +option(ALSOFT_UTILS "Build utility programs" OFF) +option(ALSOFT_NO_CONFIG_UTIL "Disable building the alsoft-config utility" ON) -option(ALSOFT_EXAMPLES "Build example programs" ON) +option(ALSOFT_EXAMPLES "Build example programs" OFF) -option(ALSOFT_INSTALL "Install main library" ON) -option(ALSOFT_INSTALL_CONFIG "Install alsoft.conf sample configuration file" ON) -option(ALSOFT_INSTALL_HRTF_DATA "Install HRTF data files" ON) -option(ALSOFT_INSTALL_AMBDEC_PRESETS "Install AmbDec preset files" ON) -option(ALSOFT_INSTALL_EXAMPLES "Install example programs (alplay, alstream, ...)" ON) -option(ALSOFT_INSTALL_UTILS "Install utility programs (openal-info, alsoft-config, ...)" ON) +option(ALSOFT_INSTALL "Install main library" OFF) +option(ALSOFT_INSTALL_CONFIG "Install alsoft.conf sample configuration file" OFF) +option(ALSOFT_INSTALL_HRTF_DATA "Install HRTF data files" OFF) +option(ALSOFT_INSTALL_AMBDEC_PRESETS "Install AmbDec preset files" OFF) +option(ALSOFT_INSTALL_EXAMPLES "Install example programs (alplay, alstream, ...)" OFF) +option(ALSOFT_INSTALL_UTILS "Install utility programs (openal-info, alsoft-config, ...)" OFF) option(ALSOFT_UPDATE_BUILD_VERSION "Update git build version info" ON) if(DEFINED SHARE_INSTALL_DIR) @@ -1300,6 +1300,8 @@ else() endif() endif() +set(OPENAL_LIB_NAME ${IMPL_TARGET} PARENT_SCOPE) + target_include_directories(${IMPL_TARGET} PUBLIC $ @@ -1598,3 +1600,7 @@ if(EXTRA_INSTALLS) LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) endif() + +if(MEGA) + install(TARGETS ${IMPL_TARGET} RUNTIME DESTINATION . LIBRARY DESTINATION .) +ENDIF()