Files
android/libwvdrmengine/apex/device/device.mk
Kyle Zhang e362704180 Create different targets for each Widevine apex
Bug: 277764729
Change-Id: I7c8599ba55ba75b092b14ddb88553735f02cdaa0
2023-04-21 17:05:38 +00:00

21 lines
769 B
Makefile

# Declare source_build soong config variable.
# Usage:
# Pass `SOONG_CONFIG_widevine_module_source_build=true` to build the Widevine
# APEX from source.
$(call soong_config_set,widevine_module,source_build,$(call soong_config_get,widevine_module,source_build))
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