blob: e43e7f9b8ff46bd52c3e818cce66fa542ef614e2 [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",
Erik Kline93dd1dd2018-01-27 21:53:06 +09009 "SocketOption.cpp",
Joel Scherpelzde937962017-06-01 13:20:21 +090010 "Status.cpp",
11 "Syscalls.cpp",
12 "UniqueFd.cpp",
Joel Scherpelz01cc5492017-06-16 10:45:14 +090013 "UniqueFile.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090014 ],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070015 cflags: ["-Wall", "-Werror"],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090016 shared_libs: [
17 "libbase",
ludi6e8eccd2017-08-14 14:40:37 -070018 "libbinder",
19 ],
20 export_shared_lib_headers: [
21 "libbase",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090022 ],
23 export_include_dirs: ["include"],
24}
25
26cc_test {
27 name: "netdutils_test",
28 srcs: [
Erik Klinea41902f2018-05-02 18:07:31 +090029 "MemBlockTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090030 "SliceTest.cpp",
31 "StatusTest.cpp",
32 "FdTest.cpp",
33 "SyscallsTest.cpp",
34 ],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070035 cflags: [
36 "-Wall",
37 "-Werror",
38 "-Wno-error=unused-variable",
39 ],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090040 static_libs: ["libgmock"],
41 shared_libs: ["libnetdutils"],
42}