• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This file is autogenerated, do not edit it directly, edit build/mktargets.py
2# instead. To regenerate files, run build/mktargets.sh.
3
4DECODER_SRCDIR=codec/decoder
5DECODER_CPP_SRCS=\
6	$(DECODER_SRCDIR)/core/src/au_parser.cpp\
7	$(DECODER_SRCDIR)/core/src/bit_stream.cpp\
8	$(DECODER_SRCDIR)/core/src/cabac_decoder.cpp\
9	$(DECODER_SRCDIR)/core/src/deblocking.cpp\
10	$(DECODER_SRCDIR)/core/src/decode_mb_aux.cpp\
11	$(DECODER_SRCDIR)/core/src/decode_slice.cpp\
12	$(DECODER_SRCDIR)/core/src/decoder.cpp\
13	$(DECODER_SRCDIR)/core/src/decoder_core.cpp\
14	$(DECODER_SRCDIR)/core/src/decoder_data_tables.cpp\
15	$(DECODER_SRCDIR)/core/src/error_concealment.cpp\
16	$(DECODER_SRCDIR)/core/src/fmo.cpp\
17	$(DECODER_SRCDIR)/core/src/get_intra_predictor.cpp\
18	$(DECODER_SRCDIR)/core/src/manage_dec_ref.cpp\
19	$(DECODER_SRCDIR)/core/src/memmgr_nal_unit.cpp\
20	$(DECODER_SRCDIR)/core/src/mv_pred.cpp\
21	$(DECODER_SRCDIR)/core/src/parse_mb_syn_cabac.cpp\
22	$(DECODER_SRCDIR)/core/src/parse_mb_syn_cavlc.cpp\
23	$(DECODER_SRCDIR)/core/src/pic_queue.cpp\
24	$(DECODER_SRCDIR)/core/src/rec_mb.cpp\
25	$(DECODER_SRCDIR)/core/src/wels_decoder_thread.cpp\
26	$(DECODER_SRCDIR)/plus/src/welsDecoderExt.cpp\
27
28DECODER_OBJS += $(DECODER_CPP_SRCS:.cpp=.$(OBJ))
29
30DECODER_ASM_SRCS=\
31	$(DECODER_SRCDIR)/core/x86/dct.asm\
32	$(DECODER_SRCDIR)/core/x86/intra_pred.asm\
33
34DECODER_OBJSASM += $(DECODER_ASM_SRCS:.asm=.$(OBJ))
35ifeq ($(ASM_ARCH), x86)
36DECODER_OBJS += $(DECODER_OBJSASM)
37endif
38OBJS += $(DECODER_OBJSASM)
39
40DECODER_ASM_ARM_SRCS=\
41	$(DECODER_SRCDIR)/core/arm/block_add_neon.S\
42	$(DECODER_SRCDIR)/core/arm/intra_pred_neon.S\
43
44DECODER_OBJSARM += $(DECODER_ASM_ARM_SRCS:.S=.$(OBJ))
45ifeq ($(ASM_ARCH), arm)
46DECODER_OBJS += $(DECODER_OBJSARM)
47endif
48OBJS += $(DECODER_OBJSARM)
49
50DECODER_ASM_ARM64_SRCS=\
51	$(DECODER_SRCDIR)/core/arm64/block_add_aarch64_neon.S\
52	$(DECODER_SRCDIR)/core/arm64/intra_pred_aarch64_neon.S\
53
54DECODER_OBJSARM64 += $(DECODER_ASM_ARM64_SRCS:.S=.$(OBJ))
55ifeq ($(ASM_ARCH), arm64)
56DECODER_OBJS += $(DECODER_OBJSARM64)
57endif
58OBJS += $(DECODER_OBJSARM64)
59
60DECODER_ASM_MIPS_MMI_SRCS=\
61	$(DECODER_SRCDIR)/core/mips/dct_mmi.c\
62
63DECODER_OBJSMIPS_MMI += $(DECODER_ASM_MIPS_MMI_SRCS:.c=.$(OBJ))
64
65DECODER_ASM_MIPS_MSA_SRCS=\
66
67DECODER_OBJSMIPS_MSA += $(DECODER_ASM_MIPS_MSA_SRCS:.c=.$(OBJ))
68ifeq ($(ASM_ARCH), mips)
69ifeq ($(ENABLE_MMI), Yes)
70DECODER_OBJS += $(DECODER_OBJSMIPS_MMI)
71endif
72ifeq ($(ENABLE_MSA), Yes)
73DECODER_OBJS += $(DECODER_OBJSMIPS_MSA)
74endif
75endif
76OBJS += $(DECODER_OBJSMIPS_MMI)
77OBJS += $(DECODER_OBJSMIPS_MSA)
78
79DECODER_ASM_LOONGARCH_LSX_SRCS=\
80
81DECODER_OBJSLOONGARCH_LSX += $(DECODER_ASM_LOONGARCH_LSX_SRCS:.c=.$(OBJ))
82
83DECODER_ASM_LOONGARCH_LASX_SRCS=\
84
85DECODER_OBJSLOONGARCH_LASX += $(DECODER_ASM_LOONGARCH_LASX_SRCS:.c=.$(OBJ))
86ifeq ($(ASM_ARCH), loongarch)
87ifeq ($(ENABLE_LSX), Yes)
88DECODER_OBJS += $(DECODER_OBJSLOONGARCH_LSX)
89endif
90ifeq ($(ENABLE_LASX), Yes)
91DECODER_OBJS += $(DECODER_OBJSLOONGARCH_LASX)
92endif
93endif
94
95OBJS += $(DECODER_OBJS)
96
97$(DECODER_SRCDIR)/%.$(OBJ): $(DECODER_SRCDIR)/%.cpp
98	$(QUIET_CXX)$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(DECODER_CFLAGS) $(DECODER_INCLUDES) -c $(CXX_O) $<
99
100$(DECODER_SRCDIR)/%.$(OBJ): $(DECODER_SRCDIR)/%.c
101	$(QUIET_CC)$(CC) $(CFLAGS) $(INCLUDES) $(DECODER_CFLAGS) $(DECODER_INCLUDES) -c $(CXX_O) $<
102
103$(DECODER_SRCDIR)/%.$(OBJ): $(DECODER_SRCDIR)/%.asm
104	$(QUIET_ASM)$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(DECODER_ASMFLAGS) $(DECODER_ASM_INCLUDES) -o $@ $<
105
106$(DECODER_SRCDIR)/%.$(OBJ): $(DECODER_SRCDIR)/%.S
107	$(QUIET_CCAS)$(CCAS) $(CCASFLAGS) $(ASMFLAGS) $(INCLUDES) $(DECODER_CFLAGS) $(DECODER_INCLUDES) -c -o $@ $<
108
109$(LIBPREFIX)decoder.$(LIBSUFFIX): $(DECODER_OBJS)
110	$(QUIET)rm -f $@
111	$(QUIET_AR)$(AR) $(AR_OPTS) $+
112
113libraries: $(LIBPREFIX)decoder.$(LIBSUFFIX)
114LIBRARIES += $(LIBPREFIX)decoder.$(LIBSUFFIX)
115