diff options
author | Aleric Inglewood | 2010-09-28 03:09:06 +0200 |
---|---|---|
committer | Aleric Inglewood | 2010-09-28 03:09:06 +0200 |
commit | e71d3ea2fad63fa2ec81685a9b09c1bed6b493be (patch) | |
tree | 25228f189a1d571ded4f568ccb5af1722c3db789 /linden/indra | |
parent | RED-556: SNOW-800: Massively duplicated objects (diff) | |
download | meta-impy-e71d3ea2fad63fa2ec81685a9b09c1bed6b493be.zip meta-impy-e71d3ea2fad63fa2ec81685a9b09c1bed6b493be.tar.gz meta-impy-e71d3ea2fad63fa2ec81685a9b09c1bed6b493be.tar.bz2 meta-impy-e71d3ea2fad63fa2ec81685a9b09c1bed6b493be.tar.xz |
RED-560: Imprudence doesn't compile when configured with --standalone
See http://redmine.imprudenceviewer.org/issues/560
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/cmake/GStreamer.cmake | 18 | ||||
-rw-r--r-- | linden/indra/cmake/LLMedia.cmake | 1 | ||||
-rw-r--r-- | linden/indra/cmake/OPENAL.cmake | 123 | ||||
-rw-r--r-- | linden/indra/llmedia/CMakeLists.txt | 2 |
4 files changed, 37 insertions, 107 deletions
diff --git a/linden/indra/cmake/GStreamer.cmake b/linden/indra/cmake/GStreamer.cmake index f5f9c03..9c5e9f7 100644 --- a/linden/indra/cmake/GStreamer.cmake +++ b/linden/indra/cmake/GStreamer.cmake | |||
@@ -1,12 +1,22 @@ | |||
1 | # -*- cmake -*- | 1 | # -*- cmake -*- |
2 | include(Prebuilt) | 2 | include(Prebuilt) |
3 | 3 | ||
4 | # Maybe libxml and glib should have their own .cmake files | 4 | if (STANDALONE) |
5 | include(FindPkgConfig) | ||
6 | |||
7 | pkg_check_modules(GSTREAMER REQUIRED gstreamer-0.10) | ||
8 | pkg_check_modules(GSTREAMER_PLUGINS_BASE REQUIRED gstreamer-plugins-base-0.10) | ||
9 | pkg_check_modules(GSTREAMER_VIDEO REQUIRED gstreamer-video-0.10) | ||
10 | |||
11 | else (STANDALONE) | ||
12 | |||
13 | # libxml and glib should have their own .cmake files | ||
5 | use_prebuilt_binary(libxml) | 14 | use_prebuilt_binary(libxml) |
6 | use_prebuilt_binary(glib) | 15 | use_prebuilt_binary(glib) |
7 | 16 | ||
8 | set(GSTREAMER_FOUND ON FORCE BOOL) | 17 | set(GSTREAMER_FOUND ON FORCE BOOL) |
9 | set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL) | 18 | set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL) |
19 | set(GSTREAMER_VIDEO_FOUND ON FORCE BOOL) | ||
10 | 20 | ||
11 | use_prebuilt_binary(gstreamer) | 21 | use_prebuilt_binary(gstreamer) |
12 | use_prebuilt_binary(gstreamer-plugins) | 22 | use_prebuilt_binary(gstreamer-plugins) |
@@ -105,9 +115,11 @@ else (WINDOWS) | |||
105 | 115 | ||
106 | endif (WINDOWS) | 116 | endif (WINDOWS) |
107 | 117 | ||
108 | if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND) | 118 | endif (STANDALONE) |
119 | |||
120 | if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND) | ||
109 | set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") | 121 | set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") |
110 | endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND) | 122 | endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND) |
111 | 123 | ||
112 | if (GSTREAMER) | 124 | if (GSTREAMER) |
113 | add_definitions(-DLL_GSTREAMER_ENABLED=1) | 125 | add_definitions(-DLL_GSTREAMER_ENABLED=1) |
diff --git a/linden/indra/cmake/LLMedia.cmake b/linden/indra/cmake/LLMedia.cmake index 8a36a69..e7769db 100644 --- a/linden/indra/cmake/LLMedia.cmake +++ b/linden/indra/cmake/LLMedia.cmake | |||
@@ -10,4 +10,5 @@ set(LLMEDIA_LIBRARIES | |||
10 | llmedia | 10 | llmedia |
11 | ${GSTREAMER_LIBRARIES} | 11 | ${GSTREAMER_LIBRARIES} |
12 | ${GSTREAMER_PLUGINS_BASE_LIBRARIES} | 12 | ${GSTREAMER_PLUGINS_BASE_LIBRARIES} |
13 | ${GSTREAMER_VIDEO_LIBRARIES} | ||
13 | ) | 14 | ) |
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake index 4f0e0cc..98c7ddc 100644 --- a/linden/indra/cmake/OPENAL.cmake +++ b/linden/indra/cmake/OPENAL.cmake | |||
@@ -1,113 +1,28 @@ | |||
1 | # -*- cmake -*- | 1 | # -*- cmake -*- |
2 | |||
3 | include(Variables) | ||
4 | include(Linking) | 2 | include(Linking) |
3 | include(Prebuilt) | ||
5 | 4 | ||
6 | set(OPENAL ON CACHE BOOL "Enable OpenAL") | 5 | if (LINUX) |
7 | 6 | set(OPENAL ON CACHE BOOL "Enable OpenAL") | |
7 | else (LINUX) | ||
8 | set(OPENAL OFF CACHE BOOL "Enable OpenAL") | ||
9 | endif (LINUX) | ||
8 | 10 | ||
9 | if (OPENAL) | 11 | if (OPENAL) |
10 | 12 | if (STANDALONE) | |
11 | # message(STATUS "Building with OpenAL audio support") | 13 | include(FindPkgConfig) |
12 | 14 | include(FindOpenAL) | |
13 | # OPENAL_LIB | 15 | pkg_check_modules(OPENAL_LIB REQUIRED openal) |
14 | use_prebuilt_binary(openal) | 16 | pkg_check_modules(FREEALUT_LIB REQUIRED freealut) |
15 | 17 | else (STANDALONE) | |
16 | if (WINDOWS) | 18 | use_prebuilt_binary(openal-soft) |
17 | set(OPENAL_LIB | 19 | endif (STANDALONE) |
18 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libOpenAL32.dll.a.lib | ||
19 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/libOpenAL32.dll.a.lib | ||
20 | ) | ||
21 | |||
22 | elseif (DARWIN) | ||
23 | # Look for for system's OpenAL.framework | ||
24 | # Nemu: This code has never looked for the system's OpenAL.framework | ||
25 | # Nemu: should it? | ||
26 | set(OPENAL_LIB ${ARCH_PREBUILT_DIRS_RELEASE}/libopenal.1.dylib) | ||
27 | else (WINDOWS) | ||
28 | set(OPENAL_LIB openal) | ||
29 | endif (WINDOWS) | ||
30 | |||
31 | if (NOT OPENAL_LIB) | ||
32 | message(FATAL_ERROR "OpenAL not found!") | ||
33 | else (NOT OPENAL_LIB) | ||
34 | # message(STATUS "OpenAL found: ${OPENAL_LIB}") | ||
35 | endif (NOT OPENAL_LIB) | ||
36 | |||
37 | |||
38 | |||
39 | # OPENAL_INCLUDE_DIR | ||
40 | |||
41 | if (DARWIN) | ||
42 | set(OPENAL_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/AL) | ||
43 | else (DARWIN) | ||
44 | find_path(OPENAL_INCLUDE_DIR | ||
45 | NAMES al.h | ||
46 | PATHS ${LIBS_PREBUILT_DIR}/include/AL | ||
47 | ) | ||
48 | endif (DARWIN) | ||
49 | |||
50 | if (NOT OPENAL_INCLUDE_DIR) | ||
51 | message(FATAL_ERROR "al.h not found!") | ||
52 | else (NOT OPENAL_INCLUDE_DIR) | ||
53 | # message(STATUS "al.h found in: ${OPENAL_INCLUDE_DIR}") | ||
54 | endif (NOT OPENAL_INCLUDE_DIR) | ||
55 | |||
56 | |||
57 | |||
58 | # ALUT_LIB | ||
59 | |||
60 | if (WINDOWS) | ||
61 | set(ALUT_LIB | ||
62 | optimized ${ARCH_PREBUILT_DIRS_RELEASE}/alut.lib | ||
63 | debug ${ARCH_PREBUILT_DIRS_DEBUG}/alut.lib | ||
64 | ) | ||
65 | elseif (DARWIN) | ||
66 | find_library( ALUT_LIB | ||
67 | NAMES alut.0 | ||
68 | PATHS ${ARCH_PREBUILT_DIRS_RELEASE} | ||
69 | NO_DEFAULT_PATH | ||
70 | ) | ||
71 | else (WINDOWS) | ||
72 | set(ALUT_LIB alut) | ||
73 | endif (WINDOWS) | ||
74 | |||
75 | if (NOT ALUT_LIB) | ||
76 | message(FATAL_ERROR "ALUT not found!") | ||
77 | else (NOT ALUT_LIB) | ||
78 | # message(STATUS "ALUT found: ${ALUT_LIB}") | ||
79 | endif (NOT ALUT_LIB) | ||
80 | |||
81 | |||
82 | |||
83 | # ALUT_INCLUDE_DIR | ||
84 | |||
85 | find_path(ALUT_INCLUDE_DIR | ||
86 | NAMES alut.h | ||
87 | PATHS ${OPENAL_INCLUDE_DIR} | ||
88 | ) | ||
89 | |||
90 | if (NOT ALUT_INCLUDE_DIR) | ||
91 | message(FATAL_ERROR "alut.h not found!") | ||
92 | else (NOT ALUT_INCLUDE_DIR) | ||
93 | # message(STATUS "alut.h found in: ${ALUT_INCLUDE_DIR}") | ||
94 | endif (NOT ALUT_INCLUDE_DIR) | ||
95 | |||
96 | |||
97 | |||
98 | set(OPENAL_LIBRARIES | 20 | set(OPENAL_LIBRARIES |
99 | ${OPENAL_LIB} | 21 | openal |
100 | ${ALUT_LIB} | 22 | alut |
101 | ) | ||
102 | |||
103 | set(OPENAL_INCLUDE_DIRS | ||
104 | ${OPENAL_INCLUDE_DIR} | ||
105 | ${ALUT_INCLUDE_DIR} | ||
106 | ) | ||
107 | |||
108 | |||
109 | set(OPENAL_FOUND TRUE CACHE BOOL | ||
110 | "Found OpenAL and ALUT libraries successfully" | ||
111 | ) | 23 | ) |
24 | endif (OPENAL) | ||
112 | 25 | ||
26 | if (OPENAL) | ||
27 | message(STATUS "Building with OpenAL audio support") | ||
113 | endif (OPENAL) | 28 | endif (OPENAL) |
diff --git a/linden/indra/llmedia/CMakeLists.txt b/linden/indra/llmedia/CMakeLists.txt index c7b5cd1..f3c8e30 100644 --- a/linden/indra/llmedia/CMakeLists.txt +++ b/linden/indra/llmedia/CMakeLists.txt | |||
@@ -15,6 +15,7 @@ include(Mozlib) | |||
15 | include_directories( | 15 | include_directories( |
16 | ${GSTREAMER_INCLUDE_DIRS} | 16 | ${GSTREAMER_INCLUDE_DIRS} |
17 | ${GSTREAMER_PLUGINS_BASE_INCLUDE_DIRS} | 17 | ${GSTREAMER_PLUGINS_BASE_INCLUDE_DIRS} |
18 | ${GSTREAMER_VIDEO_INCLUDE_DIRS} | ||
18 | ${LLAUDIO_INCLUDE_DIRS} | 19 | ${LLAUDIO_INCLUDE_DIRS} |
19 | ${LLCOMMON_INCLUDE_DIRS} | 20 | ${LLCOMMON_INCLUDE_DIRS} |
20 | ${LLIMAGE_INCLUDE_DIRS} | 21 | ${LLIMAGE_INCLUDE_DIRS} |
@@ -75,5 +76,6 @@ target_link_libraries( | |||
75 | llmedia | 76 | llmedia |
76 | ${GSTREAMER_LIBRARIES} | 77 | ${GSTREAMER_LIBRARIES} |
77 | ${GSTREAMER_PLUGINS_BASE_LIBRARIES} | 78 | ${GSTREAMER_PLUGINS_BASE_LIBRARIES} |
79 | ${GSTREAMER_VIDEO_LIBRARIES} | ||
78 | ${QUICKTIME_LIBRARY} | 80 | ${QUICKTIME_LIBRARY} |
79 | ) | 81 | ) |