1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "hardware_st_nfc_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["hardware_st_nfc_license"],
8}
9
10cc_defaults {
11    name: "android.hardware.nfc-service.st_default",
12    cflags: [
13        "-Wall",
14        "-Wextra",
15    ],
16    shared_libs: [
17        "libbase",
18        "liblog",
19        "libutils",
20        "libbinder_ndk",
21        "android.hardware.nfc-V1-ndk",
22        "nfc_nci.st21nfc.default",
23    ],
24    srcs: [
25        "Nfc.cpp",
26        "hal_st21nfc.cc",
27    ],
28    arch: {
29        arm: {
30            cflags: ["-DST_LIB_32"],
31        },
32    },
33}
34
35cc_binary {
36    name: "android.hardware.nfc-service.st",
37    defaults: ["android.hardware.nfc-service.st_default"],
38    relative_install_path: "hw",
39    init_rc: ["nfc-service-default.rc"],
40    vintf_fragments: ["nfc-service-default.xml"],
41    vendor: true,
42    cflags: [
43        "-Wall",
44        "-Wextra",
45    ],
46    shared_libs: [
47        "libbase",
48        "liblog",
49        "libutils",
50        "libbinder_ndk",
51        "android.hardware.nfc-V1-ndk",
52        "nfc_nci.st21nfc.default",
53    ],
54    srcs: [
55        "main.cpp",
56    ],
57    arch: {
58        arm: {
59            cflags: ["-DST_LIB_32"],
60        },
61    },
62}
63
64cc_fuzz {
65    name: "nfc_service_fuzzer",
66    defaults: [
67        "android.hardware.nfc-service.st_default",
68        "service_fuzzer_defaults",
69    ],
70    srcs: [
71        "fuzzer/NfcServiceFuzzer.cpp",
72    ],
73    vendor: true,
74}
75