blob: 818c1967d1df8782ca50720d2aee9156deb478e1 [file] [log] [blame]
Tri Voa4267722017-08-16 10:19:02 -07001cc_library {
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +09002 name: "libnetdutils",
3 srcs: [
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +09004 "Fd.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +09005 "Netfilter.cpp",
6 "Netlink.cpp",
7 "Slice.cpp",
Joel Scherpelzde937962017-06-01 13:20:21 +09008 "Socket.cpp",
9 "Status.cpp",
10 "Syscalls.cpp",
11 "UniqueFd.cpp",
Joel Scherpelz01cc5492017-06-16 10:45:14 +090012 "UniqueFile.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090013 ],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070014 cflags: ["-Wall", "-Werror"],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090015 shared_libs: [
16 "libbase",
ludi6e8eccd2017-08-14 14:40:37 -070017 "libbinder",
18 ],
19 export_shared_lib_headers: [
20 "libbase",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090021 ],
22 export_include_dirs: ["include"],
23}
24
25cc_test {
26 name: "netdutils_test",
27 srcs: [
28 "SliceTest.cpp",
29 "StatusTest.cpp",
30 "FdTest.cpp",
31 "SyscallsTest.cpp",
32 ],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070033 cflags: [
34 "-Wall",
35 "-Werror",
36 "-Wno-error=unused-variable",
37 ],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090038 static_libs: ["libgmock"],
39 shared_libs: ["libnetdutils"],
40}