blob: 8a2f7301d04956d599fcfe14564205820379898b [file] [log] [blame]
Ian Zerny1648f4b2021-11-17 09:03:49 +01001//
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 Badour7bf73d92021-02-12 20:48:53 -080016package {
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
39license {
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 Roussel4055b812017-10-23 11:46:43 +020054java_binary_host {
Alan Leunga5939282017-11-29 19:00:25 -080055 name: "d8",
Colin Crosse89c7842022-04-07 19:31:24 +000056 wrapper: "d8",
Ian Zerny414ff952022-04-04 12:57:39 +020057 static_libs: ["r8lib"],
Dan Willemsen84e89a22021-09-20 23:37:53 -070058 target: {
59 windows: {
60 enabled: true,
61 wrapper: "d8.bat",
62 },
63 },
Alan Leunga5939282017-11-29 19:00:25 -080064}
65
66java_binary_host {
Yohann Roussel4055b812017-10-23 11:46:43 +020067 name: "r8-compat-proguard",
Colin Crosse89c7842022-04-07 19:31:24 +000068 wrapper: "r8-compat-proguard",
Ian Zerny414ff952022-04-04 12:57:39 +020069 static_libs: ["r8lib"],
70}
71
72java_binary_host {
73 name: "r8",
74 main_class: "com.android.tools.r8.R8",
75 static_libs: ["r8lib"]
Yohann Roussel4055b812017-10-23 11:46:43 +020076}
77
Ian Zerny1648f4b2021-11-17 09:03:49 +010078java_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 Zerny414ff952022-04-04 12:57:39 +020082 static_libs: ["r8lib"],
Ian Zerny1648f4b2021-11-17 09:03:49 +010083}
84
85java_binary_host {
86 name: "extractmarker",
87 main_class: "com.android.tools.r8.ExtractMarker",
Ian Zerny414ff952022-04-04 12:57:39 +020088 static_libs: ["r8lib"],
Ian Zerny1648f4b2021-11-17 09:03:49 +010089}
90
Yohann Roussel4055b812017-10-23 11:46:43 +020091java_import_host {
Ian Zerny414ff952022-04-04 12:57:39 +020092 name: "r8lib",
Dan Willemsen84e89a22021-09-20 23:37:53 -070093 jars: ["r8.jar"],
94 target: {
95 windows: {
96 enabled: true,
97 },
98 },
Yohann Roussel4055b812017-10-23 11:46:43 +020099}