aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-01-28 13:20:05 -0700
committerMcCabe Maxsted2009-01-28 13:20:05 -0700
commit08f505ce7895f3bbad92484cd2a6050030326e6e (patch)
tree3aac16e7797ac44255997c84751f3d58dad25922 /linden/indra/cmake
parentMerge branch 'scriptcommentfix' into 1.1.0-RC1 (diff)
downloadmeta-impy-08f505ce7895f3bbad92484cd2a6050030326e6e.zip
meta-impy-08f505ce7895f3bbad92484cd2a6050030326e6e.tar.gz
meta-impy-08f505ce7895f3bbad92484cd2a6050030326e6e.tar.bz2
meta-impy-08f505ce7895f3bbad92484cd2a6050030326e6e.tar.xz
Added GStreamer to Cmake
Diffstat (limited to 'linden/indra/cmake')
-rw-r--r--linden/indra/cmake/CopyWinLibs.cmake174
-rw-r--r--linden/indra/cmake/GStreamer.cmake62
2 files changed, 228 insertions, 8 deletions
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake
index 3d70c8f..fdfcb3f 100644
--- a/linden/indra/cmake/CopyWinLibs.cmake
+++ b/linden/indra/cmake/CopyWinLibs.cmake
@@ -6,6 +6,104 @@
6 6
7include(CMakeCopyIfDifferent) 7include(CMakeCopyIfDifferent)
8 8
9set(gst_plugin_debug_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/debug/gstreamer-plugins")
10set(gst_plugin_debug_files
11 libgstadder.dll
12 libgstalaw.dll
13 libgstaudioconvert.dll
14 libgstaudiorate.dll
15 libgstaudioresample.dll
16 libgstaudiotestsrc.dll
17 libgstautodetect.dll
18 libgstavi.dll
19 libgstcutter.dll
20 libgstdecodebin2.dll
21 libgstdecodebin.dll
22 libgstdirectdraw.dll
23 libgstdirectsound.dll
24 libgsteffectv.dll
25 libgstffmpeg.dll
26 libgstffmpegcolorspace.dll
27 libgstgdp.dll
28 libgstjpeg.dll
29 libgstmulaw.dll
30 libgstogg.dll
31 libgstplaybin.dll
32 libgstqtdemux.dll
33 libgstrtp.dll
34 libgstrtsp.dll
35 libgsttheora.dll
36 libgsttypefindfunctions.dll
37 libgstudp.dll
38 libgstvideobalance.dll
39 libgstvideobox.dll
40 libgstvideocrop.dll
41 libgstvideoflip.dll
42 libgstvideomixer.dll
43 libgstvideorate.dll
44 libgstvideoscale.dll
45 libgstvideotestsrc.dll
46 libgstvolume.dll
47 libgstvorbis.dll
48 )
49
50copy_if_different(
51 ${gst_plugin_debug_dir}
52 "${CMAKE_CURRENT_BINARY_DIR}/Debug/lib/gstreamer-plugins"
53 out_targets
54 ${gst_plugin_debug_files}
55 )
56set(all_targets ${all_targets} ${out_targets})
57
58set(gst_plugin_release_dir "${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release/gstreamer-plugins")
59set(gst_plugin_release_files
60 libgstadder.dll
61 libgstalaw.dll
62 libgstaudioconvert.dll
63 libgstaudiorate.dll
64 libgstaudioresample.dll
65 libgstaudiotestsrc.dll
66 libgstautodetect.dll
67 libgstavi.dll
68 libgstcutter.dll
69 libgstdecodebin2.dll
70 libgstdecodebin.dll
71 libgstdirectdraw.dll
72 libgstdirectsound.dll
73 libgsteffectv.dll
74 libgstffmpeg.dll
75 libgstffmpegcolorspace.dll
76 libgstgdp.dll
77 libgstjpeg.dll
78 libgstmulaw.dll
79 libgstogg.dll
80 libgstplaybin.dll
81 libgstqtdemux.dll
82 libgstrtp.dll
83 libgstrtsp.dll
84 libgsttheora.dll
85 libgsttypefindfunctions.dll
86 libgstudp.dll
87 libgstvideobalance.dll
88 libgstvideobox.dll
89 libgstvideocrop.dll
90 libgstvideoflip.dll
91 libgstvideomixer.dll
92 libgstvideorate.dll
93 libgstvideoscale.dll
94 libgstvideotestsrc.dll
95 libgstvolume.dll
96 libgstvorbis.dll
97 )
98
99copy_if_different(
100 ${gst_plugin_release_dir}
101 "${CMAKE_CURRENT_BINARY_DIR}/Release/lib/gstreamer-plugins"
102 out_targets
103 ${gst_plugin_release_files}
104 )
105set(all_targets ${all_targets} ${out_targets})
106
9set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-win32") 107set(vivox_src_dir "${CMAKE_SOURCE_DIR}/newview/vivox-runtime/i686-win32")
10set(vivox_files 108set(vivox_files
11 tntk.dll 109 tntk.dll
@@ -38,6 +136,44 @@ set(debug_files
38 xpcom.dll 136 xpcom.dll
39 xul.dll 137 xul.dll
40 windbgdlg.exe 138 windbgdlg.exe
139 iconv.dll
140 libxml2.dll
141 libgio-2.0-0.dll
142 libglib-2.0-0.dll
143 libgmodule-2.0-0.dll
144 libgobject-2.0-0.dll
145 libgthread-2.0-0.dll
146 avcodec-51.dll
147 avformat-52.dll
148 avutil-49.dll
149 intl.dll
150 libgstapp-0.10.dll
151 libgstaudio-0.10.dll
152 libgstbase-0.10.dll
153 libgstcdda-0.10.dll
154 libgstcontroller-0.10.dll
155 libgstdataprotocol-0.10.dll
156 libgstdshow-0.10.dll
157 libgstfft-0.10.dll
158 libgstinterfaces-0.10.dll
159 libgstnet-0.10.dll
160 libgstnetbuffer-0.10.dll
161 libgstpbutils-0.10.dll
162 libgstreamer-0.10.dll
163 libgstriff-0.10.dll
164 libgstrtp-0.10.dll
165 libgstrtsp-0.10.dll
166 libgstsdp-0.10.dll
167 libgsttag-0.10.dll
168 libgstvideo-0.10.dll
169 libjpeg.dll
170 libmms.dll
171 liboil-0.3-0.dll
172 libpng13.dll
173 xvidcore.dll
174 zlib1.dll
175 ogg.dll
176 vorbis.dll
41 ) 177 )
42 178
43copy_if_different( 179copy_if_different(
@@ -74,6 +210,44 @@ set(release_files
74 ssl3.dll 210 ssl3.dll
75 xpcom.dll 211 xpcom.dll
76 xul.dll 212 xul.dll
213 iconv.dll
214 libxml2.dll
215 libgio-2.0-0.dll
216 libglib-2.0-0.dll
217 libgmodule-2.0-0.dll
218 libgobject-2.0-0.dll
219 libgthread-2.0-0.dll
220 avcodec-51.dll
221 avformat-52.dll
222 avutil-49.dll
223 intl.dll
224 libgstapp-0.10.dll
225 libgstaudio-0.10.dll
226 libgstbase-0.10.dll
227 libgstcdda-0.10.dll
228 libgstcontroller-0.10.dll
229 libgstdataprotocol-0.10.dll
230 libgstdshow-0.10.dll
231 libgstfft-0.10.dll
232 libgstinterfaces-0.10.dll
233 libgstnet-0.10.dll
234 libgstnetbuffer-0.10.dll
235 libgstpbutils-0.10.dll
236 libgstreamer-0.10.dll
237 libgstriff-0.10.dll
238 libgstrtp-0.10.dll
239 libgstrtsp-0.10.dll
240 libgstsdp-0.10.dll
241 libgsttag-0.10.dll
242 libgstvideo-0.10.dll
243 libjpeg.dll
244 libmms.dll
245 liboil-0.3-0.dll
246 libpng13.dll
247 xvidcore.dll
248 zlib1.dll
249 ogg.dll
250 vorbis.dll
77 ) 251 )
78 252
79copy_if_different( 253copy_if_different(
diff --git a/linden/indra/cmake/GStreamer.cmake b/linden/indra/cmake/GStreamer.cmake
index 4369445..fc256a8 100644
--- a/linden/indra/cmake/GStreamer.cmake
+++ b/linden/indra/cmake/GStreamer.cmake
@@ -1,17 +1,61 @@
1# -*- cmake -*- 1# -*- cmake -*-
2include(Prebuilt) 2include(Prebuilt)
3 3
4if (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)
9elseif (LINUX)
10 use_prebuilt_binary(gstreamer)
11 # possible libxml should have its own .cmake file instead 4 # possible libxml should have its own .cmake file instead
12 use_prebuilt_binary(libxml) 5 use_prebuilt_binary(libxml)
13 set(GSTREAMER_FOUND ON FORCE BOOL) 6 set(GSTREAMER_FOUND ON FORCE BOOL)
14 set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL) 7 set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL)
8 use_prebuilt_binary(gstreamer)
9
10if (WINDOWS)
11
12 use_prebuilt_binary(libxml)
13 set(GSTREAMER_FOUND ON FORCE BOOL)
14 set(GSTREAMER_INCLUDE_DIRS
15 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib
16 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gio
17 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gobject
18 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
19 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/iconv
20 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gst
21 )
22
23 set(GSTREAMER_LIBRARIES
24 glib-2.0
25 gio-2.0
26 gmodule-2.0
27 gobject-2.0
28 gthread-2.0
29 libgstvideo-0.10
30 libgsttag-0.10
31 libgstsdp-0.10
32 libgstrtsp-0.10
33 libgstrtp-0.10
34 libgstriff-0.10
35 libgstreamer-0.10
36 libgstpbutils-0.10
37 libgstnetbuffer-0.10
38 libgstnet-0.10
39 libgstinterfaces-0.10
40 libgstdshow-0.10
41 libgstdataprotocol-0.10
42 libgstcontroller-0.10
43 libgstbase-0.10
44 libgstaudio-0.10
45 libgstapp-0.10
46 libxml2
47 libxml2_a
48 libxml2_a_dll
49 iconv
50 iconv_a
51 )
52
53else (WINDOWS)
54
55 include(FindPkgConfig)
56
57 pkg_check_modules(GSTREAMER REQUIRED gstreamer-0.10)
58 pkg_check_modules(GSTREAMER_PLUGINS_BASE REQUIRED gstreamer-plugins-base-0.10)
15 set(GSTREAMER_INCLUDE_DIRS 59 set(GSTREAMER_INCLUDE_DIRS
16 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10 60 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10
17 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 61 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0
@@ -19,6 +63,7 @@ elseif (LINUX)
19 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/gobject 63 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/gobject
20 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 64 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
21 ) 65 )
66
22 # We don't need to explicitly link against gstreamer itself, because 67 # We don't need to explicitly link against gstreamer itself, because
23 # LLMediaImplGStreamer probes for the system's copy at runtime. 68 # LLMediaImplGStreamer probes for the system's copy at runtime.
24 set(GSTREAMER_LIBRARIES 69 set(GSTREAMER_LIBRARIES
@@ -29,7 +74,8 @@ elseif (LINUX)
29 rt 74 rt
30 glib-2.0 75 glib-2.0
31 ) 76 )
32endif (STANDALONE) 77
78endif (WINDOWS)
33 79
34if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND) 80if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND)
35 set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") 81 set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.")