aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/cmake')
-rw-r--r--linden/indra/cmake/CopyWinLibs.cmake5
-rw-r--r--linden/indra/cmake/LLAudio.cmake9
-rw-r--r--linden/indra/cmake/OPENAL.cmake28
3 files changed, 36 insertions, 6 deletions
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake
index d4ddb23..92b5d71 100644
--- a/linden/indra/cmake/CopyWinLibs.cmake
+++ b/linden/indra/cmake/CopyWinLibs.cmake
@@ -8,12 +8,7 @@ include(CMakeCopyIfDifferent)
8 8
9set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-win32") 9set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-win32")
10set(vivox_files 10set(vivox_files
11 tntk.dll
12 libeay32.dll
13 SLVoice.exe 11 SLVoice.exe
14 ssleay32.dll
15 SLVoiceAgent.exe
16 srtp.dll
17 alut.dll 12 alut.dll
18 vivoxsdk.dll 13 vivoxsdk.dll
19 ortp.dll 14 ortp.dll
diff --git a/linden/indra/cmake/LLAudio.cmake b/linden/indra/cmake/LLAudio.cmake
index eff643d..ff479f6 100644
--- a/linden/indra/cmake/LLAudio.cmake
+++ b/linden/indra/cmake/LLAudio.cmake
@@ -6,4 +6,11 @@ set(LLAUDIO_INCLUDE_DIRS
6 ${LIBS_OPEN_DIR}/llaudio 6 ${LIBS_OPEN_DIR}/llaudio
7 ) 7 )
8 8
9set(LLAUDIO_LIBRARIES llaudio) 9set(LLAUDIO_LIBRARIES
10 llaudio
11 ${VORBISENC_LIBRARIES}
12 ${VORBISFILE_LIBRARIES}
13 ${VORBIS_LIBRARIES}
14 ${OGG_LIBRARIES}
15 ${OPENAL_LIBRARIES}
16 )
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake
new file mode 100644
index 0000000..eb195a0
--- /dev/null
+++ b/linden/indra/cmake/OPENAL.cmake
@@ -0,0 +1,28 @@
1# -*- cmake -*-
2include(Linking)
3include(Prebuilt)
4
5if (LINUX)
6 set(OPENAL ON CACHE BOOL "Enable OpenAL")
7else (LINUX)
8 set(OPENAL OFF CACHE BOOL "Enable OpenAL")
9endif (LINUX)
10
11if (OPENAL)
12 if (STANDALONE)
13 include(FindPkgConfig)
14 include(FindOpenAL)
15 pkg_check_modules(OPENAL_LIB REQUIRED openal)
16 pkg_check_modules(FREEALUT_LIB REQUIRED freealut)
17 else (STANDALONE)
18 use_prebuilt_binary(openal)
19 endif (STANDALONE)
20 set(OPENAL_LIBRARIES
21 openal
22 alut
23 )
24endif (OPENAL)
25
26if (OPENAL)
27 message(STATUS "Building with OpenAL audio support")
28endif (OPENAL)