From 798d367d54a6c6379ad355bd8345fa40e31e7fe9 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Sat, 6 Sep 2008 18:24:57 -0500 Subject: Second Life viewer sources 1.21.0-RC --- linden/indra/llmedia/CMakeLists.txt | 94 +++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 linden/indra/llmedia/CMakeLists.txt (limited to 'linden/indra/llmedia/CMakeLists.txt') 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 @@ +# -*- cmake -*- + +project(llmedia) + +include(00-Common) +include(LLAudio) +include(LLCommon) +include(LLImage) +include(LLMath) +include(LLMedia) +include(LLMessage) +include(LLWindow) +include(Mozlib) + +include_directories( + ${GSTREAMER_INCLUDE_DIRS} + ${GSTREAMER_PLUGINS_BASE_INCLUDE_DIRS} + ${LLAUDIO_INCLUDE_DIRS} + ${LLCOMMON_INCLUDE_DIRS} + ${LLIMAGE_INCLUDE_DIRS} + ${LLMATH_INCLUDE_DIRS} + ${LLMESSAGE_INCLUDE_DIRS} + ${LLWINDOW_INCLUDE_DIRS} + ) + +set(llmedia_SOURCE_FILES + llmediaimplcommon.cpp + llmediaimplexample1.cpp + llmediaimplexample2.cpp + llmediaimplfactory.cpp + llmediamanager.cpp + ) + +set(llmedia_HEADER_FILES + CMakeLists.txt + + llmediabase.h + llmediaemitter.h + llmediaimplcommon.h + llmediaimplexample1.h + llmediaimplexample2.h + llmediaimplfactory.h + llmediaimplregister.h + llmediamanager.h + llmediaobserver.h + ) + +if (GSTREAMER) + list(APPEND llmedia_SOURCE_FILES + llmediaimplgstreamer.cpp + llmediaimplgstreamer_syms.cpp + llmediaimplgstreamervidplug.cpp + ) + + list(APPEND llmedia_HEADER_FILES + llmediaimplgstreamer.h + llmediaimplgstreamervidplug.h + llmediaimplgstreamer_syms.h + ) + + # Work around a bad interaction between broken gstreamer headers and + # g++ 4.3's increased strictness. + + if (${CXX_VERSION} MATCHES "4.[23]") + set_source_files_properties(llmediaimplgstreamervidplug.cpp PROPERTIES + COMPILE_FLAGS -Wno-error=write-strings) + endif (${CXX_VERSION} MATCHES "4.[23]") +endif (GSTREAMER) + +if (MOZLIB) + list(APPEND llmedia_SOURCE_FILES llmediaimplllmozlib.cpp) + + list(APPEND llmedia_HEADER_FILES llmediaimplllmozlib.h) +endif (MOZLIB) + +if (QUICKTIME) + list(APPEND llmedia_SOURCE_FILES llmediaimplquicktime.cpp) + list(APPEND llmedia_HEADER_FILES llmediaimplquicktime.h) + + # We use a bunch of deprecated system APIs. + if (DARWIN) + set_source_files_properties( + llmediaimplquicktime.cpp PROPERTIES + COMPILE_FLAGS -Wno-deprecated-declarations + ) + endif (DARWIN) +endif (QUICKTIME) + +set_source_files_properties(${llmedia_HEADER_FILES} + PROPERTIES HEADER_FILE_ONLY TRUE) + +list(APPEND llmedia_SOURCE_FILES ${llmedia_HEADER_FILES}) + +add_library (llmedia ${llmedia_SOURCE_FILES}) -- cgit v1.1