Merge "Expose the platform tools version as a C header"

This commit is contained in:
Dan Willemsen
2018-08-30 23:36:54 +00:00
committed by Gerrit Code Review

6
sdk/Android.bp Normal file
View File

@@ -0,0 +1,6 @@
genrule {
name: "platform_tools_version",
cmd: "sed 's/$${PLATFORM_SDK_VERSION}/0/ ; s/^Pkg.Revision=\\(.*\\)/#define PLATFORM_TOOLS_VERSION \"\\1\"/p ; d' $(in) > $(out)",
srcs: ["plat_tools_source.prop_template"],
out: ["platform_tools_version.h"],
}