diff options
Diffstat (limited to 'linden/indra/cmake/GStreamer.cmake')
-rw-r--r-- | linden/indra/cmake/GStreamer.cmake | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/linden/indra/cmake/GStreamer.cmake b/linden/indra/cmake/GStreamer.cmake deleted file mode 100644 index 82c417a..0000000 --- a/linden/indra/cmake/GStreamer.cmake +++ /dev/null | |||
@@ -1,127 +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 | xml2.2 | ||
94 | ) | ||
95 | |||
96 | else (DARWIN) # Linux | ||
97 | |||
98 | use_prebuilt_binary(liboil) | ||
99 | use_prebuilt_binary(theora) | ||
100 | |||
101 | set(GSTREAMER_LIBRARIES | ||
102 | gstvideo-0.10 | ||
103 | gstaudio-0.10 | ||
104 | gstbase-0.10 | ||
105 | gstreamer-0.10 | ||
106 | gobject-2.0 | ||
107 | gmodule-2.0 | ||
108 | dl | ||
109 | gthread-2.0 | ||
110 | rt | ||
111 | glib-2.0 | ||
112 | gio-2.0 | ||
113 | ) | ||
114 | |||
115 | endif (DARWIN) | ||
116 | |||
117 | endif (WINDOWS) | ||
118 | |||
119 | endif (STANDALONE) | ||
120 | |||
121 | if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND) | ||
122 | set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") | ||
123 | endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND) | ||
124 | |||
125 | if (GSTREAMER) | ||
126 | add_definitions(-DLL_GSTREAMER_ENABLED=1) | ||
127 | endif (GSTREAMER) | ||