xref: /aosp_15_r20/external/v4l2_codec2/Android.bp (revision 0ec5a0ec62797f775085659156625e7f1bdb369f)
1*0ec5a0ecSAndroid Build Coastguard Worker//
2*0ec5a0ecSAndroid Build Coastguard Worker// Copyright (C) 2021 The Android Open Source Project
3*0ec5a0ecSAndroid Build Coastguard Worker//
4*0ec5a0ecSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*0ec5a0ecSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*0ec5a0ecSAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*0ec5a0ecSAndroid Build Coastguard Worker//
8*0ec5a0ecSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*0ec5a0ecSAndroid Build Coastguard Worker//
10*0ec5a0ecSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*0ec5a0ecSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*0ec5a0ecSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*0ec5a0ecSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*0ec5a0ecSAndroid Build Coastguard Worker// limitations under the License.
15*0ec5a0ecSAndroid Build Coastguard Worker
16*0ec5a0ecSAndroid Build Coastguard Worker// This project defines a module named libc2plugin_store which is installed into
17*0ec5a0ecSAndroid Build Coastguard Worker// $OUT/vendor/lib/libc2plugin_store.so. Although the module can be overridden,
18*0ec5a0ecSAndroid Build Coastguard Worker// the output filename cannot (b/204136549).
19*0ec5a0ecSAndroid Build Coastguard Worker//
20*0ec5a0ecSAndroid Build Coastguard Worker// See README.md for how to use the implementation from v4l2_codec2.
21*0ec5a0ecSAndroid Build Coastguard Workersoong_namespace {
22*0ec5a0ecSAndroid Build Coastguard Worker    // No imports
23*0ec5a0ecSAndroid Build Coastguard Worker}
24*0ec5a0ecSAndroid Build Coastguard Worker
25*0ec5a0ecSAndroid Build Coastguard Workerpackage {
26*0ec5a0ecSAndroid Build Coastguard Worker    default_applicable_licenses: ["external_v4l2_codec2_license"],
27*0ec5a0ecSAndroid Build Coastguard Worker}
28*0ec5a0ecSAndroid Build Coastguard Worker
29*0ec5a0ecSAndroid Build Coastguard Worker// Added automatically by a large-scale-change that took the approach of
30*0ec5a0ecSAndroid Build Coastguard Worker// 'apply every license found to every target'. While this makes sure we respect
31*0ec5a0ecSAndroid Build Coastguard Worker// every license restriction, it may not be entirely correct.
32*0ec5a0ecSAndroid Build Coastguard Worker//
33*0ec5a0ecSAndroid Build Coastguard Worker// e.g. GPL in an MIT project might only apply to the contrib/ directory.
34*0ec5a0ecSAndroid Build Coastguard Worker//
35*0ec5a0ecSAndroid Build Coastguard Worker// Please consider splitting the single license below into multiple licenses,
36*0ec5a0ecSAndroid Build Coastguard Worker// taking care not to lose any license_kind information, and overriding the
37*0ec5a0ecSAndroid Build Coastguard Worker// default license using the 'licenses: [...]' property on targets as needed.
38*0ec5a0ecSAndroid Build Coastguard Worker//
39*0ec5a0ecSAndroid Build Coastguard Worker// For unused files, consider creating a 'fileGroup' with "//visibility:private"
40*0ec5a0ecSAndroid Build Coastguard Worker// to attach the license to, and including a comment whether the files may be
41*0ec5a0ecSAndroid Build Coastguard Worker// used in the current project.
42*0ec5a0ecSAndroid Build Coastguard Worker// See: http://go/android-license-faq
43*0ec5a0ecSAndroid Build Coastguard Workerlicense {
44*0ec5a0ecSAndroid Build Coastguard Worker    name: "external_v4l2_codec2_license",
45*0ec5a0ecSAndroid Build Coastguard Worker    visibility: [":__subpackages__"],
46*0ec5a0ecSAndroid Build Coastguard Worker    license_kinds: [
47*0ec5a0ecSAndroid Build Coastguard Worker        "SPDX-license-identifier-BSD",
48*0ec5a0ecSAndroid Build Coastguard Worker        "legacy_unencumbered",
49*0ec5a0ecSAndroid Build Coastguard Worker    ],
50*0ec5a0ecSAndroid Build Coastguard Worker    license_text: [
51*0ec5a0ecSAndroid Build Coastguard Worker        "NOTICE",
52*0ec5a0ecSAndroid Build Coastguard Worker    ],
53*0ec5a0ecSAndroid Build Coastguard Worker}