aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmedia/CMakeLists.txt
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llmedia/CMakeLists.txt
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llmedia/CMakeLists.txt')
-rw-r--r--linden/indra/llmedia/CMakeLists.txt94
1 files changed, 94 insertions, 0 deletions
diff --git a/linden/indra/llmedia/CMakeLists.txt b/linden/indra/llmedia/CMakeLists.txt
new file mode 100644
index 0000000..8ef8006
--- /dev/null
+++ b/linden/indra/llmedia/CMakeLists.txt
@@ -0,0 +1,94 @@
1# -*- cmake -*-
2
3project(llmedia)
4
5include(00-Common)
6include(LLAudio)
7include(LLCommon)
8include(LLImage)
9include(LLMath)
10include(LLMedia)
11include(LLMessage)
12include(LLWindow)
13include(Mozlib)
14
15include_directories(
16 ${GSTREAMER_INCLUDE_DIRS}
17 ${GSTREAMER_PLUGINS_BASE_INCLUDE_DIRS}
18 ${LLAUDIO_INCLUDE_DIRS}
19 ${LLCOMMON_INCLUDE_DIRS}
20 ${LLIMAGE_INCLUDE_DIRS}
21 ${LLMATH_INCLUDE_DIRS}
22 ${LLMESSAGE_INCLUDE_DIRS}
23 ${LLWINDOW_INCLUDE_DIRS}
24 )
25
26set(llmedia_SOURCE_FILES
27 llmediaimplcommon.cpp
28 llmediaimplexample1.cpp
29 llmediaimplexample2.cpp
30 llmediaimplfactory.cpp
31 llmediamanager.cpp
32 )
33
34set(llmedia_HEADER_FILES
35 CMakeLists.txt
36
37 llmediabase.h
38 llmediaemitter.h
39 llmediaimplcommon.h
40 llmediaimplexample1.h
41 llmediaimplexample2.h
42 llmediaimplfactory.h
43 llmediaimplregister.h
44 llmediamanager.h
45 llmediaobserver.h
46 )
47
48if (GSTREAMER)
49 list(APPEND llmedia_SOURCE_FILES
50 llmediaimplgstreamer.cpp
51 llmediaimplgstreamer_syms.cpp
52 llmediaimplgstreamervidplug.cpp
53 )
54
55 list(APPEND llmedia_HEADER_FILES
56 llmediaimplgstreamer.h
57 llmediaimplgstreamervidplug.h
58 llmediaimplgstreamer_syms.h
59 )
60
61 # Work around a bad interaction between broken gstreamer headers and
62 # g++ 4.3's increased strictness.
63
64 if (${CXX_VERSION} MATCHES "4.[23]")
65 set_source_files_properties(llmediaimplgstreamervidplug.cpp PROPERTIES
66 COMPILE_FLAGS -Wno-error=write-strings)
67 endif (${CXX_VERSION} MATCHES "4.[23]")
68endif (GSTREAMER)
69
70if (MOZLIB)
71 list(APPEND llmedia_SOURCE_FILES llmediaimplllmozlib.cpp)
72
73 list(APPEND llmedia_HEADER_FILES llmediaimplllmozlib.h)
74endif (MOZLIB)
75
76if (QUICKTIME)
77 list(APPEND llmedia_SOURCE_FILES llmediaimplquicktime.cpp)
78 list(APPEND llmedia_HEADER_FILES llmediaimplquicktime.h)
79
80 # We use a bunch of deprecated system APIs.
81 if (DARWIN)
82 set_source_files_properties(
83 llmediaimplquicktime.cpp PROPERTIES
84 COMPILE_FLAGS -Wno-deprecated-declarations
85 )
86 endif (DARWIN)
87endif (QUICKTIME)
88
89set_source_files_properties(${llmedia_HEADER_FILES}
90 PROPERTIES HEADER_FILE_ONLY TRUE)
91
92list(APPEND llmedia_SOURCE_FILES ${llmedia_HEADER_FILES})
93
94add_library (llmedia ${llmedia_SOURCE_FILES})