Ian Zerny | 1648f4b | 2021-11-17 09:03:49 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2021 The Android Open Source Project |
| 3 | // |
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | // you may not use this file except in compliance with the License. |
| 6 | // You may obtain a copy of the License at |
| 7 | // |
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | // |
| 10 | // Unless required by applicable law or agreed to in writing, software |
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | // See the License for the specific language governing permissions and |
| 14 | // limitations under the License. |
| 15 | |
Bob Badour | 7bf73d9 | 2021-02-12 20:48:53 -0800 | [diff] [blame] | 16 | package { |
| 17 | default_applicable_licenses: ["prebuilts_r8_license"], |
| 18 | } |
| 19 | |
| 20 | // Added automatically by a large-scale-change that took the approach of |
| 21 | // 'apply every license found to every target'. While this makes sure we respect |
| 22 | // every license restriction, it may not be entirely correct. |
| 23 | // |
| 24 | // e.g. GPL in an MIT project might only apply to the contrib/ directory. |
| 25 | // |
| 26 | // Please consider splitting the single license below into multiple licenses, |
| 27 | // taking care not to lose any license_kind information, and overriding the |
| 28 | // default license using the 'licenses: [...]' property on targets as needed. |
| 29 | // |
| 30 | // For unused files, consider creating a 'fileGroup' with "//visibility:private" |
| 31 | // to attach the license to, and including a comment whether the files may be |
| 32 | // used in the current project. |
| 33 | // |
| 34 | // large-scale-change included anything that looked like it might be a license |
| 35 | // text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. |
| 36 | // |
| 37 | // Please consider removing redundant or irrelevant files from 'license_text:'. |
| 38 | // See: http://go/android-license-faq |
| 39 | license { |
| 40 | name: "prebuilts_r8_license", |
| 41 | visibility: [":__subpackages__"], |
| 42 | license_kinds: [ |
| 43 | "SPDX-license-identifier-Apache-2.0", |
| 44 | "SPDX-license-identifier-BSD", |
| 45 | "SPDX-license-identifier-GPL", |
| 46 | "SPDX-license-identifier-MIT", |
| 47 | ], |
| 48 | license_text: [ |
| 49 | "LICENSE", |
| 50 | "NOTICE", |
| 51 | ], |
| 52 | } |
| 53 | |
Yohann Roussel | 4055b81 | 2017-10-23 11:46:43 +0200 | [diff] [blame] | 54 | java_binary_host { |
Alan Leung | a593928 | 2017-11-29 19:00:25 -0800 | [diff] [blame] | 55 | name: "d8", |
| 56 | wrapper: "d8", |
Dan Willemsen | 84e89a2 | 2021-09-20 23:37:53 -0700 | [diff] [blame] | 57 | static_libs: ["r8"], |
| 58 | target: { |
| 59 | windows: { |
| 60 | enabled: true, |
| 61 | wrapper: "d8.bat", |
| 62 | }, |
| 63 | }, |
Alan Leung | a593928 | 2017-11-29 19:00:25 -0800 | [diff] [blame] | 64 | } |
| 65 | |
| 66 | java_binary_host { |
Yohann Roussel | 4055b81 | 2017-10-23 11:46:43 +0200 | [diff] [blame] | 67 | name: "r8-compat-proguard", |
| 68 | wrapper: "r8-compat-proguard", |
Dan Willemsen | 84e89a2 | 2021-09-20 23:37:53 -0700 | [diff] [blame] | 69 | static_libs: ["r8"], |
Yohann Roussel | 4055b81 | 2017-10-23 11:46:43 +0200 | [diff] [blame] | 70 | } |
| 71 | |
Ian Zerny | 1648f4b | 2021-11-17 09:03:49 +0100 | [diff] [blame] | 72 | java_binary_host { |
| 73 | name: "retrace", |
| 74 | main_class: "com.android.tools.r8.retrace.RetraceWrapper", |
| 75 | srcs: ["src/com/android/tools/r8/retrace/RetraceWrapper.java"], |
| 76 | static_libs: ["r8"], |
| 77 | } |
| 78 | |
| 79 | java_binary_host { |
| 80 | name: "extractmarker", |
| 81 | main_class: "com.android.tools.r8.ExtractMarker", |
| 82 | static_libs: ["r8"], |
| 83 | } |
| 84 | |
Yohann Roussel | 4055b81 | 2017-10-23 11:46:43 +0200 | [diff] [blame] | 85 | java_import_host { |
Dan Willemsen | 84e89a2 | 2021-09-20 23:37:53 -0700 | [diff] [blame] | 86 | name: "r8", |
| 87 | jars: ["r8.jar"], |
| 88 | target: { |
| 89 | windows: { |
| 90 | enabled: true, |
| 91 | }, |
| 92 | }, |
Yohann Roussel | 4055b81 | 2017-10-23 11:46:43 +0200 | [diff] [blame] | 93 | } |