xref: /aosp_15_r20/external/nist-sip/Android.bp (revision 4dd4ff528b8b07036318f5d4191b0009f17bc7b3)
1*4dd4ff52SXin Li// Copyright (C) 2017 The Android Open Source Project
2*4dd4ff52SXin Li//
3*4dd4ff52SXin Li// Licensed under the Apache License, Version 2.0 (the "License");
4*4dd4ff52SXin Li// you may not use this file except in compliance with the License.
5*4dd4ff52SXin Li// You may obtain a copy of the License at
6*4dd4ff52SXin Li//
7*4dd4ff52SXin Li//      http://www.apache.org/licenses/LICENSE-2.0
8*4dd4ff52SXin Li//
9*4dd4ff52SXin Li// Unless required by applicable law or agreed to in writing, software
10*4dd4ff52SXin Li// distributed under the License is distributed on an "AS IS" BASIS,
11*4dd4ff52SXin Li// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*4dd4ff52SXin Li// See the License for the specific language governing permissions and
13*4dd4ff52SXin Li// limitations under the License.
14*4dd4ff52SXin Li
15*4dd4ff52SXin Lipackage {
16*4dd4ff52SXin Li    default_applicable_licenses: ["external_nist-sip_license"],
17*4dd4ff52SXin Li}
18*4dd4ff52SXin Li
19*4dd4ff52SXin Li// Added automatically by a large-scale-change that took the approach of
20*4dd4ff52SXin Li// 'apply every license found to every target'. While this makes sure we respect
21*4dd4ff52SXin Li// every license restriction, it may not be entirely correct.
22*4dd4ff52SXin Li//
23*4dd4ff52SXin Li// e.g. GPL in an MIT project might only apply to the contrib/ directory.
24*4dd4ff52SXin Li//
25*4dd4ff52SXin Li// Please consider splitting the single license below into multiple licenses,
26*4dd4ff52SXin Li// taking care not to lose any license_kind information, and overriding the
27*4dd4ff52SXin Li// default license using the 'licenses: [...]' property on targets as needed.
28*4dd4ff52SXin Li//
29*4dd4ff52SXin Li// For unused files, consider creating a 'fileGroup' with "//visibility:private"
30*4dd4ff52SXin Li// to attach the license to, and including a comment whether the files may be
31*4dd4ff52SXin Li// used in the current project.
32*4dd4ff52SXin Li//
33*4dd4ff52SXin Li// large-scale-change included anything that looked like it might be a license
34*4dd4ff52SXin Li// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
35*4dd4ff52SXin Li//
36*4dd4ff52SXin Li// Please consider removing redundant or irrelevant files from 'license_text:'.
37*4dd4ff52SXin Li// See: http://go/android-license-faq
38*4dd4ff52SXin Lilicense {
39*4dd4ff52SXin Li    name: "external_nist-sip_license",
40*4dd4ff52SXin Li    visibility: [":__subpackages__"],
41*4dd4ff52SXin Li    license_kinds: [
42*4dd4ff52SXin Li        "SPDX-license-identifier-Apache-2.0",
43*4dd4ff52SXin Li        "legacy_unencumbered",
44*4dd4ff52SXin Li    ],
45*4dd4ff52SXin Li    license_text: [
46*4dd4ff52SXin Li        "NOTICE",
47*4dd4ff52SXin Li        "licenses/**/*",
48*4dd4ff52SXin Li    ],
49*4dd4ff52SXin Li}
50*4dd4ff52SXin Li
51*4dd4ff52SXin Lijava_library_static {
52*4dd4ff52SXin Li    name: "nist-sip",
53*4dd4ff52SXin Li    srcs: ["java/**/*.java"],
54*4dd4ff52SXin Li    sdk_version: "core_current",
55*4dd4ff52SXin Li    errorprone: {
56*4dd4ff52SXin Li        javacflags: [
57*4dd4ff52SXin Li            "-Xep:MissingOverride:OFF",  // Ignore missing @Override.
58*4dd4ff52SXin Li            "-Xep:HashtableContains:OFF",
59*4dd4ff52SXin Li            "-Xep:RandomModInteger:OFF",
60*4dd4ff52SXin Li            "-Xep:InvalidTimeZoneID:OFF",
61*4dd4ff52SXin Li        ],
62*4dd4ff52SXin Li    },
63*4dd4ff52SXin Li    lint: {
64*4dd4ff52SXin Li        warning_checks: ["SuspiciousIndentation"],
65*4dd4ff52SXin Li    },
66*4dd4ff52SXin Li}
67