diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llmedia/CMakeLists.txt | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-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.txt | 94 |
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 | |||
3 | project(llmedia) | ||
4 | |||
5 | include(00-Common) | ||
6 | include(LLAudio) | ||
7 | include(LLCommon) | ||
8 | include(LLImage) | ||
9 | include(LLMath) | ||
10 | include(LLMedia) | ||
11 | include(LLMessage) | ||
12 | include(LLWindow) | ||
13 | include(Mozlib) | ||
14 | |||
15 | include_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 | |||
26 | set(llmedia_SOURCE_FILES | ||
27 | llmediaimplcommon.cpp | ||
28 | llmediaimplexample1.cpp | ||
29 | llmediaimplexample2.cpp | ||
30 | llmediaimplfactory.cpp | ||
31 | llmediamanager.cpp | ||
32 | ) | ||
33 | |||
34 | set(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 | |||
48 | if (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]") | ||
68 | endif (GSTREAMER) | ||
69 | |||
70 | if (MOZLIB) | ||
71 | list(APPEND llmedia_SOURCE_FILES llmediaimplllmozlib.cpp) | ||
72 | |||
73 | list(APPEND llmedia_HEADER_FILES llmediaimplllmozlib.h) | ||
74 | endif (MOZLIB) | ||
75 | |||
76 | if (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) | ||
87 | endif (QUICKTIME) | ||
88 | |||
89 | set_source_files_properties(${llmedia_HEADER_FILES} | ||
90 | PROPERTIES HEADER_FILE_ONLY TRUE) | ||
91 | |||
92 | list(APPEND llmedia_SOURCE_FILES ${llmedia_HEADER_FILES}) | ||
93 | |||
94 | add_library (llmedia ${llmedia_SOURCE_FILES}) | ||