xref: /aosp_15_r20/prebuilts/sdk/tools/jetifier/jetifier-standalone/Android.bp (revision 344a7f5ef16c479e7a7f54ee6567a9d112f9e72b)
1*344a7f5eSAndroid Build Coastguard Worker// Copyright (C) 2018 The Android Open Source Project
2*344a7f5eSAndroid Build Coastguard Worker//
3*344a7f5eSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*344a7f5eSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*344a7f5eSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*344a7f5eSAndroid Build Coastguard Worker//
7*344a7f5eSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*344a7f5eSAndroid Build Coastguard Worker//
9*344a7f5eSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*344a7f5eSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*344a7f5eSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*344a7f5eSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*344a7f5eSAndroid Build Coastguard Worker// limitations under the License.
14*344a7f5eSAndroid Build Coastguard Worker
15*344a7f5eSAndroid Build Coastguard Workerpackage {
16*344a7f5eSAndroid Build Coastguard Worker    // See: http://go/android-license-faq
17*344a7f5eSAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
18*344a7f5eSAndroid Build Coastguard Worker    // all of the 'license_kinds' from "prebuilts_sdk_license"
19*344a7f5eSAndroid Build Coastguard Worker    // to get the below license kinds:
20*344a7f5eSAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
21*344a7f5eSAndroid Build Coastguard Worker    default_applicable_licenses: ["prebuilts_sdk_license"],
22*344a7f5eSAndroid Build Coastguard Worker}
23*344a7f5eSAndroid Build Coastguard Worker
24*344a7f5eSAndroid Build Coastguard Workerjava_import_host {
25*344a7f5eSAndroid Build Coastguard Worker    name: "jetifier-prebuilt-jar",
26*344a7f5eSAndroid Build Coastguard Worker    jars: ["lib/*.jar"],
27*344a7f5eSAndroid Build Coastguard Worker}
28*344a7f5eSAndroid Build Coastguard Worker
29*344a7f5eSAndroid Build Coastguard Workerjava_binary_host {
30*344a7f5eSAndroid Build Coastguard Worker    name: "jetifier",
31*344a7f5eSAndroid Build Coastguard Worker    static_libs: [
32*344a7f5eSAndroid Build Coastguard Worker        "jetifier-prebuilt-jar",
33*344a7f5eSAndroid Build Coastguard Worker    ],
34*344a7f5eSAndroid Build Coastguard Worker    main_class: "com.android.tools.build.jetifier.standalone.Main",
35*344a7f5eSAndroid Build Coastguard Worker}
36