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