blob: 911c3281d3a234df969f36d3ce5ae27aed5ffbc0 [file] [log] [blame]
Ashwin Natesanca68f612022-01-04 13:44:43 +05301# src files
2list(
3 APPEND
4 LIBAVCDEC_SRCS
5 "${AVC_ROOT}/decoder/ih264d_api.c"
6 "${AVC_ROOT}/decoder/ih264d_bitstrm.c"
7 "${AVC_ROOT}/decoder/ih264d_cabac.c"
8 "${AVC_ROOT}/decoder/ih264d_cabac_init_tables.c"
9 "${AVC_ROOT}/decoder/ih264d_compute_bs.c"
10 "${AVC_ROOT}/decoder/ih264d_deblocking.c"
11 "${AVC_ROOT}/decoder/ih264d_dpb_mgr.c"
12 "${AVC_ROOT}/decoder/ih264d_format_conv.c"
13 "${AVC_ROOT}/decoder/ih264d_function_selector_generic.c"
14 "${AVC_ROOT}/decoder/ih264d_inter_pred.c"
15 "${AVC_ROOT}/decoder/ih264d_mb_utils.c"
16 "${AVC_ROOT}/decoder/ih264d_mvpred.c"
17 "${AVC_ROOT}/decoder/ih264d_nal.c"
18 "${AVC_ROOT}/decoder/ih264d_parse_bslice.c"
19 "${AVC_ROOT}/decoder/ih264d_parse_cabac.c"
20 "${AVC_ROOT}/decoder/ih264d_parse_cavlc.c"
21 "${AVC_ROOT}/decoder/ih264d_parse_headers.c"
22 "${AVC_ROOT}/decoder/ih264d_parse_islice.c"
23 "${AVC_ROOT}/decoder/ih264d_parse_mb_header.c"
24 "${AVC_ROOT}/decoder/ih264d_parse_pslice.c"
25 "${AVC_ROOT}/decoder/ih264d_parse_slice.c"
26 "${AVC_ROOT}/decoder/ih264d_process_bslice.c"
27 "${AVC_ROOT}/decoder/ih264d_process_intra_mb.c"
28 "${AVC_ROOT}/decoder/ih264d_process_pslice.c"
29 "${AVC_ROOT}/decoder/ih264d_quant_scaling.c"
30 "${AVC_ROOT}/decoder/ih264d_sei.c"
31 "${AVC_ROOT}/decoder/ih264d_tables.c"
32 "${AVC_ROOT}/decoder/ih264d_thread_compute_bs.c"
33 "${AVC_ROOT}/decoder/ih264d_thread_parse_decode.c"
34 "${AVC_ROOT}/decoder/ih264d_utils.c"
35 "${AVC_ROOT}/decoder/ih264d_vui.c")
36
37include_directories(${AVC_ROOT}/decoder)
38
39if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "aarch64" OR "${CMAKE_SYSTEM_PROCESSOR}"
40 STREQUAL "aarch32")
41 list(
42 APPEND LIBAVCDEC_ASMS "${AVC_ROOT}/decoder/arm/ih264d_function_selector.c"
43 "${AVC_ROOT}/decoder/arm/ih264d_function_selector_a9q.c"
44 "${AVC_ROOT}/decoder/arm/ih264d_function_selector_av8.c")
45else()
46 list(
47 APPEND LIBAVCDEC_SRCS "${AVC_ROOT}/decoder/x86/ih264d_function_selector.c"
48 "${AVC_ROOT}/decoder/x86/ih264d_function_selector_sse42.c"
49 "${AVC_ROOT}/decoder/x86/ih264d_function_selector_ssse3.c")
50endif()
51
52add_library(libavcdec STATIC ${LIBAVC_COMMON_SRCS} ${LIBAVC_COMMON_ASMS}
53 ${LIBAVCDEC_SRCS} ${LIBAVCDEC_ASMS})