-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
242 lines (167 loc) · 10.8 KB
/
Makefile
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# every thing is relative to where we are
export OMXROOT=$(shell /bin/pwd)
all::
# pull in the master "inherited" definitions
include $(OMXROOT)/Master.mk
subcomp=\
target=$(3:$(1).%=%); export target; \
if [ "$$target" = "$(3)" -o "$$target" = "%" ] ; then target=all; fi; \
for i in $(2); do \
(\
if [ ! -d $$i ]; then continue; fi; \
cd $$i; \
$(MAKE) $$target; \
); \
result=$$?; \
if [ $$result -ne 0 ] ; then exit $$result; fi; \
done; \
exit $$result
DIRS= \
system/src/openmax_il \
audio/src/openmax_il
ifdef INST2
DIRS+= utilities/src/inst2
endif
$(BASETARGETS)::
@$(call traverse_dirs,$(DIRS),$@)
ifdef OMX_PERF_INSTRUMENTATION
perf perf.%:
$(call subcomp,perf,system/src/openmax_il/perf,$@)
else
perf perf.%:
endif
ifdef INST2
inst2 inst2.%:
$(call subcomp,inst2,utilities/src/inst2,$@)
else
inst2 inst2.%:
endif
common common.%:
$(call subcomp,common,system/src/openmax_il/common,$@)
core core.%: perf.% common.%
$(call subcomp,core,system/src/openmax_il/omx_core,$@)
lcml lcml.%: core.%
@$(call subcomp,lcml,system/src/openmax_il/lcml,$@)
resource_activity_monitor resource_activity_monitor.%: core.%
@$(call subcomp,resource_activity_monitor,system/src/openmax_il/resource_manager/resource_activity_monitor,$@)
modem_app modem_app.%: core.%
@$(call subcomp,modem_app,system/src/openmax_il/modem_app,$@)
clock clock.%: core.%
@$(call subcomp,clock,system/src/openmax_il/clock_source,$@)
audio_manager audio_manager.%: core.%
@$(call subcomp,audio_manager,system/src/openmax_il/audio_manager,$@)
resource_manager_proxy resource_manager_proxy.%: core.%
@$(call subcomp,resource_manager_proxy,system/src/openmax_il/resource_manager_proxy,$@)
resource_manager resource_manager.%: core.% resource_activity_monitor.% omx_policy_manager.%
@$(call subcomp,resource_manager,system/src/openmax_il/resource_manager,$@)
omx_policy_manager omx_policy_manager.%: core.%
@$(call subcomp,omx_policy_manager,system/src/openmax_il/omx_policy_manager,$@)
mm_osal mm_osal.%: core.%
$(call subcomp,mm_osal,system/src/openmax_il/mm_osal,$@)
omx_base omx_base.%: core.% mm_osal.% lcml.%
$(call subcomp,omx_base,system/src/openmax_il/omx_base,$@)
jpeg_dec jpeg_dec.%: core.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,jpeg_dec,image/src/openmax_il/jpeg_dec,$@)
jpeg_enc jpeg_enc.%: core.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,jpeg_enc,image/src/openmax_il/jpeg_enc,$@)
camera_algo camera_algo.%:
@$(call subcomp,camera_algo,../algo/make/linux,$@)
camera_algo_frmwk camera_algo_frmwk.%: camera_algo.%
@$(call subcomp,camera_algo_frmwk,mm_isp,$@)
camera camera.%: core.% resource_manager_proxy.% resource_manager.% lcml.% clock.% post_processor.% camera_algo_frmwk.%
@$(call subcomp,camera,video/src/openmax_il/camera,$@)
post_processor post_processor.%: core.% resource_manager_proxy.% resource_manager.% lcml.% clock.%
@$(call subcomp,post_processor,video/src/openmax_il/post_processor,$@)
video_decode video_decode.%: core.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,video_decode,video/src/openmax_il/video_decode,$@)
video_encode video_encode.%: core.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,video_encode,video/src/openmax_il/video_encode,$@)
prepost_processor prepost_processor.%: core.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,prepost_processor,video/src/openmax_il/prepost_processor,$@)
audio_decode audio_decode.%: core.% omx_base.% lcml.%
$(call subcomp,audio_decode,audio/src/openmax_il/audio_decode,$@)
g729_dec g729_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,g729_dec,audio/src/openmax_il/g729_dec,$@)
g729_enc g729_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,g729_enc,audio/src/openmax_il/g729_enc,$@)
g711_enc g711_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,g711_enc,audio/src/openmax_il/g711_enc,$@)
g711_dec g711_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,g711_dec,audio/src/openmax_il/g711_dec,$@)
g723_dec g723_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,g723_dec,audio/src/openmax_il/g723_dec,$@)
g723_enc g723_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,g723_enc,audio/src/openmax_il/g723_enc,$@)
g726_dec g726_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,g726_dec,audio/src/openmax_il/g726_dec,$@)
g726_enc g726_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,g726_enc,audio/src/openmax_il/g726_enc,$@)
gsmfr_dec gsmfr_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,gsmfr_dec,audio/src/openmax_il/gsmfr_dec,$@)
gsmfr_enc gsmfr_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,gsmfr_enc,audio/src/openmax_il/gsmfr_enc,$@)
gsmhr_dec gsmhr_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,gsmhr_dec,audio/src/openmax_il/gsmhr_dec,$@)
gsmhr_enc gsmhr_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,gsmhr_enc,audio/src/openmax_il/gsmhr_enc,$@)
pcm_enc pcm_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,pcm_enc,audio/src/openmax_il/pcm_enc,$@)
pcm_dec pcm_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,pcm_dec,audio/src/openmax_il/pcm_dec,$@)
nbamr_dec nbamr_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,nbamr_dec,audio/src/openmax_il/nbamr_dec,$@)
nbamr_enc nbamr_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,nbamr_enc,audio/src/openmax_il/nbamr_enc,$@)
ilbc_dec ilbc_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,ilbc_dec,audio/src/openmax_il/ilbc_dec,$@)
ilbc_enc ilbc_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,ilbc_enc,audio/src/openmax_il/ilbc_enc,$@)
imaadpcm_dec imaadpcm_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,imaadpcm_dec,audio/src/openmax_il/imaadpcm_dec,$@)
imaadpcm_enc imaadpcm_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,imaadpcm_enc,audio/src/openmax_il/imaadpcm_enc,$@)
mp3_dec mp3_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,mp3_dec,audio/src/openmax_il/mp3_dec,$@)
aac_dec aac_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,aac_dec,audio/src/openmax_il/aac_dec,$@)
aac_enc aac_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,aac_enc,audio/src/openmax_il/aac_enc,$@)
armaac_enc armaac_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,armaac_enc,audio/src/openmax_il/armaac_enc,$@)
armaac_dec armaac_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,armaac_dec,audio/src/openmax_il/armaac_dec,$@)
wbamr_enc wbamr_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,wbamr_enc,audio/src/openmax_il/wbamr_enc,$@)
wbamr_dec wbamr_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,wbamr_dec,audio/src/openmax_il/wbamr_dec,$@)
wma_dec wma_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,wma_dec,audio/src/openmax_il/wma_dec,$@)
g722_enc g722_enc.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,g722_enc,audio/src/openmax_il/g722_enc,$@)
g722_dec g722_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.%
@$(call subcomp,g722_dec,audio/src/openmax_il/g722_dec,$@)
audio_docs audio_docs.%:
$(call subcomp,audio_docs,audio/docs/release/unit_test/23.x,$@)
video_docs video_docs.%:
$(call subcomp,video_docs,video/docs/release/unit_test/23.x,$@)
docs docs.%: audio_docs.% video_docs.%
video_capture video_capture.%: core.% resource_manager_proxy.% resource_manager.% lcml.% camera.% video_encode.%
@$(call subcomp,video_capture,application/src/openmax_il/video_capture,$@)
image_display image_display.%: core.% resource_manager_proxy.% resource_manager.% lcml.% jpeg_dec.% post_processor.% prepost_processor.% video_decode.%
@$(call subcomp,image_display,application/src/openmax_il/image_display,$@)
image_capture image_capture.%: core.% resource_manager_proxy.% resource_manager.% lcml.% camera.% jpeg_enc.% post_processor.% prepost_processor.% video_encode.%
@$(call subcomp,image_capture,application/src/openmax_il/image_capture,$@)
video_display video_display.%: core.% resource_manager_proxy.% resource_manager.% lcml.% video_decode.% post_processor.%
@$(call subcomp,video_display,application/src/openmax_il/video_display,$@)
avplay avplay.%: core.% resource_manager_proxy.% resource_manager.% lcml.% video_decode.% post_processor.% nbamr_dec.% aac_dec.% wbamr_dec.% wma_dec.% rv_decode.% ragecko_dec.%
@$(call subcomp,avplay,application/src/openmax_il/avplay,$@)
avrecord avrecord.%: core.% resource_manager_proxy.% resource_manager.% lcml.% camera.% video_encode.% nbamr_enc.% aac_enc.% wbamr_enc.%
@$(call subcomp,avrecord,application/src/openmax_il/avrecord,$@)
rm_parser rm_parser.%: core.%
@$(call subcomp,rm_parser,video/src/openmax_il/rm_parser,$@)
rm_rvparser rm_rvparser.%:
@$(call subcomp,rm_rvparser,video/src/openmax_il/rm_rvparser,$@)
rv_decode rv_decode.%: core.% resource_manager_proxy.% resource_manager.% lcml.% rm_parser.% rm_rvparser.%
@$(call subcomp,rv_decode,video/src/openmax_il/rv_decode,$@)
ragecko_dec ragecko_dec.%: core.% audio_manager.% resource_manager_proxy.% resource_manager.% lcml.% rm_parser.%
@$(call subcomp,ragecko_dec ,audio/src/openmax_il/ragecko_dec,$@)