blob: 920af318eed3c4caed1d82430fa598bf87c51e86 [file] [log] [blame]
Bob Badourf7cf3052021-02-12 17:13:45 -08001package {
2 // See: http://go/android-license-faq
Bob Badour082705b2022-01-19 18:29:06 -08003 default_applicable_licenses: ["development_sdk_license"],
4}
5
6license {
7 name: "development_sdk_license",
8 visibility: [":__subpackages__"],
9 license_kinds: [
10 "SPDX-license-identifier-BSD",
11 "SPDX-license-identifier-CPL-1.0",
12 "SPDX-license-identifier-MIT",
13 "SPDX-license-identifier-Unicode-DFS",
14 "SPDX-license-identifier-W3C",
15 ],
16 license_text: ["sdk_files_NOTICE.txt"],
Bob Badourf7cf3052021-02-12 17:13:45 -080017}
18
Dan Willemsenee6f84f2018-08-29 16:16:05 -070019genrule {
20 name: "platform_tools_version",
21 cmd: "sed 's/$${PLATFORM_SDK_VERSION}/0/ ; s/^Pkg.Revision=\\(.*\\)/#define PLATFORM_TOOLS_VERSION \"\\1\"/p ; d' $(in) > $(out)",
22 srcs: ["plat_tools_source.prop_template"],
23 out: ["platform_tools_version.h"],
24}
Dan Willemsen17df46e2021-07-13 21:52:51 -070025
26genrule {
27 name: "platform_tools_properties",
28 cmd: "cp $(in) $(out)",
29 srcs: ["plat_tools_source.prop_template"],
30 out: ["source.properties"],
31}
32
33genrule {
34 name: "build_tools_runtime_properties",
35 cmd: "cp $(in) $(out)",
36 srcs: ["build_tools_runtime.properties"],
37 out: ["runtime.properties"],
38}
39
40genrule {
41 name: "build_tools_source_properties",
42 product_variables: {
43 platform_sdk_version: {
44 cmd: "sed 's/$${PLATFORM_SDK_VERSION}/%d/' $(in) >$(out)",
45 },
46 },
47 srcs: ["build_tools_source.prop_template"],
48 out: ["source.properties"],
Bob Badour082705b2022-01-19 18:29:06 -080049}