aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-06 04:41:58 -0500
committerJacek Antonelli2009-04-06 04:41:58 -0500
commit87c760f959788e3ec9dc06cbd2207d0242b6a4c9 (patch)
tree3265d96edbb9aba1eefc2744b03baf037e62402a /linden/indra/cmake
parentConverted BOOLs to bools in llthread. (diff)
parentAdded libgstdecodebin.so plugin to Mac manifest. (diff)
downloadmeta-impy-87c760f959788e3ec9dc06cbd2207d0242b6a4c9.zip
meta-impy-87c760f959788e3ec9dc06cbd2207d0242b6a4c9.tar.gz
meta-impy-87c760f959788e3ec9dc06cbd2207d0242b6a4c9.tar.bz2
meta-impy-87c760f959788e3ec9dc06cbd2207d0242b6a4c9.tar.xz
Merge branch 'mac-1.1.0' into next
Required substantial portability changes to set_gst_plugin_path(). Conflicts: linden/indra/llmedia/llmediaimplgstreamer.cpp
Diffstat (limited to 'linden/indra/cmake')
-rw-r--r--linden/indra/cmake/GStreamer.cmake42
-rw-r--r--linden/indra/cmake/LLMedia.cmake2
-rw-r--r--linden/indra/cmake/OPENAL.cmake36
-rw-r--r--linden/indra/cmake/QuickTime.cmake49
4 files changed, 47 insertions, 82 deletions
diff --git a/linden/indra/cmake/GStreamer.cmake b/linden/indra/cmake/GStreamer.cmake
index 7b380a8..c1bbc57 100644
--- a/linden/indra/cmake/GStreamer.cmake
+++ b/linden/indra/cmake/GStreamer.cmake
@@ -62,18 +62,36 @@ else (WINDOWS)
62 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2 62 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/libxml2
63 ) 63 )
64 64
65 set(GSTREAMER_LIBRARIES 65 if (DARWIN)
66 gstvideo-0.10 66
67 gstaudio-0.10 67 set(GSTREAMER_LIBRARIES
68 gstbase-0.10 68 gstvideo-0.10
69 gstreamer-0.10 69 gstaudio-0.10
70 gobject-2.0 70 gstbase-0.10
71 gmodule-2.0 71 gstreamer-0.10
72 dl 72 gobject-2.0
73 gthread-2.0 73 gmodule-2.0
74 rt 74 gthread-2.0
75 glib-2.0 75 glib-2.0
76 ) 76 xml2
77 )
78
79 else (DARWIN)
80
81 set(GSTREAMER_LIBRARIES
82 gstvideo-0.10
83 gstaudio-0.10
84 gstbase-0.10
85 gstreamer-0.10
86 gobject-2.0
87 gmodule-2.0
88 dl
89 gthread-2.0
90 rt
91 glib-2.0
92 )
93
94 endif (DARWIN)
77 95
78endif (WINDOWS) 96endif (WINDOWS)
79 97
diff --git a/linden/indra/cmake/LLMedia.cmake b/linden/indra/cmake/LLMedia.cmake
index b7bf11c..8a36a69 100644
--- a/linden/indra/cmake/LLMedia.cmake
+++ b/linden/indra/cmake/LLMedia.cmake
@@ -1,7 +1,6 @@
1# -*- cmake -*- 1# -*- cmake -*-
2 2
3include(GStreamer) 3include(GStreamer)
4include(QuickTime)
5 4
6set(LLMEDIA_INCLUDE_DIRS 5set(LLMEDIA_INCLUDE_DIRS
7 ${LIBS_OPEN_DIR}/llmedia 6 ${LIBS_OPEN_DIR}/llmedia
@@ -11,5 +10,4 @@ set(LLMEDIA_LIBRARIES
11 llmedia 10 llmedia
12 ${GSTREAMER_LIBRARIES} 11 ${GSTREAMER_LIBRARIES}
13 ${GSTREAMER_PLUGINS_BASE_LIBRARIES} 12 ${GSTREAMER_PLUGINS_BASE_LIBRARIES}
14 ${QUICKTIME_LIBRARY}
15 ) 13 )
diff --git a/linden/indra/cmake/OPENAL.cmake b/linden/indra/cmake/OPENAL.cmake
index 5e71f66..f06a38e 100644
--- a/linden/indra/cmake/OPENAL.cmake
+++ b/linden/indra/cmake/OPENAL.cmake
@@ -10,16 +10,18 @@ if (OPENAL)
10 # OPENAL_LIB 10 # OPENAL_LIB
11 11
12 if (WINDOWS) 12 if (WINDOWS)
13 find_library(OPENAL_LIB 13 find_library(OPENAL_LIB
14 NAMES openal openal32 OpenAL OpenAL32 wrap_oal 14 NAMES openal32
15 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release 15 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release
16 ) 16 )
17 17 elseif (DARWIN)
18 # Look for for system's OpenAL.framework
19 find_library(OPENAL_LIB
20 NAMES OpenAL openal
21 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
22 )
18 else (WINDOWS) 23 else (WINDOWS)
19 find_library(OPENAL_LIB 24 set(OPENAL_LIB openal)
20 NAMES openal openal32 OpenAL OpenAL32 wrap_oal
21 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
22 )
23 endif (WINDOWS) 25 endif (WINDOWS)
24 26
25 if (NOT OPENAL_LIB) 27 if (NOT OPENAL_LIB)
@@ -34,7 +36,7 @@ if (OPENAL)
34 36
35 find_path(OPENAL_INCLUDE_DIR 37 find_path(OPENAL_INCLUDE_DIR
36 NAMES al.h 38 NAMES al.h
37 PATHS ${LIBS_PREBUILT_DIR}/include/AL /usr/include/AL 39 PATHS ${LIBS_PREBUILT_DIR}/include/AL
38 ) 40 )
39 41
40 if (NOT OPENAL_INCLUDE_DIR) 42 if (NOT OPENAL_INCLUDE_DIR)
@@ -49,15 +51,11 @@ if (OPENAL)
49 51
50 if (WINDOWS) 52 if (WINDOWS)
51 find_library(ALUT_LIB 53 find_library(ALUT_LIB
52 NAMES alut freealut 54 NAMES alut freealut
53 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release 55 PATHS ${CMAKE_SOURCE_DIR}/../libraries/i686-win32/lib/release
54 ) 56 )
55
56 else (WINDOWS) 57 else (WINDOWS)
57 find_library(ALUT_LIB 58 set(ALUT_LIB alut)
58 NAMES alut freealut
59 PATHS ${ARCH_PREBUILT_DIRS_RELEASE}
60 )
61 endif (WINDOWS) 59 endif (WINDOWS)
62 60
63 if (NOT ALUT_LIB) 61 if (NOT ALUT_LIB)
@@ -72,7 +70,7 @@ if (OPENAL)
72 70
73 find_path(ALUT_INCLUDE_DIR 71 find_path(ALUT_INCLUDE_DIR
74 NAMES alut.h 72 NAMES alut.h
75 PATHS ${LIBS_PREBUILT_DIR}/include/AL /usr/include/AL 73 PATHS ${LIBS_PREBUILT_DIR}/include/AL
76 ) 74 )
77 75
78 if (NOT ALUT_INCLUDE_DIR) 76 if (NOT ALUT_INCLUDE_DIR)
diff --git a/linden/indra/cmake/QuickTime.cmake b/linden/indra/cmake/QuickTime.cmake
deleted file mode 100644
index 4352709..0000000
--- a/linden/indra/cmake/QuickTime.cmake
+++ /dev/null
@@ -1,49 +0,0 @@
1# -*- cmake -*-
2
3if(INSTALL_PROPRIETARY)
4 include(Prebuilt)
5 use_prebuilt_binary(quicktime)
6endif(INSTALL_PROPRIETARY)
7
8if (DARWIN)
9 include(CMakeFindFrameworks)
10 find_library(QUICKTIME_LIBRARY QuickTime)
11elseif (WINDOWS)
12 set(QUICKTIME_SDK_DIR "$ENV{PROGRAMFILES}/QuickTime SDK"
13 CACHE PATH "Location of the QuickTime SDK.")
14
15 find_library(DEBUG_QUICKTIME_LIBRARY qtmlclient
16 PATHS
17 ${ARCH_PREBUILT_DIRS_DEBUG}
18 "${QUICKTIME_SDK_DIR}\\libraries"
19 )
20
21 find_library(RELEASE_QUICKTIME_LIBRARY qtmlclient
22 PATHS
23 ${ARCH_PREBUILT_DIRS_RELEASE}
24 "${QUICKTIME_SDK_DIR}\\libraries"
25 )
26
27 if (DEBUG_QUICKTIME_LIBRARY AND RELEASE_QUICKTIME_LIBRARY)
28 set(QUICKTIME_LIBRARY
29 optimized ${RELEASE_QUICKTIME_LIBRARY}
30 debug ${DEBUG_QUICKTIME_LIBRARY}
31 )
32
33 endif (DEBUG_QUICKTIME_LIBRARY AND RELEASE_QUICKTIME_LIBRARY)
34
35 include_directories(
36 ${LIBS_PREBUILT_DIR}/${LL_ARCH_DIR}/include/quicktime
37 "${QUICKTIME_SDK_DIR}\\CIncludes"
38 )
39endif (DARWIN)
40
41mark_as_advanced(QUICKTIME_LIBRARY)
42
43if (QUICKTIME_LIBRARY)
44 set(QUICKTIME ON CACHE BOOL "Build with QuickTime streaming media support.")
45endif (QUICKTIME_LIBRARY)
46
47if (QUICKTIME)
48 add_definitions(-DLL_QUICKTIME_ENABLED=1)
49endif (QUICKTIME)