blob: ba3c3c9c546da466f2f53b016917fb888137f8c7 [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 Klined739c212018-04-24 23:09:39 +090029 "BackoffSequenceTest.cpp",
30 "FdTest.cpp",
Erik Klinea41902f2018-05-02 18:07:31 +090031 "MemBlockTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090032 "SliceTest.cpp",
33 "StatusTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090034 "SyscallsTest.cpp",
35 ],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070036 cflags: [
37 "-Wall",
38 "-Werror",
39 "-Wno-error=unused-variable",
40 ],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090041 static_libs: ["libgmock"],
42 shared_libs: ["libnetdutils"],
43}