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
46
47
48
49
50
| cc_defaults {
| name: "nfc_utils_defaults",
| include_dirs: [
| "system/nfc",
| ],
| cflags: [
| "-Wall",
| "-Werror",
| ],
| target: {
| linux_glibc: {
| cflags: ["-D_GNU_SOURCE"],
| },
| darwin: {
| enabled: false,
| },
| },
| }
|
| cc_library_static {
| name: "libnfcutils",
| defaults: ["nfc_utils_defaults"],
| export_include_dirs: ["include"],
| host_supported: true,
| srcs: [
| "config.cc",
| "ringbuffer.cc",
| ],
| shared_libs: [
| "libbase",
| ],
| }
|
| cc_test {
| name: "nfc_test_utils",
| defaults: ["nfc_utils_defaults"],
| test_suites: ["device-tests"],
| host_supported: true,
| srcs: [
| "test/config_test.cc",
| "test/ringbuffer_test.cc",
| ],
| static_libs: [
| "libnfcutils",
| "libgmock",
| ],
| shared_libs: [
| "libbase",
| ],
| }
|
|