diff --git a/core/config.mk b/core/config.mk index 96897c677a..29716c7369 100644 --- a/core/config.mk +++ b/core/config.mk @@ -870,6 +870,17 @@ RS_PREBUILT_COMPILER_RT := prebuilts/sdk/renderscript/lib/$(TARGET_ARCH)/libcomp RSCOMPAT_32BIT_ONLY_API_LEVELS := 8 9 10 11 12 13 14 15 16 17 18 19 20 RSCOMPAT_NO_USAGEIO_API_LEVELS := 8 9 10 11 12 13 +# Add BUILD_NUMBER to apps default version name if it's unbundled build. +ifdef TARGET_BUILD_APPS +TARGET_BUILD_WITH_APPS_VERSION_NAME := true +endif + +ifdef TARGET_BUILD_WITH_APPS_VERSION_NAME +APPS_DEFAULT_VERSION_NAME := $(PLATFORM_VERSION)-$(BUILD_NUMBER_FROM_FILE) +else +APPS_DEFAULT_VERSION_NAME := $(PLATFORM_VERSION) +endif + ifeq ($(JAVA_NOT_REQUIRED),true) # Remove java and tools from our path so that we make sure nobody uses them. unexport ANDROID_JAVA_HOME diff --git a/core/definitions.mk b/core/definitions.mk index e8efe96d1a..16afbe5e86 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2002,17 +2002,6 @@ endef ## Commands for running javac to make .class files ########################################################### -# Add BUILD_NUMBER to apps default version name if it's unbundled build. -ifdef TARGET_BUILD_APPS -TARGET_BUILD_WITH_APPS_VERSION_NAME := true -endif - -ifdef TARGET_BUILD_WITH_APPS_VERSION_NAME -APPS_DEFAULT_VERSION_NAME := $(PLATFORM_VERSION)-$(BUILD_NUMBER_FROM_FILE) -else -APPS_DEFAULT_VERSION_NAME := $(PLATFORM_VERSION) -endif - # b/37750224 AAPT_ASAN_OPTIONS := ASAN_OPTIONS=detect_leaks=0 diff --git a/core/soong_config.mk b/core/soong_config.mk index e774fc8107..6bb55f5b93 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -72,6 +72,17 @@ $(call add_json_str, CrossHost, $(HOST_CROSS_OS)) $(call add_json_str, CrossHostArch, $(HOST_CROSS_ARCH)) $(call add_json_str, CrossHostSecondaryArch, $(HOST_CROSS_2ND_ARCH)) +$(call add_json_list, ResourceOverlays, $(PRODUCT_PACKAGE_OVERLAYS) $(DEVICE_PACKAGE_OVERLAYS)) +$(call add_json_list, EnforceRROTargets, $(PRODUCT_ENFORCE_RRO_TARGETS)) +$(call add_json_list, EnforceRROExcludedOverlays, $(PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS)) + +$(call add_json_str, AAPTCharacteristics, $(TARGET_AAPT_CHARACTERISTICS)) +$(call add_json_list, AAPTConfig, $(PRODUCT_AAPT_CONFIG)) +$(call add_json_str, AAPTPreferredConfig, $(PRODUCT_AAPT_PREF_CONFIG)) +$(call add_json_list, AAPTPrebuiltDPI, $(PRODUCT_AAPT_PREBUILT_DPI)) + +$(call add_json_str, AppsDefaultVersionName, $(APPS_DEFAULT_VERSION_NAME)) + $(call add_json_list, SanitizeHost, $(SANITIZE_HOST)) $(call add_json_list, SanitizeDevice, $(SANITIZE_TARGET)) $(call add_json_list, SanitizeDeviceDiag, $(SANITIZE_TARGET_DIAG))