-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
103 lines (90 loc) · 2.08 KB
/
CMakeLists.txt
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
if (CMAKE_BUILD_TYPE STREQUAL Debug)
add_definitions(
-DDEBUG
)
endif()
include_directories(
.
./foundation
./handler
./handler/av_codec
./handler/av_container
./handler/av_display
./handler/av_sync
./media_info
${SMEDIA_INC_DIRS}
${PROJECT_SOURCE_DIR}/sdk/include/
${PROJECT_SOURCE_DIR}/sdk/include/tscam_ctrl
)
#foundation
FILE(GLOB foundation
foundation/cmd_msg.c
foundation/cmd_msg.h
foundation/list_template.h
foundation/looper.c
foundation/looper.h
foundation/looper_roster.c
foundation/looper_roster.h
foundation/register_template.h
foundation/ring_buffer.c
foundation/ring_buffer.h
foundation/basic_type.h
foundation/handler_desc.h
)
source_group("foundation" FILES ${foundation})
#av_codec
FILE(GLOB av_codec
handler/av_codec/av_codec_desc.h
)
source_group("av_codec" FILES ${av_codec})
#av_container
FILE(GLOB av_container
handler/av_container/av_container_desc.h
)
source_group("av_container" FILES ${av_container})
#av_display
FILE(GLOB av_display
handler/av_display/av_display_desc.h
)
source_group("av_display" FILES ${av_display})
#av_sync
FILE(GLOB av_sync
handler/av_sync/av_sync_desc.h
)
source_group("av_sync" FILES ${av_sync})
#handler
FILE(GLOB handler
handler/handler_mm_a_dec.c
handler/handler_mm_a_dec.h
handler/handler_mm_demux.c
handler/handler_mm_demux.h
handler/handler_mm_v_dec.c
handler/handler_mm_v_dec.h
)
source_group("handler" FILES ${handler})
#media_info
FILE(GLOB media_info
media_info/audio_info.c
media_info/audio_info.h
media_info/video_info.c
media_info/video_info.h
)
source_group("media_info" FILES ${media_info})
add_library(imp STATIC
cmd_router.c
cmd_router.h
info_reply.c
info_reply.h
i_media_player.c
i_media_player.h
media_player_cfg.h
media_player_def.h
media_player_err.h
${foundation}
${av_codec}
${av_container}
${av_display}
${av_sync}
${handler}
${media_info}
)