diff options
author | Aleric Inglewood | 2010-10-27 22:28:48 +0200 |
---|---|---|
committer | Aleric Inglewood | 2010-10-27 23:13:31 +0200 |
commit | 6f2faa65f9841919566b567d74b258a1c559ec0e (patch) | |
tree | 525ac4f930cfa9980d8d50b1c4b0e8e8629416dc /linden/indra | |
parent | Merge remote branch 'origin/webkit_plugins' into webkit_plugins (diff) | |
download | meta-impy-6f2faa65f9841919566b567d74b258a1c559ec0e.zip meta-impy-6f2faa65f9841919566b567d74b258a1c559ec0e.tar.gz meta-impy-6f2faa65f9841919566b567d74b258a1c559ec0e.tar.bz2 meta-impy-6f2faa65f9841919566b567d74b258a1c559ec0e.tar.xz |
Load prebuilt glib when needed. Don't compile gstreamer plugin on windows.
Also, darwin doesn't use quicktime, so disabled compiling that plugin
for darwin.
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/cmake/DBusGlib.cmake | 1 | ||||
-rw-r--r-- | linden/indra/cmake/GStreamer010Plugin.cmake | 14 | ||||
-rw-r--r-- | linden/indra/cmake/UI.cmake | 3 | ||||
-rwxr-xr-x | linden/indra/media_plugins/CMakeLists.txt | 8 |
4 files changed, 16 insertions, 10 deletions
diff --git a/linden/indra/cmake/DBusGlib.cmake b/linden/indra/cmake/DBusGlib.cmake index dfda0ad..b78a0b1 100644 --- a/linden/indra/cmake/DBusGlib.cmake +++ b/linden/indra/cmake/DBusGlib.cmake | |||
@@ -7,6 +7,7 @@ if (STANDALONE) | |||
7 | pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1) | 7 | pkg_check_modules(DBUSGLIB REQUIRED dbus-glib-1) |
8 | 8 | ||
9 | elseif (LINUX) | 9 | elseif (LINUX) |
10 | use_prebuilt_binary(glib) # dbusglib needs glib | ||
10 | use_prebuilt_binary(dbusglib) | 11 | use_prebuilt_binary(dbusglib) |
11 | set(DBUSGLIB_FOUND ON FORCE BOOL) | 12 | set(DBUSGLIB_FOUND ON FORCE BOOL) |
12 | set(DBUSGLIB_INCLUDE_DIRS | 13 | set(DBUSGLIB_INCLUDE_DIRS |
diff --git a/linden/indra/cmake/GStreamer010Plugin.cmake b/linden/indra/cmake/GStreamer010Plugin.cmake index 878d3c0..90ed35c 100644 --- a/linden/indra/cmake/GStreamer010Plugin.cmake +++ b/linden/indra/cmake/GStreamer010Plugin.cmake | |||
@@ -6,12 +6,13 @@ 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 | endif (STANDALONE) | ||
10 | 9 | ||
11 | if (LINUX) | 10 | else (STANDALONE) |
12 | use_prebuilt_binary(gstreamer) | 11 | |
13 | # possible libxml should have its own .cmake file instead | 12 | # Possibly libxml and glib should have their own .cmake file instead... |
13 | use_prebuilt_binary(glib) # gstreamer needs glib | ||
14 | use_prebuilt_binary(libxml) | 14 | use_prebuilt_binary(libxml) |
15 | use_prebuilt_binary(gstreamer) | ||
15 | set(GSTREAMER010_FOUND ON FORCE BOOL) | 16 | set(GSTREAMER010_FOUND ON FORCE BOOL) |
16 | set(GSTREAMER010_PLUGINS_BASE_FOUND ON FORCE BOOL) | 17 | set(GSTREAMER010_PLUGINS_BASE_FOUND ON FORCE BOOL) |
17 | set(GSTREAMER010_INCLUDE_DIRS | 18 | set(GSTREAMER010_INCLUDE_DIRS |
@@ -19,8 +20,9 @@ if (LINUX) | |||
19 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 | 20 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/glib-2.0 |
20 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 | 21 | ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 |
21 | ) | 22 | ) |
22 | endif (LINUX) | 23 | |
23 | 24 | endif (STANDALONE) | |
25 | |||
24 | if (WINDOWS) | 26 | if (WINDOWS) |
25 | # We don't need to explicitly link against gstreamer itself, because | 27 | # We don't need to explicitly link against gstreamer itself, because |
26 | # LLMediaImplGStreamer probes for the system's copy at runtime. | 28 | # LLMediaImplGStreamer probes for the system's copy at runtime. |
diff --git a/linden/indra/cmake/UI.cmake b/linden/indra/cmake/UI.cmake index 9d068c4..7a02dff 100644 --- a/linden/indra/cmake/UI.cmake +++ b/linden/indra/cmake/UI.cmake | |||
@@ -31,8 +31,9 @@ if (STANDALONE) | |||
31 | add_definitions(${${pkg}_CFLAGS_OTHERS}) | 31 | add_definitions(${${pkg}_CFLAGS_OTHERS}) |
32 | endforeach(pkg) | 32 | endforeach(pkg) |
33 | else (STANDALONE) | 33 | else (STANDALONE) |
34 | use_prebuilt_binary(gtk-etc) | ||
35 | if (LINUX) | 34 | if (LINUX) |
35 | use_prebuilt_binary(glib) # gtk-etc needs glib | ||
36 | use_prebuilt_binary(gtk-etc) | ||
36 | set(UI_LIBRARIES | 37 | set(UI_LIBRARIES |
37 | atk-1.0 | 38 | atk-1.0 |
38 | cairo | 39 | cairo |
diff --git a/linden/indra/media_plugins/CMakeLists.txt b/linden/indra/media_plugins/CMakeLists.txt index cc03d9c..c4f2555 100755 --- a/linden/indra/media_plugins/CMakeLists.txt +++ b/linden/indra/media_plugins/CMakeLists.txt | |||
@@ -4,10 +4,12 @@ add_subdirectory(base) | |||
4 | 4 | ||
5 | add_subdirectory(webkit) | 5 | add_subdirectory(webkit) |
6 | 6 | ||
7 | add_subdirectory(gstreamer010) | 7 | if (LINUX OR DARWIN) |
8 | add_subdirectory(gstreamer010) | ||
9 | endif (LINUX OR DARWIN) | ||
8 | 10 | ||
9 | if (WINDOWS OR DARWIN) | 11 | if (WINDOWS) |
10 | add_subdirectory(quicktime) | 12 | add_subdirectory(quicktime) |
11 | endif (WINDOWS OR DARWIN) | 13 | endif (WINDOWS) |
12 | 14 | ||
13 | add_subdirectory(example) | 15 | add_subdirectory(example) |