blob: e0601223bffe50b29ea3f4abd3507dae6b3e4227 [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 ],
Erik Klineab999f12018-07-04 11:29:31 +090015 defaults: ["netd_defaults"],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070016 cflags: ["-Wall", "-Werror"],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090017 shared_libs: [
18 "libbase",
ludi6e8eccd2017-08-14 14:40:37 -070019 "libbinder",
Bernie Innocenti0f167432018-05-17 22:25:54 +090020 "liblog",
ludi6e8eccd2017-08-14 14:40:37 -070021 ],
22 export_shared_lib_headers: [
23 "libbase",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090024 ],
25 export_include_dirs: ["include"],
26}
27
28cc_test {
29 name: "netdutils_test",
30 srcs: [
Erik Klined739c212018-04-24 23:09:39 +090031 "BackoffSequenceTest.cpp",
32 "FdTest.cpp",
Erik Klinea41902f2018-05-02 18:07:31 +090033 "MemBlockTest.cpp",
Bernie Innocenti0f167432018-05-17 22:25:54 +090034 "OperationLimiterTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090035 "SliceTest.cpp",
36 "StatusTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090037 "SyscallsTest.cpp",
38 ],
Erik Klineab999f12018-07-04 11:29:31 +090039 defaults: ["netd_defaults"],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070040 cflags: [
41 "-Wall",
42 "-Werror",
43 "-Wno-error=unused-variable",
44 ],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090045 static_libs: ["libgmock"],
Bernie Innocenti0f167432018-05-17 22:25:54 +090046 shared_libs: [
47 "libbase",
48 "libnetdutils",
49 ],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090050}