56 lines
2.6 KiB
Makefile
56 lines
2.6 KiB
Makefile
# Copyright (C) 2021 Paranoid Android
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
device/qcom/common/vendor/media
|
|
|
|
TARGET_MEDIA_COMPONENT_VARIANT := media
|
|
|
|
# Inherit configuration from the HAL.
|
|
$(call inherit-product-if-exists, hardware/qcom/media/product.mk)
|
|
|
|
# Media Codecs
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_audio.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_c2_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_c2_video.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
device/qcom/common/vendor/media/media_codecs_c2_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2_audio.xml
|
|
|
|
# Packages
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.media.c2@1.2.vendor \
|
|
libavservices_minijail.vendor \
|
|
libgui_vendor \
|
|
libstagefright_softomx.vendor \
|
|
libstagefrighthw
|
|
|
|
# Properties
|
|
PRODUCT_SYSTEM_EXT_PROPERTIES += \
|
|
media.settings.xml=/vendor/etc/media_profiles_vendor.xml \
|
|
media.stagefright.thumbnail.prefer_hw_codecs=true \
|
|
ro.media.recorder-max-base-layer-fps=60
|
|
|
|
# Media Init
|
|
PRODUCT_COPY_FILES += \
|
|
device/qcom/common/vendor/media/init.qti.media.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qti.media.sh
|
|
|
|
# Get non-open-source specific aspects.
|
|
$(call inherit-product-if-exists, vendor/qcom/common/vendor/media/media-vendor.mk)
|