blob: 9dd6cfb286c84f857c8c7b9c56e85c47a71294fe [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",
Bernie Innocenti0f167432018-05-17 22:25:54 +090019 "liblog",
ludi6e8eccd2017-08-14 14:40:37 -070020 ],
21 export_shared_lib_headers: [
22 "libbase",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090023 ],
24 export_include_dirs: ["include"],
25}
26
27cc_test {
28 name: "netdutils_test",
29 srcs: [
Erik Klined739c212018-04-24 23:09:39 +090030 "BackoffSequenceTest.cpp",
31 "FdTest.cpp",
Erik Klinea41902f2018-05-02 18:07:31 +090032 "MemBlockTest.cpp",
Bernie Innocenti0f167432018-05-17 22:25:54 +090033 "OperationLimiterTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090034 "SliceTest.cpp",
35 "StatusTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090036 "SyscallsTest.cpp",
37 ],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070038 cflags: [
39 "-Wall",
40 "-Werror",
41 "-Wno-error=unused-variable",
42 ],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090043 static_libs: ["libgmock"],
Bernie Innocenti0f167432018-05-17 22:25:54 +090044 shared_libs: [
45 "libbase",
46 "libnetdutils",
47 ],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090048}