blob: 0c892f9b44528e05add59ee61f4437e921136f24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# -*- cmake -*-
project(llmedia)
include(00-Common)
include(LLAudio)
include(LLCommon)
include(LLImage)
include(LLMath)
include(LLMedia)
include(LLMessage)
include(LLWindow)
include(Mozlib)
include(QuickTime)
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})
target_link_libraries(
llmedia
${GSTREAMER_LIBRARIES}
${GSTREAMER_PLUGINS_BASE_LIBRARIES}
${QUICKTIME_LIBRARY}
)
|