• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cc_library {
2    name: "libnetdutils",
3    srcs: [
4        "Fd.cpp",
5        "Netfilter.cpp",
6        "Netlink.cpp",
7        "Slice.cpp",
8        "Socket.cpp",
9        "SocketOption.cpp",
10        "Status.cpp",
11        "Syscalls.cpp",
12        "UniqueFd.cpp",
13        "UniqueFile.cpp",
14    ],
15    cflags: ["-Wall", "-Werror"],
16    shared_libs: [
17        "libbase",
18        "libbinder",
19        "liblog",
20    ],
21    export_shared_lib_headers: [
22        "libbase",
23    ],
24    export_include_dirs: ["include"],
25}
26
27cc_test {
28    name: "netdutils_test",
29    srcs: [
30        "BackoffSequenceTest.cpp",
31        "FdTest.cpp",
32        "MemBlockTest.cpp",
33        "OperationLimiterTest.cpp",
34        "SliceTest.cpp",
35        "StatusTest.cpp",
36        "SyscallsTest.cpp",
37    ],
38    cflags: [
39        "-Wall",
40        "-Werror",
41        "-Wno-error=unused-variable",
42    ],
43    static_libs: ["libgmock"],
44    shared_libs: [
45        "libbase",
46        "libnetdutils",
47    ],
48}
49