aboutsummaryrefslogtreecommitdiff
path: root/third_party/NXPNFC_P61_JCOP_Kit/Android.bp
blob: 708e3f80bd1cf4ed64f005a5288a4e692913915f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//#####################################
// Build shared library vendor/lib/libp61-jcop-kit.so

package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "external_libese_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["external_libese_license"],
}

cc_library_shared {
    name: "libp61-jcop-kit",
    proprietary: true,

    shared_libs: [
        "libcutils",
        "liblog",
        "libdl",
        "libhardware",
    ],
    cflags: [
        "-DNXP_LDR_SVC_VER_2=TRUE",
        "-Wall",
        // "-Werror", // has multiple warnings with some asan-userdebug target
        "-Wno-format",
        "-Wno-parentheses-equality",
        "-Wno-tautological-constant-out-of-range-compare",
        "-Wno-unused-function",
        "-Wno-unused-parameter",
        "-Wno-unused-variable",
    ],
    export_include_dirs: [
        "include/",
        "inc/",
    ],
    srcs: [
        "src/AlaLib.cpp",
        "src/JcopOsDownload.cpp",
        "src/JcDnld.cpp",
        "src/Ala.cpp",
    ],

}