diff options
Diffstat (limited to 'linden/indra/cmake/GStreamer010Plugin.cmake')
-rw-r--r-- | linden/indra/cmake/GStreamer010Plugin.cmake | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/linden/indra/cmake/GStreamer010Plugin.cmake b/linden/indra/cmake/GStreamer010Plugin.cmake index 78ffd94..cafcd4c 100644 --- a/linden/indra/cmake/GStreamer010Plugin.cmake +++ b/linden/indra/cmake/GStreamer010Plugin.cmake | |||
@@ -6,7 +6,8 @@ if (STANDALONE) | |||
6 | 6 | ||
7 | pkg_check_modules(GSTREAMER010 REQUIRED gstreamer-0.10) | 7 | pkg_check_modules(GSTREAMER010 REQUIRED gstreamer-0.10) |
8 | pkg_check_modules(GSTREAMER010_PLUGINS_BASE REQUIRED gstreamer-plugins-base-0.10) | 8 | pkg_check_modules(GSTREAMER010_PLUGINS_BASE REQUIRED gstreamer-plugins-base-0.10) |
9 | elseif (LINUX) | 9 | endif (STANDALONE) |
10 | |||
10 | use_prebuilt_binary(gstreamer) | 11 | use_prebuilt_binary(gstreamer) |
11 | # possible libxml should have its own .cmake file instead | 12 | # possible libxml should have its own .cmake file instead |
12 | use_prebuilt_binary(libxml) | 13 | use_prebuilt_binary(libxml) |
@@ -17,6 +18,21 @@ elseif (LINUX) | |||
17 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 | 18 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 |
18 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 | 19 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 |
19 | ) | 20 | ) |
21 | |||
22 | if (WINDOWS) | ||
23 | # We don't need to explicitly link against gstreamer itself, because | ||
24 | # LLMediaImplGStreamer probes for the system's copy at runtime. | ||
25 | set(GSTREAMER010_LIBRARIES | ||
26 | libgstvideo | ||
27 | libgstaudio | ||
28 | libgstbase-0.10 | ||
29 | libgstreamer-0.10 | ||
30 | gobject-2.0 | ||
31 | gmodule-2.0 | ||
32 | gthread-2.0 | ||
33 | glib-2.0 | ||
34 | ) | ||
35 | else (WINDOWS) | ||
20 | # We don't need to explicitly link against gstreamer itself, because | 36 | # We don't need to explicitly link against gstreamer itself, because |
21 | # LLMediaImplGStreamer probes for the system's copy at runtime. | 37 | # LLMediaImplGStreamer probes for the system's copy at runtime. |
22 | set(GSTREAMER010_LIBRARIES | 38 | set(GSTREAMER010_LIBRARIES |
@@ -31,13 +47,16 @@ elseif (LINUX) | |||
31 | rt | 47 | rt |
32 | glib-2.0 | 48 | glib-2.0 |
33 | ) | 49 | ) |
34 | endif (STANDALONE) | 50 | |
51 | |||
52 | endif (WINDOWS) | ||
53 | |||
35 | 54 | ||
36 | if (GSTREAMER010_FOUND AND GSTREAMER010_PLUGINS_BASE_FOUND) | 55 | if (GSTREAMER010_FOUND AND GSTREAMER010_PLUGINS_BASE_FOUND) |
37 | set(GSTREAMER010 ON CACHE BOOL "Build with GStreamer-0.10 streaming media support.") | 56 | set(GSTREAMER010 ON CACHE BOOL "Build with GStreamer-0.10 streaming media support.") |
57 | add_definitions(-DLL_GSTREAMER010_ENABLED=1) | ||
38 | endif (GSTREAMER010_FOUND AND GSTREAMER010_PLUGINS_BASE_FOUND) | 58 | endif (GSTREAMER010_FOUND AND GSTREAMER010_PLUGINS_BASE_FOUND) |
39 | 59 | ||
40 | if (GSTREAMER010) | 60 | |
41 | add_definitions(-DLL_GSTREAMER010_ENABLED=1) | 61 | |
42 | endif (GSTREAMER010) | ||
43 | 62 | ||