Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 1 | // APCT build target for metrics tests |
| 2 | |
| 3 | cc_benchmark { |
| 4 | name: "netd_benchmark", |
Erik Kline | ab999f1 | 2018-07-04 11:29:31 +0900 | [diff] [blame] | 5 | defaults: ["netd_defaults"], |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 6 | shared_libs: [ |
| 7 | "libbase", |
Luke Huang | 8879730 | 2020-05-11 20:52:07 +0000 | [diff] [blame] | 8 | "libbinder_ndk", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 9 | "liblog", |
| 10 | "libnetd_client", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 11 | "libnetdutils", |
Bernie Innocenti | bad28e7 | 2019-06-27 14:35:53 +0900 | [diff] [blame] | 12 | "libutils", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 13 | ], |
| 14 | static_libs: [ |
Luke Huang | 8879730 | 2020-05-11 20:52:07 +0000 | [diff] [blame] | 15 | "libnetd_test_dnsresponder_ndk", |
| 16 | "dnsresolver_aidl_interface-unstable-ndk_platform", |
| 17 | "netd_aidl_interface-cpp", // system/netd/server/UidRanges.h |
| 18 | "netd_aidl_interface-ndk_platform", |
| 19 | "netd_event_listener_interface-ndk_platform", |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 20 | ], |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 21 | aidl: { |
| 22 | include_dirs: ["system/netd/server/binder"], |
| 23 | }, |
| 24 | include_dirs: [ |
| 25 | "system/netd/include", |
| 26 | "system/netd/client", |
| 27 | "system/netd/server", |
| 28 | "system/netd/server/binder", |
chenbruce | a7d6b81 | 2019-06-28 16:37:36 +0800 | [diff] [blame] | 29 | ], |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 30 | srcs: [ |
Bernie Innocenti | 37ceb53 | 2018-06-11 21:10:44 +0900 | [diff] [blame] | 31 | "main.cpp", |
| 32 | "connect_benchmark.cpp", |
| 33 | "dns_benchmark.cpp", |
| 34 | ], |
| 35 | } |
Chenbo Feng | d3e2956 | 2018-08-24 15:05:01 -0700 | [diff] [blame] | 36 | |
| 37 | cc_benchmark { |
| 38 | name: "bpf_benchmark", |
| 39 | defaults: ["netd_defaults"], |
Steven Moreland | aa86bef | 2020-01-14 11:11:48 -0800 | [diff] [blame] | 40 | require_root: true, |
Chenbo Feng | d3e2956 | 2018-08-24 15:05:01 -0700 | [diff] [blame] | 41 | shared_libs: [ |
| 42 | "libbase", |
Chenbo Feng | a54aaf5 | 2018-11-07 17:51:51 -0800 | [diff] [blame] | 43 | "libbpf_android", |
Chenbo Feng | d3e2956 | 2018-08-24 15:05:01 -0700 | [diff] [blame] | 44 | "libnetdutils", |
| 45 | ], |
Chenbo Feng | d3e2956 | 2018-08-24 15:05:01 -0700 | [diff] [blame] | 46 | srcs: [ |
| 47 | "bpf_benchmark.cpp", |
| 48 | ], |
| 49 | } |