aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/cmake/OPENAL.cmake.imp115
1 files changed, 0 insertions, 115 deletions
diff --git a/linden/indra/cmake/OPENAL.cmake.imp b/linden/indra/cmake/OPENAL.cmake.imp
deleted file mode 100644
index 60abef3..0000000
--- a/linden/indra/cmake/OPENAL.cmake.imp
+++ /dev/null
@@ -1,115 +0,0 @@
1# -*- cmake -*-
2
3include(Variables)
4include(Linking)
5
6set(OPENAL ON CACHE BOOL "Enable OpenAL")
7
8
9if (OPENAL)
10
11 # message(STATUS "Building with OpenAL audio support")
12
13 # OPENAL_LIB
14 use_prebuilt_binary(openal)
15
16 if (WINDOWS)
17 set(OPENAL_LIB
18 optimized ${ARCH_PREBUILT_DIRS_RELEASE}/openal32.lib
19 debug ${ARCH_PREBUILT_DIRS_DEBUG}/openal32.lib
20 )
21
22 elseif (DARWIN)
23 # Look for for system's OpenAL.framework
24 find_library(OPENAL_LIB
25 NAMES openal.1
26 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
27 NO_DEFAULT_PATH
28 )
29 else (WINDOWS)
30 set(OPENAL_LIB openal)
31 endif (WINDOWS)
32
33 if (NOT OPENAL_LIB)
34 message(FATAL_ERROR "OpenAL not found!")
35 else (NOT OPENAL_LIB)
36 # message(STATUS "OpenAL found: ${OPENAL_LIB}")
37 endif (NOT OPENAL_LIB)
38
39
40
41 # OPENAL_INCLUDE_DIR
42
43 if (DARWIN)
44 set(OPENAL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/AL)
45 else (DARWIN)
46 find_path(OPENAL_INCLUDE_DIR
47 NAMES al.h
48 PATHS ${LIBS_PREBUILT_DIR}/include/AL
49 )
50 endif (DARWIN)
51
52 if (NOT OPENAL_INCLUDE_DIR)
53 message(FATAL_ERROR "al.h not found!")
54 else (NOT OPENAL_INCLUDE_DIR)
55 # message(STATUS "al.h found in: ${OPENAL_INCLUDE_DIR}")
56 endif (NOT OPENAL_INCLUDE_DIR)
57
58
59
60 # ALUT_LIB
61
62 if (WINDOWS)
63 set(ALUT_LIB
64 optimized ${ARCH_PREBUILT_DIRS_RELEASE}/alut.lib
65 debug ${ARCH_PREBUILT_DIRS_DEBUG}/alut.lib
66 )
67 elseif (DARWIN)
68 find_library( ALUT_LIB
69 NAMES alut.0
70 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
71 NO_DEFAULT_PATH
72 )
73 else (WINDOWS)
74 set(ALUT_LIB alut)
75 endif (WINDOWS)
76
77 if (NOT ALUT_LIB)
78 message(FATAL_ERROR "ALUT not found!")
79 else (NOT ALUT_LIB)
80 # message(STATUS "ALUT found: ${ALUT_LIB}")
81 endif (NOT ALUT_LIB)
82
83
84
85 # ALUT_INCLUDE_DIR
86
87 find_path(ALUT_INCLUDE_DIR
88 NAMES alut.h
89 PATHS ${OPENAL_INCLUDE_DIR}
90 )
91
92 if (NOT ALUT_INCLUDE_DIR)
93 message(FATAL_ERROR "alut.h not found!")
94 else (NOT ALUT_INCLUDE_DIR)
95 # message(STATUS "alut.h found in: ${ALUT_INCLUDE_DIR}")
96 endif (NOT ALUT_INCLUDE_DIR)
97
98
99
100 set(OPENAL_LIBRARIES
101 ${OPENAL_LIB}
102 ${ALUT_LIB}
103 )
104
105 set(OPENAL_INCLUDE_DIRS
106 ${OPENAL_INCLUDE_DIR}
107 ${ALUT_INCLUDE_DIR}
108 )
109
110
111 set(OPENAL_FOUND TRUE CACHE BOOL
112 "Found OpenAL and ALUT libraries successfully"
113 )
114
115endif (OPENAL)