blob: ab6dcaa3f6614d0d8aa3da35bf4022c1b876e3e0 [file] [log] [blame]
Dan Willemsen3106c1c2016-10-03 23:56:51 -07001// Build the unit tests,
2
3// Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
4// to integrate with auto-test framework.
5cc_test {
6 name: "libgui_test",
Dan Shi9cd52062017-03-29 23:09:37 -07007 test_suites: ["device-tests"],
Dan Willemsen3106c1c2016-10-03 23:56:51 -07008
9 clang: true,
Chih-Hung Hsiehd66be0a2017-10-05 13:51:32 -070010 cflags: [
11 "-Wall",
12 "-Werror",
13 ],
Dan Willemsen3106c1c2016-10-03 23:56:51 -070014
15 srcs: [
Jiwen 'Steve' Caiaf7b2a12017-03-19 12:26:10 -070016 "BufferItemConsumer_test.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070017 "BufferQueue_test.cpp",
18 "CpuConsumer_test.cpp",
Robert Carr1c4c5592018-09-24 13:18:43 -070019 "EndToEndNativeInputTest.cpp",
Kevin DuBois9c0a1762018-10-16 13:32:31 -070020 "DisplayedContentSampling_test.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070021 "FillBuffer.cpp",
22 "GLTest.cpp",
23 "IGraphicBufferProducer_test.cpp",
Dan Stoza47730d62017-05-16 15:12:48 -070024 "Malicious.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070025 "MultiTextureConsumer_test.cpp",
Kevin DuBois4df38a42019-02-14 12:59:43 -080026 "RegionSampling_test.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070027 "StreamSplitter_test.cpp",
28 "SurfaceTextureClient_test.cpp",
29 "SurfaceTextureFBO_test.cpp",
30 "SurfaceTextureGLThreadToGL_test.cpp",
31 "SurfaceTextureGLToGL_test.cpp",
32 "SurfaceTextureGL_test.cpp",
33 "SurfaceTextureMultiContextGL_test.cpp",
34 "Surface_test.cpp",
35 "TextureRenderer.cpp",
36 ],
37
38 shared_libs: [
Courtney Goeltzenleuchter6a570b62017-03-13 14:30:00 -060039 "android.hardware.configstore@1.0",
40 "android.hardware.configstore-utils",
Yiwei Zhang5434a782018-12-05 18:06:32 -080041 "libbase",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070042 "liblog",
43 "libEGL",
44 "libGLESv1_CM",
45 "libGLESv2",
46 "libbinder",
47 "libcutils",
48 "libgui",
Courtney Goeltzenleuchter6a570b62017-03-13 14:30:00 -060049 "libhidlbase",
50 "libhidltransport",
Robert Carr3720ed02018-08-08 16:08:27 -070051 "libinput",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070052 "libui",
53 "libutils",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080054 "libnativewindow"
Dan Willemsen3106c1c2016-10-03 23:56:51 -070055 ],
56}
Jiwen 'Steve' Caic90a77f2018-01-14 15:42:29 -080057
Siarhei Vishniakou4f5daff2018-06-12 16:51:38 +010058// Build a separate binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
59// This test has a main method, and requires a separate binary to be built.
60// To add move tests like this, just add additional cc_test statements,
61// as opposed to adding more source files to this one.
Jiwen 'Steve' Caic90a77f2018-01-14 15:42:29 -080062cc_test {
Siarhei Vishniakou4f5daff2018-06-12 16:51:38 +010063 name: "SurfaceParcelable_test",
Jiwen 'Steve' Caic90a77f2018-01-14 15:42:29 -080064 test_suites: ["device-tests"],
65
66 clang: true,
67 cflags: [
68 "-Wall",
69 "-Werror",
70 ],
71
Jiwen 'Steve' Caic90a77f2018-01-14 15:42:29 -080072 srcs: [
73 "SurfaceParcelable_test.cpp",
74 ],
75
76 shared_libs: [
77 "liblog",
78 "libbinder",
79 "libcutils",
80 "libgui",
81 "libui",
82 "libutils",
83 "libbufferhubqueue", // TODO(b/70046255): Remove these once BufferHub is integrated into libgui.
84 "libpdx_default_transport",
85 ],
86
87 header_libs: [
88 "libdvr_headers",
89 ],
90}
Dan Stozaec460082018-12-17 15:35:09 -080091
92cc_test {
93 name: "SamplingDemo",
94
95 clang: true,
96 cflags: [
97 "-Wall",
98 "-Werror",
99 ],
100
101 srcs: [
102 "SamplingDemo.cpp",
103 ],
104
105 shared_libs: [
106 "libbinder",
107 "libcutils",
108 "libgui",
109 "liblog",
110 "libui",
111 "libutils",
112 ]
113}