blob: 5eba913ac3eb0fc7f858e20a27dc958a33c94a7e [file] [log] [blame]
Stephen Kiazyke77dce22017-03-14 15:38:12 -07001
Corey Tabaka52ea25c2017-09-13 18:02:48 -07002header_libraries = [
3 "libdvr_headers",
4]
Stephen Kiazyke77dce22017-03-14 15:38:12 -07005
6shared_libraries = [
7 "libbase",
8 "libbinder",
9 "libcutils",
10 "libgui",
11 "liblog",
12 "libhardware",
13 "libui",
14 "libutils",
Jiwen 'Steve' Cai9665d912017-09-01 10:19:47 -070015 "libnativewindow",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070016]
17
18static_libraries = [
19 "libbufferhubqueue",
20 "libbufferhub",
21 "libchrome",
22 "libdvrcommon",
23 "libpdx_default_transport",
Jiwen 'Steve' Cai9665d912017-09-01 10:19:47 -070024 "libperformance",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070025]
26
27cc_test {
28 srcs: ["buffer_hub_queue-test.cpp"],
Corey Tabaka52ea25c2017-09-13 18:02:48 -070029 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070030 static_libs: static_libraries,
31 shared_libs: shared_libraries,
32 cflags: [
Jiwen 'Steve' Cai2d82ceb2017-03-22 17:26:00 -070033 "-DLOG_TAG=\"buffer_hub_queue-test\"",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070034 "-DTRACE=0",
35 "-O0",
36 "-g",
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070037 "-Wall",
38 "-Werror",
39 "-Wno-error=sign-compare", // to fix later
Stephen Kiazyke77dce22017-03-14 15:38:12 -070040 ],
41 name: "buffer_hub_queue-test",
42 tags: ["optional"],
43}
44
45cc_test {
46 srcs: ["buffer_hub_queue_producer-test.cpp"],
Corey Tabaka52ea25c2017-09-13 18:02:48 -070047 header_libs: header_libraries,
Stephen Kiazyke77dce22017-03-14 15:38:12 -070048 static_libs: static_libraries,
49 shared_libs: shared_libraries,
50 cflags: [
Jiwen 'Steve' Cai2d82ceb2017-03-22 17:26:00 -070051 "-DLOG_TAG=\"buffer_hub_queue_producer-test\"",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070052 "-DTRACE=0",
53 "-O0",
54 "-g",
Chih-Hung Hsiehe1900832017-10-05 14:27:38 -070055 "-Wall",
56 "-Werror",
Stephen Kiazyke77dce22017-03-14 15:38:12 -070057 ],
58 name: "buffer_hub_queue_producer-test",
59 tags: ["optional"],
60}
Jiwen 'Steve' Cai9665d912017-09-01 10:19:47 -070061
Jiwen 'Steve' Cai2f1ead92017-10-26 16:14:51 -070062cc_benchmark {
Jiwen 'Steve' Cai9665d912017-09-01 10:19:47 -070063 srcs: ["buffer_transport_benchmark.cpp"],
64 static_libs: static_libraries,
65 shared_libs: shared_libraries,
66 header_libs: header_libraries,
67 cflags: [
68 "-DLOG_TAG=\"buffer_transport_benchmark\"",
69 "-DTRACE=0",
70 "-O2",
Chih-Hung Hsieh30a2d052017-12-05 10:53:48 -080071 "-Wall",
72 "-Werror",
Jiwen 'Steve' Cai9665d912017-09-01 10:19:47 -070073 ],
74 name: "buffer_transport_benchmark",
75 tags: ["optional"],
76}