1. Remove prerelease tag. 2. Add TARGET_BUILD_WIDEVINE_USE_PREBUILT to control building from source. 3. Unify config namespace to "widevine". Bug: 251299786 Bug: 277764729 Change-Id: I2f19bcf8efd280a1a3aa86f595599d79e20b4ff4
23 lines
741 B
Makefile
23 lines
741 B
Makefile
# by default use source
|
|
widevine_use_source := true
|
|
ifeq ($(TARGET_BUILD_WIDEVINE_USE_PREBUILT),true)
|
|
widevine_use_source := false
|
|
endif
|
|
$(call soong_config_set,widevine,source_build,$(widevine_use_source))
|
|
widevine_use_source := true
|
|
|
|
ifeq ($(TARGET_BUILD_WIDEVINE),nonupdatable)
|
|
PRODUCT_PACKAGES += com.google.android.widevine.nonupdatable
|
|
else ifeq ($(TARGET_BUILD_WIDEVINE),lazy)
|
|
PRODUCT_PACKAGES += com.google.android.widevine.lazy
|
|
else
|
|
PRODUCT_PACKAGES += com.google.android.widevine
|
|
endif
|
|
|
|
# Check if we can use dev keys
|
|
ifneq ($(wildcard vendor/google/dev-keystore),)
|
|
$(call soong_config_set,widevine,use_devkey,true)
|
|
endif
|
|
|
|
PRODUCT_VENDOR_LINKER_CONFIG_FRAGMENTS += \
|
|
vendor/widevine/libwvdrmengine/apex/device/linker.config.json
|