Skip to content
Snippets Groups Projects
Commit effbb125 authored by LuK1337's avatar LuK1337 Committed by Noah Anleitner
Browse files

soong: Add `aapt_version_code` default


This appends `--version_code=$(date -u +%Y%m%d)` to aapt flags, which is
useful for flushing some caches upon system updates.

Change-Id: I6575b878f09c1c3138e12abc34d39405f51245e7
Signed-off-by: default avatarNoah Anleitner <noah.anleitner@halogenos.org>
parent 068fd107
No related branches found
No related tags found
No related merge requests found
...@@ -51,6 +51,26 @@ cc_library_headers { ...@@ -51,6 +51,26 @@ cc_library_headers {
} }
// Target platform agnostic config modules // Target platform agnostic config modules
soong_config_module_type {
name: "aapt_version_code",
module_type: "java_defaults",
config_namespace: "evolutionGlobalVars",
value_variables: ["aapt_version_code"],
properties: ["aaptflags"],
}
aapt_version_code {
name: "aapt_version_code_defaults",
soong_config_variables: {
aapt_version_code: {
aaptflags: [
"--version-code",
"%s",
],
},
},
}
soong_config_module_type { soong_config_module_type {
name: "gralloc_10_usage_bits", name: "gralloc_10_usage_bits",
module_type: "cc_defaults", module_type: "cc_defaults",
......
...@@ -28,6 +28,7 @@ $(foreach v,$(EXPORT_TO_SOONG),$(eval $(call addVar,$(v)))) ...@@ -28,6 +28,7 @@ $(foreach v,$(EXPORT_TO_SOONG),$(eval $(call addVar,$(v))))
SOONG_CONFIG_NAMESPACES += customGlobalVars SOONG_CONFIG_NAMESPACES += customGlobalVars
SOONG_CONFIG_customGlobalVars += \ SOONG_CONFIG_customGlobalVars += \
aapt_version_code \
additional_gralloc_10_usage_bits \ additional_gralloc_10_usage_bits \
disable_bluetooth_le_read_buffer_size_v2 \ disable_bluetooth_le_read_buffer_size_v2 \
disable_bluetooth_le_set_host_feature \ disable_bluetooth_le_set_host_feature \
...@@ -74,6 +75,7 @@ TARGET_TRUST_USB_CONTROL_ENABLE ?= 1 ...@@ -74,6 +75,7 @@ TARGET_TRUST_USB_CONTROL_ENABLE ?= 1
TARGET_TRUST_USB_CONTROL_DISABLE ?= 0 TARGET_TRUST_USB_CONTROL_DISABLE ?= 0
# Soong value variables # Soong value variables
SOONG_CONFIG_evolutionGlobalVars_aapt_version_code := $(shell date -u +%Y%m%d)
SOONG_CONFIG_customGlobalVars_additional_gralloc_10_usage_bits := $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS) SOONG_CONFIG_customGlobalVars_additional_gralloc_10_usage_bits := $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS)
SOONG_CONFIG_customGlobalVars_disable_bluetooth_le_read_buffer_size_v2 := $(TARGET_DISABLE_BLUETOOTH_LE_READ_BUFFER_SIZE_V2) SOONG_CONFIG_customGlobalVars_disable_bluetooth_le_read_buffer_size_v2 := $(TARGET_DISABLE_BLUETOOTH_LE_READ_BUFFER_SIZE_V2)
SOONG_CONFIG_customGlobalVars_disable_bluetooth_le_set_host_feature := $(TARGET_DISABLE_BLUETOOTH_LE_SET_HOST_FEATURE) SOONG_CONFIG_customGlobalVars_disable_bluetooth_le_set_host_feature := $(TARGET_DISABLE_BLUETOOTH_LE_SET_HOST_FEATURE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment