Merge "Add build number to apps\' version name for non-platform build" into nyc-dev am: 1059f37377
am: eaa4ef4cfc

* commit 'eaa4ef4cfc7faecde17e21a4016d95ff8913f459':
  Add build number to apps' version name for non-platform build

Change-Id: I8e68dfb1acd056950be129e412e2a038be323b5e
diff --git a/core/definitions.mk b/core/definitions.mk
index 84fe8e9..4573bdd 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -1928,6 +1928,10 @@
 
 # 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)