blob: 78466ac555a8a0ab866223e6a044c98ea2206738 [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",
Erik Klineb31fd692018-06-06 20:50:11 +09005 "Log.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +09006 "Netfilter.cpp",
7 "Netlink.cpp",
8 "Slice.cpp",
Joel Scherpelzde937962017-06-01 13:20:21 +09009 "Socket.cpp",
Erik Kline93dd1dd2018-01-27 21:53:06 +090010 "SocketOption.cpp",
Joel Scherpelzde937962017-06-01 13:20:21 +090011 "Status.cpp",
12 "Syscalls.cpp",
13 "UniqueFd.cpp",
Joel Scherpelz01cc5492017-06-16 10:45:14 +090014 "UniqueFile.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090015 ],
Erik Klineab999f12018-07-04 11:29:31 +090016 defaults: ["netd_defaults"],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070017 cflags: ["-Wall", "-Werror"],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090018 shared_libs: [
19 "libbase",
ludi6e8eccd2017-08-14 14:40:37 -070020 "libbinder",
Bernie Innocenti0f167432018-05-17 22:25:54 +090021 "liblog",
ludi6e8eccd2017-08-14 14:40:37 -070022 ],
23 export_shared_lib_headers: [
24 "libbase",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090025 ],
26 export_include_dirs: ["include"],
27}
28
29cc_test {
30 name: "netdutils_test",
31 srcs: [
Erik Klined739c212018-04-24 23:09:39 +090032 "BackoffSequenceTest.cpp",
33 "FdTest.cpp",
Erik Klineb31fd692018-06-06 20:50:11 +090034 "LogTest.cpp",
Erik Klinea41902f2018-05-02 18:07:31 +090035 "MemBlockTest.cpp",
Bernie Innocenti0f167432018-05-17 22:25:54 +090036 "OperationLimiterTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090037 "SliceTest.cpp",
38 "StatusTest.cpp",
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090039 "SyscallsTest.cpp",
40 ],
Erik Klineab999f12018-07-04 11:29:31 +090041 defaults: ["netd_defaults"],
Chih-Hung Hsieh638f7872017-10-02 10:36:07 -070042 cflags: [
43 "-Wall",
44 "-Werror",
45 "-Wno-error=unused-variable",
46 ],
Erik Klineb31fd692018-06-06 20:50:11 +090047 static_libs: [
48 "libgmock",
49 "libnetdutils",
50 ],
Bernie Innocenti0f167432018-05-17 22:25:54 +090051 shared_libs: [
52 "libbase",
Bernie Innocenti0f167432018-05-17 22:25:54 +090053 ],
Joel Scherpelzf3fa5cc2017-05-22 12:30:03 +090054}