blob: eed0bd9fca4b909ab8171bdb438a328c16d605c5 [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: [
29 "SliceTest.cpp",
30 "StatusTest.cpp",
31 "FdTest.cpp",
32 "SyscallsTest.cpp",
33 ],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070034 cflags: [
35 "-Wall",
36 "-Werror",
37 "-Wno-error=unused-variable",
38 ],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090039 static_libs: ["libgmock"],
40 shared_libs: ["libnetdutils"],
41}