Bob Badour | f7cf305 | 2021-02-12 17:13:45 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
Bob Badour | 082705b | 2022-01-19 18:29:06 -0800 | [diff] [blame] | 3 | default_applicable_licenses: ["development_sdk_license"], |
| 4 | } |
| 5 | |
| 6 | license { |
| 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 Badour | f7cf305 | 2021-02-12 17:13:45 -0800 | [diff] [blame] | 17 | } |
| 18 | |
Dan Willemsen | ee6f84f | 2018-08-29 16:16:05 -0700 | [diff] [blame] | 19 | genrule { |
| 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 Willemsen | 17df46e | 2021-07-13 21:52:51 -0700 | [diff] [blame] | 25 | |
| 26 | genrule { |
| 27 | name: "platform_tools_properties", |
| 28 | cmd: "cp $(in) $(out)", |
| 29 | srcs: ["plat_tools_source.prop_template"], |
| 30 | out: ["source.properties"], |
| 31 | } |
| 32 | |
| 33 | genrule { |
| 34 | name: "build_tools_runtime_properties", |
| 35 | cmd: "cp $(in) $(out)", |
| 36 | srcs: ["build_tools_runtime.properties"], |
| 37 | out: ["runtime.properties"], |
| 38 | } |
| 39 | |
| 40 | genrule { |
| 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 Badour | 082705b | 2022-01-19 18:29:06 -0800 | [diff] [blame] | 49 | } |