summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-08-08 09:04:14 +0800
committerErik Kundiman <erik@megapahit.org>2024-08-08 09:04:14 +0800
commit14a87739a21bbf37b98ac6a9a0918c33f6000f1a (patch)
tree7ad97e903649865151f33ad1465b9a3f09656b5c
parent17420cffcb0859eb1fe4a7a141ee47e12b8c0c3d (diff)
Install FMOD 2.03.02 automatically on GNU/Linux
-rw-r--r--indra/cmake/FMODSTUDIO.cmake27
-rw-r--r--indra/newview/ViewerInstall.cmake2
2 files changed, 28 insertions, 1 deletions
diff --git a/indra/cmake/FMODSTUDIO.cmake b/indra/cmake/FMODSTUDIO.cmake
index 02e7fbd9eb..bedf64ddac 100644
--- a/indra/cmake/FMODSTUDIO.cmake
+++ b/indra/cmake/FMODSTUDIO.cmake
@@ -54,6 +54,33 @@ if (USE_FMODSTUDIO)
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
RESULT_VARIABLE ${_binary}_installed
)
+ else (DARWIN)
+ execute_process(
+ COMMAND tar -xf $ENV{HOME}/Downloads/fmodstudioapi20223linux.tar.gz -C /tmp
+ COMMAND mkdir -p ${AUTOBUILD_INSTALL_DIR}/include/fmodstudio
+ )
+ execute_process(
+ COMMAND cp
+ /tmp/fmodstudioapi20223linux/api/core/inc/fmod.h
+ /tmp/fmodstudioapi20223linux/api/core/inc/fmod.hpp
+ /tmp/fmodstudioapi20223linux/api/core/inc/fmod_codec.h
+ /tmp/fmodstudioapi20223linux/api/core/inc/fmod_common.h
+ /tmp/fmodstudioapi20223linux/api/core/inc/fmod_dsp.h
+ /tmp/fmodstudioapi20223linux/api/core/inc/fmod_dsp_effects.h
+ /tmp/fmodstudioapi20223linux/api/core/inc/fmod_errors.h
+ /tmp/fmodstudioapi20223linux/api/core/inc/fmod_output.h
+ ${AUTOBUILD_INSTALL_DIR}/include/fmodstudio/
+ COMMAND cp -P
+ /tmp/fmodstudioapi20223linux/api/core/lib/${CMAKE_SYSTEM_PROCESSOR}/libfmod.so
+ /tmp/fmodstudioapi20223linux/api/core/lib/${CMAKE_SYSTEM_PROCESSOR}/libfmod.so.13
+ /tmp/fmodstudioapi20223linux/api/core/lib/${CMAKE_SYSTEM_PROCESSOR}/libfmod.so.13.23
+ ${AUTOBUILD_INSTALL_DIR}/lib/release/
+ )
+ execute_process(
+ COMMAND rm -rf /tmp/fmodstudioapi20223linux
+ WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
+ RESULT_VARIABLE ${_binary}_installed
+ )
endif (DARWIN)
else (USESYSTEMLIBS)
use_prebuilt_binary(fmodstudio)
diff --git a/indra/newview/ViewerInstall.cmake b/indra/newview/ViewerInstall.cmake
index add7d23884..5c4c08dc9d 100644
--- a/indra/newview/ViewerInstall.cmake
+++ b/indra/newview/ViewerInstall.cmake
@@ -130,7 +130,7 @@ if (LINUX)
install(FILES
${AUTOBUILD_INSTALL_DIR}/lib/release/libfmod.so
${AUTOBUILD_INSTALL_DIR}/lib/release/libfmod.so.13
- ${AUTOBUILD_INSTALL_DIR}/lib/release/libfmod.so.13.22
+ ${AUTOBUILD_INSTALL_DIR}/lib/release/libfmod.so.13.23
DESTINATION ${_LIB})
endif (USE_FMODSTUDIO)
install(PROGRAMS