diff options
author | McCabe Maxsted | 2010-10-08 23:00:04 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-10-08 23:00:04 -0700 |
commit | d946bcb0b6f47f8520f456497d0af2e950cc0924 (patch) | |
tree | 4986f5a6d1c16d98fecd3f463a95a0f4e6aaba8c /linden/indra/cmake | |
parent | Changed version to Experimental 2010.10.06-hotfix (diff) | |
parent | Merge branch 'weekly-rebase' into weekly (diff) | |
download | meta-impy-d946bcb0b6f47f8520f456497d0af2e950cc0924.zip meta-impy-d946bcb0b6f47f8520f456497d0af2e950cc0924.tar.gz meta-impy-d946bcb0b6f47f8520f456497d0af2e950cc0924.tar.bz2 meta-impy-d946bcb0b6f47f8520f456497d0af2e950cc0924.tar.xz |
Merge branch 'weekly-next' into weekly
Diffstat (limited to 'linden/indra/cmake')
-rw-r--r-- | linden/indra/cmake/GStreamer.cmake | 18 | ||||
-rw-r--r-- | linden/indra/cmake/LLMedia.cmake | 1 | ||||
-rw-r--r-- | linden/indra/cmake/OPENAL.cmake | 14 |
3 files changed, 28 insertions, 5 deletions
diff --git a/linden/indra/cmake/GStreamer.cmake b/linden/indra/cmake/GStreamer.cmake index f5f9c03..9c5e9f7 100644 --- a/linden/indra/cmake/GStreamer.cmake +++ b/linden/indra/cmake/GStreamer.cmake | |||
@@ -1,12 +1,22 @@ | |||
1 | # -*- cmake -*- | 1 | # -*- cmake -*- |
2 | include(Prebuilt) | 2 | include(Prebuilt) |
3 | 3 | ||
4 | # Maybe libxml and glib should have their own .cmake files | 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 | ||
5 | use_prebuilt_binary(libxml) | 14 | use_prebuilt_binary(libxml) |
6 | use_prebuilt_binary(glib) | 15 | use_prebuilt_binary(glib) |
7 | 16 | ||
8 | set(GSTREAMER_FOUND ON FORCE BOOL) | 17 | set(GSTREAMER_FOUND ON FORCE BOOL) |
9 | set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL) | 18 | set(GSTREAMER_PLUGINS_BASE_FOUND ON FORCE BOOL) |
19 | set(GSTREAMER_VIDEO_FOUND ON FORCE BOOL) | ||
10 | 20 | ||
11 | use_prebuilt_binary(gstreamer) | 21 | use_prebuilt_binary(gstreamer) |
12 | use_prebuilt_binary(gstreamer-plugins) | 22 | use_prebuilt_binary(gstreamer-plugins) |
@@ -105,9 +115,11 @@ else (WINDOWS) | |||
105 | 115 | ||
106 | endif (WINDOWS) | 116 | endif (WINDOWS) |
107 | 117 | ||
108 | if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND) | 118 | endif (STANDALONE) |
119 | |||
120 | if (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND) | ||
109 | set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") | 121 | set(GSTREAMER ON CACHE BOOL "Build with GStreamer streaming media support.") |
110 | endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND) | 122 | endif (GSTREAMER_FOUND AND GSTREAMER_PLUGINS_BASE_FOUND AND GSTREAMER_VIDEO_FOUND) |
111 | 123 | ||
112 | if (GSTREAMER) | 124 | if (GSTREAMER) |
113 | add_definitions(-DLL_GSTREAMER_ENABLED=1) | 125 | add_definitions(-DLL_GSTREAMER_ENABLED=1) |
diff --git a/linden/indra/cmake/LLMedia.cmake b/linden/indra/cmake/LLMedia.cmake index 8a36a69..e7769db 100644 --- a/linden/indra/cmake/LLMedia.cmake +++ b/linden/indra/cmake/LLMedia.cmake | |||
@@ -10,4 +10,5 @@ set(LLMEDIA_LIBRARIES | |||
10 | llmedia | 10 | llmedia |
11 | ${GSTREAMER_LIBRARIES} | 11 | ${GSTREAMER_LIBRARIES} |
12 | ${GSTREAMER_PLUGINS_BASE_LIBRARIES} | 12 | ${GSTREAMER_PLUGINS_BASE_LIBRARIES} |
13 | ${GSTREAMER_VIDEO_LIBRARIES} | ||
13 | ) | 14 | ) |
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake index 4f0e0cc..b9efd57 100644 --- a/linden/indra/cmake/OPENAL.cmake +++ b/linden/indra/cmake/OPENAL.cmake | |||
@@ -2,11 +2,21 @@ | |||
2 | 2 | ||
3 | include(Variables) | 3 | include(Variables) |
4 | include(Linking) | 4 | include(Linking) |
5 | include(FindPkgConfig) | ||
5 | 6 | ||
6 | set(OPENAL ON CACHE BOOL "Enable OpenAL") | 7 | set(OPENAL ON CACHE BOOL "Enable OpenAL") |
7 | 8 | ||
9 | # If STANDALONE but NOT PKG_CONFIG_FOUND we should fail, | ||
10 | # but why try to find it as prebuilt? | ||
11 | if (OPENAL AND STANDALONE AND PKG_CONFIG_FOUND) | ||
8 | 12 | ||
9 | if (OPENAL) | 13 | # This module defines |
14 | # OPENAL_INCLUDE_DIRS | ||
15 | # OPENAL_LIBRARIES | ||
16 | # OPENAL_FOUND | ||
17 | pkg_check_modules(OPENAL REQUIRED freealut) # freealut links with openal. | ||
18 | |||
19 | elseif (OPENAL) | ||
10 | 20 | ||
11 | # message(STATUS "Building with OpenAL audio support") | 21 | # message(STATUS "Building with OpenAL audio support") |
12 | 22 | ||
@@ -110,4 +120,4 @@ if (OPENAL) | |||
110 | "Found OpenAL and ALUT libraries successfully" | 120 | "Found OpenAL and ALUT libraries successfully" |
111 | ) | 121 | ) |
112 | 122 | ||
113 | endif (OPENAL) | 123 | endif (OPENAL AND STANDALONE AND PKG_CONFIG_FOUND) |