1
1
ngx_addon_name=ngx_http_vod_module
2
2
ngx_module_incs=
3
3
ngx_module_libs=
4
+ VOD_SRCS=
5
+ VOD_DEPS=
4
6
5
7
# version
6
8
#
36
38
37
39
# openssl evp
38
40
#
41
+ VOD_FEATURE_SRCS=" \
42
+ $ngx_addon_dir/vod/dash/edash_packager.c \
43
+ $ngx_addon_dir/vod/hls/aes_cbc_encrypt.c \
44
+ $ngx_addon_dir/vod/hls/eac3_encrypt_filter.c \
45
+ $ngx_addon_dir/vod/hls/frame_encrypt_filter.c \
46
+ $ngx_addon_dir/vod/hls/sample_aes_avc_filter.c \
47
+ $ngx_addon_dir/vod/mp4/mp4_aes_ctr.c \
48
+ $ngx_addon_dir/vod/mp4/mp4_cbcs_encrypt.c \
49
+ $ngx_addon_dir/vod/mp4/mp4_cenc_decrypt.c \
50
+ $ngx_addon_dir/vod/mp4/mp4_cenc_encrypt.c \
51
+ $ngx_addon_dir/vod/mp4/mp4_cenc_passthrough.c \
52
+ $ngx_addon_dir/vod/mss/mss_playready.c \
53
+ "
54
+
55
+ VOD_FEATURE_DEPS=" \
56
+ $ngx_addon_dir/vod/dash/edash_packager.h \
57
+ $ngx_addon_dir/vod/hls/aes_cbc_encrypt.h \
58
+ $ngx_addon_dir/vod/hls/eac3_encrypt_filter.h \
59
+ $ngx_addon_dir/vod/hls/frame_encrypt_filter.h \
60
+ $ngx_addon_dir/vod/hls/sample_aes_avc_filter.h \
61
+ $ngx_addon_dir/vod/mp4/mp4_aes_ctr.h \
62
+ $ngx_addon_dir/vod/mp4/mp4_cbcs_encrypt.h \
63
+ $ngx_addon_dir/vod/mp4/mp4_cenc_decrypt.h \
64
+ $ngx_addon_dir/vod/mp4/mp4_cenc_encrypt.h \
65
+ $ngx_addon_dir/vod/mp4/mp4_cenc_passthrough.h \
66
+ $ngx_addon_dir/vod/mss/mss_playready.h \
67
+ "
68
+
39
69
if [ $OPENSSL = NONE ]; then
40
70
LIB_CRYPTO=${LIB_CRYPTO:--lcrypto}
41
71
LIB_PTHREAD=${LIB_PTHREAD:--lpthread}
@@ -51,8 +81,12 @@ if [ $OPENSSL = NONE ]; then
51
81
52
82
if [ $ngx_found = yes ]; then
53
83
ngx_module_libs="$ngx_module_libs $ngx_feature_libs"
84
+ VOD_SRCS="$VOD_SRCS $VOD_FEATURE_SRCS"
85
+ VOD_DEPS="$VOD_DEPS $VOD_FEATURE_DEPS"
54
86
fi
55
87
else
88
+ VOD_SRCS="$VOD_SRCS $VOD_FEATURE_SRCS"
89
+ VOD_DEPS="$VOD_DEPS $VOD_FEATURE_DEPS"
56
90
cat << END >> $NGX_AUTO_CONFIG_H
57
91
58
92
#ifndef NGX_HAVE_OPENSSL_EVP
@@ -111,6 +145,30 @@ ngx_feature_test="avcodec_send_packet(NULL, NULL)"
111
145
112
146
if [ $ngx_found = yes ]; then
113
147
ngx_module_libs="$ngx_module_libs $LIB_AV_CODEC $LIB_AV_UTIL -lm"
148
+ VOD_FEATURE_SRCS=" \
149
+ $ngx_addon_dir/ngx_http_vod_thumb.c \
150
+ $ngx_addon_dir/ngx_http_vod_volume_map.c \
151
+ $ngx_addon_dir/vod/filters/audio_decoder.c \
152
+ $ngx_addon_dir/vod/filters/audio_encoder.c \
153
+ $ngx_addon_dir/vod/filters/volume_map.c \
154
+ $ngx_addon_dir/vod/thumb/thumb_grabber.c \
155
+ "
156
+
157
+ VOD_FEATURE_DEPS=" \
158
+ $ngx_addon_dir/ngx_http_vod_thumb.h \
159
+ $ngx_addon_dir/ngx_http_vod_thumb_commands.h \
160
+ $ngx_addon_dir/ngx_http_vod_thumb_conf.h \
161
+ $ngx_addon_dir/ngx_http_vod_volume_map.h \
162
+ $ngx_addon_dir/ngx_http_vod_volume_map_commands.h \
163
+ $ngx_addon_dir/ngx_http_vod_volume_map_conf.h \
164
+ $ngx_addon_dir/vod/filters/audio_decoder.h \
165
+ $ngx_addon_dir/vod/filters/audio_encoder.h \
166
+ $ngx_addon_dir/vod/filters/volume_map.h \
167
+ $ngx_addon_dir/vod/thumb/thumb_grabber.h \
168
+ "
169
+
170
+ VOD_SRCS="$VOD_SRCS $VOD_FEATURE_SRCS"
171
+ VOD_DEPS="$VOD_DEPS $VOD_FEATURE_DEPS"
114
172
fi
115
173
116
174
# libswscale
@@ -125,7 +183,7 @@ ngx_feature_test="sws_scale(NULL, NULL, NULL, 0, 0, NULL, NULL)"
125
183
. auto/feature
126
184
127
185
if [ $ngx_found = yes ]; then
128
- ngx_module_libs="$ngx_module_libs -lswscale"
186
+ ngx_module_libs="$ngx_module_libs -lswscale"
129
187
fi
130
188
131
189
# libavfilter
@@ -162,9 +220,18 @@ ngx_feature_test="xmlReadMemory(NULL, 0, NULL, NULL, 0);"
162
220
if [ $ngx_found = yes ]; then
163
221
ngx_module_incs="$ngx_module_incs $ngx_feature_path"
164
222
ngx_module_libs="$ngx_module_libs $ngx_feature_libs"
223
+ VOD_FEATURE_SRCS=" \
224
+ $ngx_addon_dir/vod/subtitle/dfxp_format.c \
225
+ "
226
+ VOD_FEATURE_DEPS=" \
227
+ $ngx_addon_dir/vod/subtitle/dfxp_format.h \
228
+ "
229
+ VOD_SRCS="$VOD_SRCS $VOD_FEATURE_SRCS"
230
+ VOD_DEPS="$VOD_DEPS $VOD_FEATURE_DEPS"
165
231
fi
166
232
167
- VOD_DEPS="$ngx_addon_dir/ngx_async_open_file_cache.h \
233
+ VOD_DEPS="$VOD_DEPS \
234
+ $ngx_addon_dir/ngx_async_open_file_cache.h \
168
235
$ngx_addon_dir/ngx_buffer_cache.h \
169
236
$ngx_addon_dir/ngx_buffer_cache_internal.h \
170
237
$ngx_addon_dir/ngx_child_http_request.h \
@@ -186,13 +253,7 @@ VOD_DEPS="$ngx_addon_dir/ngx_async_open_file_cache.h \
186
253
$ngx_addon_dir/ngx_http_vod_request_parse.h \
187
254
$ngx_addon_dir/ngx_http_vod_status.h \
188
255
$ngx_addon_dir/ngx_http_vod_submodule.h \
189
- $ngx_addon_dir/ngx_http_vod_thumb.h \
190
- $ngx_addon_dir/ngx_http_vod_thumb_commands.h \
191
- $ngx_addon_dir/ngx_http_vod_thumb_conf.h \
192
256
$ngx_addon_dir/ngx_http_vod_utils.h \
193
- $ngx_addon_dir/ngx_http_vod_volume_map.h \
194
- $ngx_addon_dir/ngx_http_vod_volume_map_commands.h \
195
- $ngx_addon_dir/ngx_http_vod_volume_map_conf.h \
196
257
$ngx_addon_dir/ngx_perf_counters.h \
197
258
$ngx_addon_dir/ngx_perf_counters_x.h \
198
259
$ngx_addon_dir/vod/aes_defs.h \
@@ -204,30 +265,23 @@ VOD_DEPS="$ngx_addon_dir/ngx_async_open_file_cache.h \
204
265
$ngx_addon_dir/vod/codec_config.h \
205
266
$ngx_addon_dir/vod/common.h \
206
267
$ngx_addon_dir/vod/dash/dash_packager.h \
207
- $ngx_addon_dir/vod/dash/edash_packager.h \
208
268
$ngx_addon_dir/vod/dynamic_buffer.h \
209
- $ngx_addon_dir/vod/filters/audio_decoder.h \
210
- $ngx_addon_dir/vod/filters/audio_encoder.h \
211
269
$ngx_addon_dir/vod/filters/audio_filter.h \
212
270
$ngx_addon_dir/vod/filters/concat_clip.h \
213
271
$ngx_addon_dir/vod/filters/dynamic_clip.h \
214
272
$ngx_addon_dir/vod/filters/filter.h \
215
273
$ngx_addon_dir/vod/filters/gain_filter.h \
216
274
$ngx_addon_dir/vod/filters/mix_filter.h \
217
275
$ngx_addon_dir/vod/filters/rate_filter.h \
218
- $ngx_addon_dir/vod/filters/volume_map.h \
219
276
$ngx_addon_dir/vod/hds/hds_amf0_encoder.h \
220
277
$ngx_addon_dir/vod/hds/hds_amf0_fields_x.h \
221
278
$ngx_addon_dir/vod/hds/hds_encryption.h \
222
279
$ngx_addon_dir/vod/hds/hds_fragment.h \
223
280
$ngx_addon_dir/vod/hds/hds_manifest.h \
224
281
$ngx_addon_dir/vod/hevc_parser.h \
225
282
$ngx_addon_dir/vod/hls/adts_encoder_filter.h \
226
- $ngx_addon_dir/vod/hls/aes_cbc_encrypt.h \
227
283
$ngx_addon_dir/vod/hls/bit_fields.h \
228
284
$ngx_addon_dir/vod/hls/buffer_filter.h \
229
- $ngx_addon_dir/vod/hls/eac3_encrypt_filter.h \
230
- $ngx_addon_dir/vod/hls/frame_encrypt_filter.h \
231
285
$ngx_addon_dir/vod/hls/frame_joiner_filter.h \
232
286
$ngx_addon_dir/vod/hls/hls_encryption.h \
233
287
$ngx_addon_dir/vod/hls/hls_muxer.h \
@@ -236,7 +290,6 @@ VOD_DEPS="$ngx_addon_dir/ngx_async_open_file_cache.h \
236
290
$ngx_addon_dir/vod/hls/media_filter.h \
237
291
$ngx_addon_dir/vod/hls/mp4_to_annexb_filter.h \
238
292
$ngx_addon_dir/vod/hls/mpegts_encoder_filter.h \
239
- $ngx_addon_dir/vod/hls/sample_aes_avc_filter.h \
240
293
$ngx_addon_dir/vod/input/silence_generator.h \
241
294
$ngx_addon_dir/vod/input/frames_source.h \
242
295
$ngx_addon_dir/vod/input/frames_source_cache.h \
@@ -255,11 +308,6 @@ VOD_DEPS="$ngx_addon_dir/ngx_async_open_file_cache.h \
255
308
$ngx_addon_dir/vod/mkv/mkv_builder.h \
256
309
$ngx_addon_dir/vod/mkv/mkv_defs.h \
257
310
$ngx_addon_dir/vod/mkv/mkv_format.h \
258
- $ngx_addon_dir/vod/mp4/mp4_aes_ctr.h \
259
- $ngx_addon_dir/vod/mp4/mp4_cbcs_encrypt.h \
260
- $ngx_addon_dir/vod/mp4/mp4_cenc_decrypt.h \
261
- $ngx_addon_dir/vod/mp4/mp4_cenc_encrypt.h \
262
- $ngx_addon_dir/vod/mp4/mp4_cenc_passthrough.h \
263
311
$ngx_addon_dir/vod/mp4/mp4_clipper.h \
264
312
$ngx_addon_dir/vod/mp4/mp4_defs.h \
265
313
$ngx_addon_dir/vod/mp4/mp4_format.h \
@@ -270,8 +318,6 @@ VOD_DEPS="$ngx_addon_dir/ngx_async_open_file_cache.h \
270
318
$ngx_addon_dir/vod/mp4/mp4_parser_base.h \
271
319
$ngx_addon_dir/vod/mp4/mp4_write_stream.h \
272
320
$ngx_addon_dir/vod/mss/mss_packager.h \
273
- $ngx_addon_dir/vod/mss/mss_playready.h \
274
- $ngx_addon_dir/vod/thumb/thumb_grabber.h \
275
321
$ngx_addon_dir/vod/subtitle/cap_format.h \
276
322
$ngx_addon_dir/vod/subtitle/dfxp_format.h \
277
323
$ngx_addon_dir/vod/subtitle/subtitle_format.h \
@@ -288,7 +334,8 @@ VOD_DEPS="$ngx_addon_dir/ngx_async_open_file_cache.h \
288
334
$ngx_addon_dir/vod/write_stream.h \
289
335
"
290
336
291
- VOD_SRCS="$ngx_addon_dir/ngx_async_open_file_cache.c \
337
+ VOD_SRCS="$VOD_SRCS \
338
+ $ngx_addon_dir/ngx_async_open_file_cache.c \
292
339
$ngx_addon_dir/ngx_buffer_cache.c \
293
340
$ngx_addon_dir/ngx_child_http_request.c \
294
341
$ngx_addon_dir/ngx_file_reader.c \
@@ -301,44 +348,34 @@ VOD_SRCS="$ngx_addon_dir/ngx_async_open_file_cache.c \
301
348
$ngx_addon_dir/ngx_http_vod_request_parse.c \
302
349
$ngx_addon_dir/ngx_http_vod_status.c \
303
350
$ngx_addon_dir/ngx_http_vod_submodule.c \
304
- $ngx_addon_dir/ngx_http_vod_thumb.c \
305
351
$ngx_addon_dir/ngx_http_vod_utils.c \
306
- $ngx_addon_dir/ngx_http_vod_volume_map.c \
307
352
$ngx_addon_dir/ngx_perf_counters.c \
308
353
$ngx_addon_dir/vod/avc_parser.c \
309
354
$ngx_addon_dir/vod/avc_hevc_parser.c \
310
355
$ngx_addon_dir/vod/buffer_pool.c \
311
356
$ngx_addon_dir/vod/codec_config.c \
312
357
$ngx_addon_dir/vod/common.c \
313
358
$ngx_addon_dir/vod/dash/dash_packager.c \
314
- $ngx_addon_dir/vod/dash/edash_packager.c \
315
359
$ngx_addon_dir/vod/dynamic_buffer.c \
316
- $ngx_addon_dir/vod/filters/audio_decoder.c \
317
- $ngx_addon_dir/vod/filters/audio_encoder.c \
318
360
$ngx_addon_dir/vod/filters/audio_filter.c \
319
361
$ngx_addon_dir/vod/filters/concat_clip.c \
320
362
$ngx_addon_dir/vod/filters/dynamic_clip.c \
321
363
$ngx_addon_dir/vod/filters/filter.c \
322
364
$ngx_addon_dir/vod/filters/gain_filter.c \
323
365
$ngx_addon_dir/vod/filters/mix_filter.c \
324
366
$ngx_addon_dir/vod/filters/rate_filter.c \
325
- $ngx_addon_dir/vod/filters/volume_map.c \
326
367
$ngx_addon_dir/vod/hds/hds_amf0_encoder.c \
327
368
$ngx_addon_dir/vod/hds/hds_fragment.c \
328
369
$ngx_addon_dir/vod/hds/hds_manifest.c \
329
370
$ngx_addon_dir/vod/hevc_parser.c \
330
371
$ngx_addon_dir/vod/hls/adts_encoder_filter.c \
331
- $ngx_addon_dir/vod/hls/aes_cbc_encrypt.c \
332
372
$ngx_addon_dir/vod/hls/buffer_filter.c \
333
- $ngx_addon_dir/vod/hls/eac3_encrypt_filter.c \
334
- $ngx_addon_dir/vod/hls/frame_encrypt_filter.c \
335
373
$ngx_addon_dir/vod/hls/frame_joiner_filter.c \
336
374
$ngx_addon_dir/vod/hls/hls_muxer.c \
337
375
$ngx_addon_dir/vod/hls/id3_encoder_filter.c \
338
376
$ngx_addon_dir/vod/hls/m3u8_builder.c \
339
377
$ngx_addon_dir/vod/hls/mp4_to_annexb_filter.c \
340
378
$ngx_addon_dir/vod/hls/mpegts_encoder_filter.c \
341
- $ngx_addon_dir/vod/hls/sample_aes_avc_filter.c \
342
379
$ngx_addon_dir/vod/input/silence_generator.c \
343
380
$ngx_addon_dir/vod/input/frames_source_cache.c \
344
381
$ngx_addon_dir/vod/input/frames_source_memory.c \
@@ -352,11 +389,6 @@ VOD_SRCS="$ngx_addon_dir/ngx_async_open_file_cache.c \
352
389
$ngx_addon_dir/vod/mkv/mkv_builder.c \
353
390
$ngx_addon_dir/vod/mkv/mkv_defs.c \
354
391
$ngx_addon_dir/vod/mkv/mkv_format.c \
355
- $ngx_addon_dir/vod/mp4/mp4_aes_ctr.c \
356
- $ngx_addon_dir/vod/mp4/mp4_cbcs_encrypt.c \
357
- $ngx_addon_dir/vod/mp4/mp4_cenc_decrypt.c \
358
- $ngx_addon_dir/vod/mp4/mp4_cenc_encrypt.c \
359
- $ngx_addon_dir/vod/mp4/mp4_cenc_passthrough.c \
360
392
$ngx_addon_dir/vod/mp4/mp4_clipper.c \
361
393
$ngx_addon_dir/vod/mp4/mp4_format.c \
362
394
$ngx_addon_dir/vod/mp4/mp4_fragment.c \
@@ -365,10 +397,7 @@ VOD_SRCS="$ngx_addon_dir/ngx_async_open_file_cache.c \
365
397
$ngx_addon_dir/vod/mp4/mp4_parser.c \
366
398
$ngx_addon_dir/vod/mp4/mp4_parser_base.c \
367
399
$ngx_addon_dir/vod/mss/mss_packager.c \
368
- $ngx_addon_dir/vod/mss/mss_playready.c \
369
- $ngx_addon_dir/vod/thumb/thumb_grabber.c \
370
400
$ngx_addon_dir/vod/subtitle/cap_format.c \
371
- $ngx_addon_dir/vod/subtitle/dfxp_format.c \
372
401
$ngx_addon_dir/vod/subtitle/subtitle_format.c \
373
402
$ngx_addon_dir/vod/subtitle/ttml_builder.c \
374
403
$ngx_addon_dir/vod/subtitle/webvtt_builder.c \
0 commit comments