xref: /aosp_15_r20/external/ktfmt/Android.bp (revision 5be3f65c8cf0e6db0a7e312df5006e8e93cdf9ec)
1*5be3f65cSAndroid Build Coastguard Worker//
2*5be3f65cSAndroid Build Coastguard Worker// Copyright (C) 2022 The Android Open Source Project
3*5be3f65cSAndroid Build Coastguard Worker//
4*5be3f65cSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*5be3f65cSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*5be3f65cSAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*5be3f65cSAndroid Build Coastguard Worker//
8*5be3f65cSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*5be3f65cSAndroid Build Coastguard Worker//
10*5be3f65cSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*5be3f65cSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*5be3f65cSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*5be3f65cSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*5be3f65cSAndroid Build Coastguard Worker// limitations under the License.
15*5be3f65cSAndroid Build Coastguard Worker//
16*5be3f65cSAndroid Build Coastguard Worker
17*5be3f65cSAndroid Build Coastguard Worker// README:
18*5be3f65cSAndroid Build Coastguard Worker// - Before expanding the visiblity of any of the targets in this file,
19*5be3f65cSAndroid Build Coastguard Worker//   please add a test that covers the new dependencies in the TEST_MAPPING file
20*5be3f65cSAndroid Build Coastguard Worker//   of this directory. We cannot guarantee that ExoPlayer dependents will not
21*5be3f65cSAndroid Build Coastguard Worker//   be accidentally broken if it is not covered by presubmit.
22*5be3f65cSAndroid Build Coastguard Worker// - The names in this files follow the pattern exoplayer-dep_name[-module_name]
23*5be3f65cSAndroid Build Coastguard Worker//   where dep_name identifies the client, and module_name disambiguates the
24*5be3f65cSAndroid Build Coastguard Worker//   module for cases where necessary (example: The same client depends
25*5be3f65cSAndroid Build Coastguard Worker//   separately on two exoplayer modules).
26*5be3f65cSAndroid Build Coastguard Worker
27*5be3f65cSAndroid Build Coastguard Workerpackage {
28*5be3f65cSAndroid Build Coastguard Worker    default_applicable_licenses: ["external_ktfmt_license"],
29*5be3f65cSAndroid Build Coastguard Worker}
30*5be3f65cSAndroid Build Coastguard Worker
31*5be3f65cSAndroid Build Coastguard Worker
32*5be3f65cSAndroid Build Coastguard Workerlicense {
33*5be3f65cSAndroid Build Coastguard Worker    name: "external_ktfmt_license",
34*5be3f65cSAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
35*5be3f65cSAndroid Build Coastguard Worker    license_kinds: [
36*5be3f65cSAndroid Build Coastguard Worker        "SPDX-license-identifier-Apache-2.0",
37*5be3f65cSAndroid Build Coastguard Worker    ],
38*5be3f65cSAndroid Build Coastguard Worker    license_text: [
39*5be3f65cSAndroid Build Coastguard Worker        "LICENSE",
40*5be3f65cSAndroid Build Coastguard Worker    ],
41*5be3f65cSAndroid Build Coastguard Worker}
42*5be3f65cSAndroid Build Coastguard Worker
43*5be3f65cSAndroid Build Coastguard Workerjava_binary_host {
44*5be3f65cSAndroid Build Coastguard Worker    name: "ktfmt",
45*5be3f65cSAndroid Build Coastguard Worker    manifest: "MANIFEST.mf",
46*5be3f65cSAndroid Build Coastguard Worker    srcs: ["core/src/main/**/*.kt"],
47*5be3f65cSAndroid Build Coastguard Worker    static_libs: [
48*5be3f65cSAndroid Build Coastguard Worker        "kotlin-stdlib-jdk7",
49*5be3f65cSAndroid Build Coastguard Worker        "kotlin-compiler-embeddable",
50*5be3f65cSAndroid Build Coastguard Worker        "google_java_format",
51*5be3f65cSAndroid Build Coastguard Worker        "guava",
52*5be3f65cSAndroid Build Coastguard Worker        "trove-prebuilt",
53*5be3f65cSAndroid Build Coastguard Worker        "jna-prebuilt",
54*5be3f65cSAndroid Build Coastguard Worker    ],
55*5be3f65cSAndroid Build Coastguard Worker}
56