1CONFIG_PATH := $(QCOM_MEDIA_ROOT)/conf_files/lito 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.xml \ 7 $(CONFIG_PATH)/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \ 8 $(CONFIG_PATH)/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \ 9 $(CONFIG_PATH)/media_codecs_vendor_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v1.xml \ 10 $(CONFIG_PATH)/media_codecs_performance_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v1.xml \ 11 $(CONFIG_PATH)/media_codecs_performance_lagoon_v0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v2.xml \ 12 $(CONFIG_PATH)/media_codecs_vendor_lagoon_v0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v2.xml \ 13 $(CONFIG_PATH)/media_codecs_performance_lagoon_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_v3.xml \ 14 $(CONFIG_PATH)/media_codecs_vendor_lagoon_v1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_v3.xml \ 15 $(CONFIG_PATH)/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \ 16 $(CONFIG_PATH)/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml 17 18# Enable CLANG/LLVM integer-overflow sanitization 19TARGET_ENABLE_VIDC_INTSAN := true 20 21# Enable DIAG mode for CLANG/LLVM integer-overflow sanitization 22# TARGET_ENABLE_VIDC_INTSAN must be set to 'true' before enabling DIAG mode 23# NOTE: DIAG mode should be used only for debug builds 24TARGET_ENABLE_VIDC_INTSAN_DIAG := false 25 26# Vendor property overrides 27ifeq ($(GENERIC_ODM_IMAGE),true) 28 $(warning "Forcing codec2.0 HW for generic odm build variant") 29 #Set default ranks and rank Codec 2.0 over OMX codecs 30 PRODUCT_ODM_PROPERTIES += debug.stagefright.ccodec=4 31 PRODUCT_ODM_PROPERTIES += debug.stagefright.omx_default_rank=1000 32 PRODUCT_COPY_FILES += \ 33 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ 34 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml 35else 36 $(warning "Enabling codec2.0 SW only for non-generic odm build variant") 37 #Rank OMX SW codecs lower than OMX HW codecs 38 PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank.sw-audio=1 39 PRODUCT_PROPERTY_OVERRIDES += debug.stagefright.omx_default_rank=0 40 PRODUCT_PROPERTY_OVERRIDES += media.settings.xml=/vendor/etc/media_profiles_vendor.xml 41 PRODUCT_COPY_FILES += \ 42 device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_ODM)/etc/media_profiles_V1_0.xml \ 43 $(CONFIG_PATH)/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml 44endif 45 46# Produce packages addition 47PRODUCT_PACKAGES += \ 48 libcodec2_vndk.vendor \ 49 libcodec2_hidl@1.0.vendor 50