blob: 5294b9320a67888e966fef2488b4aeafcf8c73b8 [file] [log] [blame]
Jordan Demeulenaere4b33ade2022-07-25 14:06:54 +02001//
2// Copyright (C) 2022 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//
16
17// README:
18// - Before expanding the visiblity of any of the targets in this file,
19// please add a test that covers the new dependencies in the TEST_MAPPING file
20// of this directory. We cannot guarantee that ExoPlayer dependents will not
21// be accidentally broken if it is not covered by presubmit.
22// - The names in this files follow the pattern exoplayer-dep_name[-module_name]
23// where dep_name identifies the client, and module_name disambiguates the
24// module for cases where necessary (example: The same client depends
25// separately on two exoplayer modules).
26
27package {
28 default_applicable_licenses: ["external_ktfmt_license"],
29}
30
31
32license {
33 name: "external_ktfmt_license",
34 visibility: [":__subpackages__"],
35 license_kinds: [
36 "SPDX-license-identifier-Apache-2.0",
37 ],
38 license_text: [
39 "LICENSE",
40 ],
41}
42
43java_binary_host {
44 name: "ktfmt",
45 manifest: "MANIFEST.mf",
46 srcs: ["core/src/main/**/*.kt"],
47 static_libs: [
48 "kotlin-stdlib-jdk7",
49 "kotlin-compiler-embeddable",
50 "google_java_format",
51 "guava",
52 "trove-prebuilt",
53 "jna-prebuilt",
54 ],
55}