blob: a6295e038711a5749ae9e570dc00fa7fc99d7b38 [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",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070020 "FillBuffer.cpp",
21 "GLTest.cpp",
22 "IGraphicBufferProducer_test.cpp",
Dan Stoza47730d62017-05-16 15:12:48 -070023 "Malicious.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070024 "MultiTextureConsumer_test.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070025 "StreamSplitter_test.cpp",
26 "SurfaceTextureClient_test.cpp",
27 "SurfaceTextureFBO_test.cpp",
28 "SurfaceTextureGLThreadToGL_test.cpp",
29 "SurfaceTextureGLToGL_test.cpp",
30 "SurfaceTextureGL_test.cpp",
31 "SurfaceTextureMultiContextGL_test.cpp",
32 "Surface_test.cpp",
33 "TextureRenderer.cpp",
34 ],
35
36 shared_libs: [
Courtney Goeltzenleuchter6a570b62017-03-13 14:30:00 -060037 "android.hardware.configstore@1.0",
38 "android.hardware.configstore-utils",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070039 "liblog",
40 "libEGL",
41 "libGLESv1_CM",
42 "libGLESv2",
43 "libbinder",
44 "libcutils",
45 "libgui",
Courtney Goeltzenleuchter6a570b62017-03-13 14:30:00 -060046 "libhidlbase",
47 "libhidltransport",
Robert Carr3720ed02018-08-08 16:08:27 -070048 "libinput",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070049 "libui",
50 "libutils",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080051 "libnativewindow"
Dan Willemsen3106c1c2016-10-03 23:56:51 -070052 ],
53}
Jiwen 'Steve' Caic90a77f2018-01-14 15:42:29 -080054
Siarhei Vishniakou4f5daff2018-06-12 16:51:38 +010055// Build a separate binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
56// This test has a main method, and requires a separate binary to be built.
57// To add move tests like this, just add additional cc_test statements,
58// as opposed to adding more source files to this one.
Jiwen 'Steve' Caic90a77f2018-01-14 15:42:29 -080059cc_test {
Siarhei Vishniakou4f5daff2018-06-12 16:51:38 +010060 name: "SurfaceParcelable_test",
Jiwen 'Steve' Caic90a77f2018-01-14 15:42:29 -080061 test_suites: ["device-tests"],
62
63 clang: true,
64 cflags: [
65 "-Wall",
66 "-Werror",
67 ],
68
Jiwen 'Steve' Caic90a77f2018-01-14 15:42:29 -080069 srcs: [
70 "SurfaceParcelable_test.cpp",
71 ],
72
73 shared_libs: [
74 "liblog",
75 "libbinder",
76 "libcutils",
77 "libgui",
78 "libui",
79 "libutils",
80 "libbufferhubqueue", // TODO(b/70046255): Remove these once BufferHub is integrated into libgui.
81 "libpdx_default_transport",
82 ],
83
84 header_libs: [
85 "libdvr_headers",
86 ],
87}