Merge "Add vendor_available: true to libbuildverison" am: d2d8e322f1

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1912416

Change-Id: I1edc9dcf067047e8414f1863c5b740084efc2f50
This commit is contained in:
Treehugger Robot
2021-12-07 21:52:13 +00:00
committed by Automerger Merge Worker
2 changed files with 5 additions and 0 deletions

View File

@@ -19,4 +19,5 @@ cc_library_static {
"//apex_available:platform",
"//apex_available:anyapex",
],
vendor_available: true,
}

View File

@@ -36,7 +36,11 @@ std::string GetBuildNumber() {
return soong_build_number;
}
#ifdef __ANDROID_VENDOR__
const prop_info* pi = __system_property_find("ro.vendor.build.version.incremental");
#else
const prop_info* pi = __system_property_find("ro.build.version.incremental");
#endif
if (pi == nullptr) return "";
std::string property_value;