1package {
2    // See: http://go/android-license-faq
3    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"],
17}
18
19genrule {
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}
25
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"],
49}
50