xref: /aosp_15_r20/system/nfc/conf/Android.bp (revision 7eba2f3b06c51ae21384f6a4f14577b668a869b3)
1*7eba2f3bSAndroid Build Coastguard Worker// Copyright (C) 2020 The Android Open Source Project
2*7eba2f3bSAndroid Build Coastguard Worker//
3*7eba2f3bSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*7eba2f3bSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*7eba2f3bSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*7eba2f3bSAndroid Build Coastguard Worker//
7*7eba2f3bSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*7eba2f3bSAndroid Build Coastguard Worker//
9*7eba2f3bSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*7eba2f3bSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*7eba2f3bSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*7eba2f3bSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*7eba2f3bSAndroid Build Coastguard Worker// limitations under the License.
14*7eba2f3bSAndroid Build Coastguard Worker
15*7eba2f3bSAndroid Build Coastguard Workerpackage {
16*7eba2f3bSAndroid Build Coastguard Worker    // See: http://go/android-license-faq
17*7eba2f3bSAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
18*7eba2f3bSAndroid Build Coastguard Worker    // all of the 'license_kinds' from "system_nfc_license"
19*7eba2f3bSAndroid Build Coastguard Worker    // to get the below license kinds:
20*7eba2f3bSAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
21*7eba2f3bSAndroid Build Coastguard Worker    default_applicable_licenses: ["system_nfc_license"],
22*7eba2f3bSAndroid Build Coastguard Worker}
23*7eba2f3bSAndroid Build Coastguard Worker
24*7eba2f3bSAndroid Build Coastguard Workersoong_config_module_type {
25*7eba2f3bSAndroid Build Coastguard Worker    name: "libnfc_nci_default_conf_prebuilt_etc",
26*7eba2f3bSAndroid Build Coastguard Worker    module_type: "prebuilt_etc",
27*7eba2f3bSAndroid Build Coastguard Worker    config_namespace: "libnfc_nci_default_conf",
28*7eba2f3bSAndroid Build Coastguard Worker    variables: [
29*7eba2f3bSAndroid Build Coastguard Worker        "product_type",
30*7eba2f3bSAndroid Build Coastguard Worker    ],
31*7eba2f3bSAndroid Build Coastguard Worker    properties: [
32*7eba2f3bSAndroid Build Coastguard Worker        "src",
33*7eba2f3bSAndroid Build Coastguard Worker    ],
34*7eba2f3bSAndroid Build Coastguard Worker}
35*7eba2f3bSAndroid Build Coastguard Worker
36*7eba2f3bSAndroid Build Coastguard Workersoong_config_string_variable {
37*7eba2f3bSAndroid Build Coastguard Worker    name: "product_type",
38*7eba2f3bSAndroid Build Coastguard Worker    values: [
39*7eba2f3bSAndroid Build Coastguard Worker        "wearable",
40*7eba2f3bSAndroid Build Coastguard Worker    ],
41*7eba2f3bSAndroid Build Coastguard Worker}
42*7eba2f3bSAndroid Build Coastguard Worker
43*7eba2f3bSAndroid Build Coastguard Workerlibnfc_nci_default_conf_prebuilt_etc {
44*7eba2f3bSAndroid Build Coastguard Worker    name: "libnfc-nci.conf-default",
45*7eba2f3bSAndroid Build Coastguard Worker    soong_config_variables: {
46*7eba2f3bSAndroid Build Coastguard Worker        product_type: {
47*7eba2f3bSAndroid Build Coastguard Worker            wearable: {
48*7eba2f3bSAndroid Build Coastguard Worker                src: "libnfc-nci.wearable.conf",
49*7eba2f3bSAndroid Build Coastguard Worker            },
50*7eba2f3bSAndroid Build Coastguard Worker            conditions_default: {
51*7eba2f3bSAndroid Build Coastguard Worker                src: "libnfc-nci.conf",
52*7eba2f3bSAndroid Build Coastguard Worker            },
53*7eba2f3bSAndroid Build Coastguard Worker        },
54*7eba2f3bSAndroid Build Coastguard Worker    },
55*7eba2f3bSAndroid Build Coastguard Worker    filename: "libnfc-nci.conf",
56*7eba2f3bSAndroid Build Coastguard Worker}
57