# 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