diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/cmake/GStreamer.cmake | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/linden/indra/cmake/GStreamer.cmake b/linden/indra/cmake/GStreamer.cmake deleted file mode 100644 index e8e0d9e..0000000 --- a/linden/indra/cmake/GStreamer.cmake +++ /dev/null | |||
@@ -1,128 +0,0 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Prebuilt) | ||
3 | |||
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 | ||
14 | use_prebuilt_binary(libxml) | ||
15 | use_prebuilt_binary(glib) | ||
16 | |||
17 | set(GSTREAMER_FOUND ON FORCE BOOL) | ||
18 | set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL) | ||
19 | set(GSTREAMER_VIDEO_FOUND ON FORCE BOOL) | ||
20 | |||
21 | use_prebuilt_binary(gstreamer) | ||
22 | use_prebuilt_binary(gstreamer-plugins) | ||
23 | |||
24 | if (WINDOWS) | ||
25 | |||
26 | use_prebuilt_binary(iconv) | ||
27 | set(GSTREAMER_FOUND ON FORCE BOOL) | ||
28 | set(GSTREAMER_INCLUDE_DIRS | ||
29 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib | ||
30 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gio | ||
31 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gobject | ||
32 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 | ||
33 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/iconv | ||
34 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gst | ||
35 | ) | ||
36 | |||
37 | set(GSTREAMER_LIBRARIES | ||
38 | glib-2.0 | ||
39 | gio-2.0 | ||
40 | gmodule-2.0 | ||
41 | gobject-2.0 | ||
42 | gthread-2.0 | ||
43 | libgstvideo.lib | ||
44 | libgsttag.lib | ||
45 | libgstsdp.lib | ||
46 | libgstrtsp.lib | ||
47 | libgstrtp.lib | ||
48 | libgstriff.lib | ||
49 | libgstreamer-0.10.lib | ||
50 | libgstpbutils.lib | ||
51 | libgstnetbuffer.lib | ||
52 | libgstnet-0.10.lib | ||
53 | libgstinterfaces.lib | ||
54 | libgstdshow.lib | ||
55 | libgstdataprotocol-0.10.lib | ||
56 | libgstcontroller-0.10.lib | ||
57 | libgstbase-0.10.lib | ||
58 | libgstaudio.lib | ||
59 | libgstapp.lib | ||
60 | libxml2 | ||
61 | libxml2_a | ||
62 | libxml2_a_dll | ||
63 | iconv | ||
64 | iconv_a | ||
65 | ) | ||
66 | |||
67 | else (WINDOWS) | ||
68 | |||
69 | set(GSTREAMER_INCLUDE_DIRS | ||
70 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/gstreamer-0.10 | ||
71 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 | ||
72 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/glib | ||
73 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0/gobject | ||
74 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 | ||
75 | ) | ||
76 | |||
77 | if (DARWIN) # Mac | ||
78 | |||
79 | use_prebuilt_binary(flac) | ||
80 | use_prebuilt_binary(liboil) | ||
81 | use_prebuilt_binary(neon) | ||
82 | use_prebuilt_binary(theora) | ||
83 | |||
84 | set(GSTREAMER_LIBRARIES | ||
85 | gstvideo-0.10 | ||
86 | gstaudio-0.10 | ||
87 | gstbase-0.10 | ||
88 | gstreamer-0.10 | ||
89 | gobject-2.0 | ||
90 | gmodule-2.0 | ||
91 | gthread-2.0 | ||
92 | glib-2.0 | ||
93 | gio-2.0 | ||
94 | xml2.2 | ||
95 | ) | ||
96 | |||
97 | else (DARWIN) # Linux | ||
98 | |||
99 | use_prebuilt_binary(liboil) | ||
100 | use_prebuilt_binary(theora) | ||
101 | |||
102 | set(GSTREAMER_LIBRARIES | ||
103 | gstvideo-0.10 | ||
104 | gstaudio-0.10 | ||
105 | gstbase-0.10 | ||
106 | gstreamer-0.10 | ||
107 | gobject-2.0 | ||
108 | gmodule-2.0 | ||
109 | dl | ||
110 | gthread-2.0 | ||
111 | rt | ||
112 | glib-2.0 | ||
113 | gio-2.0 | ||
114 | ) | ||
115 | |||
116 | endif (DARWIN) | ||
117 | |||
118 | endif (WINDOWS) | ||
119 | |||
120 | endif (STANDALONE) | ||
121 | |||
122 | if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND) | ||
123 | set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") | ||
124 | endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND) | ||
125 | |||
126 | if (GSTREAMER) | ||
127 | add_definitions(-DLL_GSTREAMER_ENABLED=1) | ||
128 | endif (GSTREAMER) | ||