1CONFIG_PATH := $(QCOM_MEDIA_ROOT)/conf_files/kona 2#Bring all FEATURE FLAG (Compilation) here 3 4PRODUCT_COPY_FILES += \ 5 $(CONFIG_PATH)/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ 6 $(CONFIG_PATH)/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_kona_vendor.xml \ 7 $(CONFIG_PATH)/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_kona.xml \ 8 $(CONFIG_PATH)/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_kona_vendor.xml \ 9 $(CONFIG_PATH)/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_kona.xml \ 10 $(CONFIG_PATH)/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \ 11 $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \ 12 $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_kona.xml \ 13 $(CONFIG_PATH)/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ 14 $(CONFIG_PATH)/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml 15 16# Enable CLANG/LLVM integer-overflow sanitization 17TARGET_ENABLE_VIDC_INTSAN := true 18 19# Enable DIAG mode for CLANG/LLVM integer-overflow sanitization 20# TARGET_ENABLE_VIDC_INTSAN must be set to 'true' before enabling DIAG mode 21# NOTE: DIAG mode should be used only for debug builds 22TARGET_ENABLE_VIDC_INTSAN_DIAG := false 23 24# Vendor property overrides 25ifeq ($(GENERIC_ODM_IMAGE),true) 26 $(warning "Forcing codec2.0 HW for generic odm build variant") 27 #Set default ranks and rank Codec 2.0 over OMX codecs 28 PRODUCT_ODM_PROPERTIES += debug.stagefright.ccodec=4 29 PRODUCT_ODM_PROPERTIES += debug.stagefright.omx_default_rank=1000 30 PRODUCT_COPY_FILES += \ 31 device/qcom/common/media/media_profiles.xml:TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml 32else 33 $(warning "Enabling codec2.0 non-audio SW only for non-generic odm build variant") 34PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0 35 PRODUCT_COPY_FILES += \ 36 $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml 37endif 38 39# Produce packages addition 40PRODUCT_PACKAGES += \ 41 libcodec2_vndk.vendor \ 42 libcodec2_hidl@1.0.vendor 43