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", |
Colin Cross | e89c784 | 2022-04-07 19:31:24 +0000 | [diff] [blame] | 56 | wrapper: "d8", |
Ian Zerny | 414ff95 | 2022-04-04 12:57:39 +0200 | [diff] [blame] | 57 | static_libs: ["r8lib"], |
Dan Willemsen | 84e89a2 | 2021-09-20 23:37:53 -0700 | [diff] [blame] | 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", |
Colin Cross | e89c784 | 2022-04-07 19:31:24 +0000 | [diff] [blame] | 68 | wrapper: "r8-compat-proguard", |
Ian Zerny | 414ff95 | 2022-04-04 12:57:39 +0200 | [diff] [blame] | 69 | static_libs: ["r8lib"], |
| 70 | } |
| 71 | |
| 72 | java_binary_host { |
| 73 | name: "r8", |
| 74 | main_class: "com.android.tools.r8.R8", |
| 75 | static_libs: ["r8lib"] |
Yohann Roussel | 4055b81 | 2017-10-23 11:46:43 +0200 | [diff] [blame] | 76 | } |
| 77 | |
Ian Zerny | 1648f4b | 2021-11-17 09:03:49 +0100 | [diff] [blame] | 78 | java_binary_host { |
| 79 | name: "retrace", |
| 80 | main_class: "com.android.tools.r8.retrace.RetraceWrapper", |
| 81 | srcs: ["src/com/android/tools/r8/retrace/RetraceWrapper.java"], |
Ian Zerny | 414ff95 | 2022-04-04 12:57:39 +0200 | [diff] [blame] | 82 | static_libs: ["r8lib"], |
Ian Zerny | 1648f4b | 2021-11-17 09:03:49 +0100 | [diff] [blame] | 83 | } |
| 84 | |
| 85 | java_binary_host { |
| 86 | name: "extractmarker", |
| 87 | main_class: "com.android.tools.r8.ExtractMarker", |
Ian Zerny | 414ff95 | 2022-04-04 12:57:39 +0200 | [diff] [blame] | 88 | static_libs: ["r8lib"], |
Ian Zerny | 1648f4b | 2021-11-17 09:03:49 +0100 | [diff] [blame] | 89 | } |
| 90 | |
Yohann Roussel | 4055b81 | 2017-10-23 11:46:43 +0200 | [diff] [blame] | 91 | java_import_host { |
Ian Zerny | 414ff95 | 2022-04-04 12:57:39 +0200 | [diff] [blame] | 92 | name: "r8lib", |
Dan Willemsen | 84e89a2 | 2021-09-20 23:37:53 -0700 | [diff] [blame] | 93 | jars: ["r8.jar"], |
| 94 | target: { |
| 95 | windows: { |
| 96 | enabled: true, |
| 97 | }, |
| 98 | }, |
Yohann Roussel | 4055b81 | 2017-10-23 11:46:43 +0200 | [diff] [blame] | 99 | } |