blob: 8078b6960dcde9d04b68d1ff36225490aee8c4b4 [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",
56 wrapper: "d8",
Dan Willemsen84e89a22021-09-20 23:37:53 -070057 static_libs: ["r8"],
58 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",
68 wrapper: "r8-compat-proguard",
Dan Willemsen84e89a22021-09-20 23:37:53 -070069 static_libs: ["r8"],
Yohann Roussel4055b812017-10-23 11:46:43 +020070}
71
Ian Zerny1648f4b2021-11-17 09:03:49 +010072java_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
79java_binary_host {
80 name: "extractmarker",
81 main_class: "com.android.tools.r8.ExtractMarker",
82 static_libs: ["r8"],
83}
84
Yohann Roussel4055b812017-10-23 11:46:43 +020085java_import_host {
Dan Willemsen84e89a22021-09-20 23:37:53 -070086 name: "r8",
87 jars: ["r8.jar"],
88 target: {
89 windows: {
90 enabled: true,
91 },
92 },
Yohann Roussel4055b812017-10-23 11:46:43 +020093}