blob: c124aa733cb5c9b9d7233b9194f0a2444a7a6a2a [file] [log] [blame]
Tri Voa4267722017-08-16 10:19:02 -07001cc_library {
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +09002 name: "libnetdutils",
3 srcs: [
Luke Huangb257d612019-03-14 21:19:13 +08004 "DumpWriter.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +09005 "Fd.cpp",
Erik Klined26a2c22018-05-11 19:33:19 +09006 "InternetAddresses.cpp",
Erik Klineb31fd692018-06-06 20:50:11 +09007 "Log.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +09008 "Netfilter.cpp",
9 "Netlink.cpp",
10 "Slice.cpp",
Joel Scherpelzde937962017-06-01 13:20:21 +090011 "Socket.cpp",
Erik Kline93dd1dd2018-01-27 21:53:06 +090012 "SocketOption.cpp",
Joel Scherpelzde937962017-06-01 13:20:21 +090013 "Status.cpp",
14 "Syscalls.cpp",
15 "UniqueFd.cpp",
Joel Scherpelz01cc5492017-06-16 10:45:14 +090016 "UniqueFile.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090017 ],
Erik Klineab999f12018-07-04 11:29:31 +090018 defaults: ["netd_defaults"],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070019 cflags: ["-Wall", "-Werror"],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090020 shared_libs: [
21 "libbase",
Bernie Innocenti0f167432018-05-17 22:25:54 +090022 "liblog",
ludi6e8eccd2017-08-14 14:40:37 -070023 ],
24 export_shared_lib_headers: [
25 "libbase",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090026 ],
27 export_include_dirs: ["include"],
Ken Chen2e413c32020-01-13 11:59:53 +080028 sanitize: {
29 cfi: true,
Ken Chen2e413c32020-01-13 11:59:53 +080030 },
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090031}
32
33cc_test {
34 name: "netdutils_test",
35 srcs: [
Erik Klined739c212018-04-24 23:09:39 +090036 "BackoffSequenceTest.cpp",
37 "FdTest.cpp",
Erik Klined26a2c22018-05-11 19:33:19 +090038 "InternetAddressesTest.cpp",
Erik Klineb31fd692018-06-06 20:50:11 +090039 "LogTest.cpp",
Erik Klinea41902f2018-05-02 18:07:31 +090040 "MemBlockTest.cpp",
Bernie Innocenti0f167432018-05-17 22:25:54 +090041 "OperationLimiterTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090042 "SliceTest.cpp",
43 "StatusTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090044 "SyscallsTest.cpp",
Mike Yuc6d4c6b2019-03-14 15:14:44 +080045 "ThreadUtilTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090046 ],
Erik Klineab999f12018-07-04 11:29:31 +090047 defaults: ["netd_defaults"],
Bernie Innocenti25dd4d32018-07-19 18:08:45 +090048 test_suites: ["device-tests"],
Erik Klineb31fd692018-06-06 20:50:11 +090049 static_libs: [
50 "libgmock",
51 "libnetdutils",
52 ],
Bernie Innocenti0f167432018-05-17 22:25:54 +090053 shared_libs: [
54 "libbase",
Bernie Innocenti0f167432018-05-17 22:25:54 +090055 ],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090056}