1 SRC_plugin_demuxer_raw= \
2 $(SDK_ROOT)/middleware/services/media/hal/format/plugins/raw_demuxer/raw_format.c \
3 $(SDK_ROOT)/middleware/services/media/hal/format/plugins/raw_demuxer/silk_demuxer.c
5 C_OBJ_plugin_demuxer_raw = $(subst $(SDK_ROOT),$(OUTPUT_DIR),$(patsubst %,%.obj,$(filter %.c,$(SRC_plugin_demuxer_raw))))
6 CPP_OBJ_plugin_demuxer_raw = $(subst $(SDK_ROOT),$(OUTPUT_DIR),$(patsubst %,%.obj,$(filter %.cpp,$(SRC_plugin_demuxer_raw))))
7 CPP_OBJ_plugin_demuxer_raw += $(subst $(SDK_ROOT),$(OUTPUT_DIR),$(patsubst %,%.obj,$(filter %.cc,$(SRC_plugin_demuxer_raw))))
8 S_OBJ_plugin_demuxer_raw = $(subst $(SDK_ROOT),$(OUTPUT_DIR),$(patsubst %,%.obj,$(filter %.S,$(SRC_plugin_demuxer_raw))))
9 s_OBJ_plugin_demuxer_raw = $(subst $(SDK_ROOT),$(OUTPUT_DIR),$(patsubst %,%.obj,$(filter %.s,$(SRC_plugin_demuxer_raw))))
10 ALL_OBJ_plugin_demuxer_raw = $(subst $(SDK_ROOT),$(OUTPUT_DIR),$(patsubst %,%.obj,$(SRC_plugin_demuxer_raw)))
12 INCLUDES_TEMP_plugin_demuxer_raw = \
13 $(SDK_ROOT)/middleware/services/media/hal/format/plugins/raw_demuxer \
14 $(SDK_ROOT)/middleware/services/media/hal/format/plugins/raw_demuxer/../../include \
15 $(SDK_ROOT)/middleware/services/media/hal/format/plugins/raw_demuxer/../../../common/include
16 INCLUDES_plugin_demuxer_raw = $(patsubst %,-I%,$(INCLUDES_TEMP_plugin_demuxer_raw))
17 INCLUDES_plugin_demuxer_raw += $(PUBLIC_INCLUDES)
19 CCFLAGS_plugin_demuxer_raw = $(PUBLIC_CCFLAGS)
20 CCFLAGS_plugin_demuxer_raw +=
22 DEFINES_plugin_demuxer_raw = $(PUBLIC_DEFINES)
23 DEFINES_TEMP_plugin_demuxer_raw =
24 DEFINES_plugin_demuxer_raw += $(patsubst %,-D%,$(DEFINES_TEMP_plugin_demuxer_raw))
26 LIBS_plugin_demuxer_raw =
27 WHOLE_LINK_plugin_demuxer_raw = \
29 ifeq ("$(WHOLE_LINK_plugin_demuxer_raw)", "true")
30 WHOLE_LINK_LIBS += plugin_demuxer_raw
31 WHOLE_EXTERN_LINK_LIBS += $(LIBS_plugin_demuxer_raw)
33 NORMAL_LINK_LIBS += plugin_demuxer_raw
34 NORMAL_EXTERN_LINK_LIBS += $(LIBS_plugin_demuxer_raw)
37 COMPONENT_NAME_plugin_demuxer_raw=plugin_demuxer_raw
39 LIB_DIR_TEMP_plugin_demuxer_raw = \
40 $(SDK_ROOT)/middleware/services/media/hal/format/plugins/raw_demuxer
42 LIB_DIR_plugin_demuxer_raw = $(subst $(SDK_ROOT),$(OUTPUT_DIR),$(LIB_DIR_TEMP_plugin_demuxer_raw))
44 LIB_DIR += $(LIB_DIR_plugin_demuxer_raw)
46 LIB_EXIST := $(shell if [ -e "$(LIB_DIR_TEMP_plugin_demuxer_raw)/lib$(COMPONENT_NAME_plugin_demuxer_raw).a" ]; then echo "exist"; else echo "noexist"; fi )
48 MODULE_NAME_TEMP_plugin_demuxer_raw = \
50 AUTO_DEF_TEMP_plugin_demuxer_raw = \
53 lib$(COMPONENT_NAME_plugin_demuxer_raw).a:$(ALL_OBJ_plugin_demuxer_raw) HSO_DB_$(COMPONENT_NAME_plugin_demuxer_raw)
54 @mkdir -p $(LIB_DIR_plugin_demuxer_raw)
55 @$(RM) $(LIB_DIR_plugin_demuxer_raw)/lib$(COMPONENT_NAME_plugin_demuxer_raw).a
56 ifeq ("$(LIB_EXIST)", "noexist")
57 @echo building $(LIB_DIR_plugin_demuxer_raw)/lib$(COMPONENT_NAME_plugin_demuxer_raw).a
58 @$(AR) -rc $(LIB_DIR_plugin_demuxer_raw)/lib$(COMPONENT_NAME_plugin_demuxer_raw).a $(ALL_OBJ_plugin_demuxer_raw)
60 @echo copy $(LIB_DIR_plugin_demuxer_raw)/lib$(COMPONENT_NAME_plugin_demuxer_raw).a
61 @cp $(LIB_DIR_TEMP_plugin_demuxer_raw)/lib$(COMPONENT_NAME_plugin_demuxer_raw).a $(LIB_DIR_plugin_demuxer_raw)
64 $(C_OBJ_plugin_demuxer_raw): $(OUTPUT_DIR)/%.obj : $(SDK_ROOT)/%
67 @${CCACHE} $(CC) -c $(INCLUDES_plugin_demuxer_raw) $(DEFINES_plugin_demuxer_raw) $(CCFLAGS_plugin_demuxer_raw) -DTHIS_FILE_ID=$(shell echo $(patsubst %.c, %_c, $(notdir $<)) | tr '[a-z]' '[A-Z]') -DTHIS_MOD_ID=$(shell echo LOG_$(MODULE_NAME_TEMP_plugin_demuxer_raw)MODULE | tr '[a-z]' '[A-Z]') $< -o $@;
69 $(CPP_OBJ_plugin_demuxer_raw): $(OUTPUT_DIR)/%.obj : $(SDK_ROOT)/%
72 @${CCACHE} $(CXX) -c $(INCLUDES_plugin_demuxer_raw) $(DEFINES_plugin_demuxer_raw) $(CCFLAGS_plugin_demuxer_raw) -DTHIS_FILE_ID=$(shell echo $(patsubst %.cpp, %_cpp, $(notdir $<)) | tr '[a-z]' '[A-Z]') -DTHIS_MOD_ID=$(shell echo LOG_$(MODULE_NAME_TEMP_plugin_demuxer_raw)MODULE | tr '[a-z]' '[A-Z]') $< -o $@;
74 $(s_OBJ_plugin_demuxer_raw): $(OUTPUT_DIR)/%.obj : $(SDK_ROOT)/%
77 @$(AS) -c $(INCLUDES_plugin_demuxer_raw) $(DEFINES_plugin_demuxer_raw) $(CCFLAGS_plugin_demuxer_raw) -DTHIS_FILE_ID=$(shell echo $(patsubst %.c, %_c, $(notdir $<)) | tr '[a-z]' '[A-Z]') -DTHIS_MOD_ID=$(shell echo LOG_$(MODULE_NAME_TEMP_plugin_demuxer_raw)MODULE | tr '[a-z]' '[A-Z]') $< -o $@;
79 $(S_OBJ_plugin_demuxer_raw): $(OUTPUT_DIR)/%.obj : $(SDK_ROOT)/%
82 @$(AS) -c $(INCLUDES_plugin_demuxer_raw) $(DEFINES_plugin_demuxer_raw) $(CCFLAGS_plugin_demuxer_raw) -DTHIS_FILE_ID=$(shell echo $(patsubst %.c, %_c, $(notdir $<)) | tr '[a-z]' '[A-Z]') -DTHIS_MOD_ID=$(shell echo LOG_$(MODULE_NAME_TEMP_plugin_demuxer_raw)MODULE | tr '[a-z]' '[A-Z]') $< -o $@;
84 HSO_DB_$(COMPONENT_NAME_plugin_demuxer_raw):
85 ifneq ("$(BIN_NAME).bin", "ssb.bin")
86 ifneq ("$(words $(SRC_plugin_demuxer_raw))", "0")
88 ifeq ("$(LIB_EXIST)", "noexist")
89 @echo building $(COMPONENT_NAME_plugin_demuxer_raw) HSO DB
90 @echo -n $(LOG_DEF_LIST) | sed 's/ /,/g' > $(HSO_TMP)/$(COMPONENT_NAME_plugin_demuxer_raw).txt
91 @echo -n "####" >> $(HSO_TMP)/$(COMPONENT_NAME_plugin_demuxer_raw).txt
92 @echo -n $(SRC_plugin_demuxer_raw) | sed 's/ /,/g' >> $(HSO_TMP)/$(COMPONENT_NAME_plugin_demuxer_raw).txt
93 @python3 $(HSO_MK_XML_PY) ${SDK_ROOT}/ ${CHIP} ${CORE} ${ARCH} ${AUTO_DEF_TEMP_plugin_demuxer_raw} ${MODULE_NAME_TEMP_plugin_demuxer_raw} FALSE $(HSO_TMP)/$(COMPONENT_NAME_plugin_demuxer_raw).txt
97 @echo "skip building $(COMPONENT_NAME_plugin_demuxer_raw) HSO DB"
100 include ./toolchains.make