blob: 908959ce1aae41fc55feed5be731a38b093dd784 [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",
19 "FillBuffer.cpp",
20 "GLTest.cpp",
21 "IGraphicBufferProducer_test.cpp",
Dan Stoza47730d62017-05-16 15:12:48 -070022 "Malicious.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070023 "MultiTextureConsumer_test.cpp",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070024 "StreamSplitter_test.cpp",
25 "SurfaceTextureClient_test.cpp",
26 "SurfaceTextureFBO_test.cpp",
27 "SurfaceTextureGLThreadToGL_test.cpp",
28 "SurfaceTextureGLToGL_test.cpp",
29 "SurfaceTextureGL_test.cpp",
30 "SurfaceTextureMultiContextGL_test.cpp",
31 "Surface_test.cpp",
32 "TextureRenderer.cpp",
33 ],
34
35 shared_libs: [
Courtney Goeltzenleuchter6a570b62017-03-13 14:30:00 -060036 "android.hardware.configstore@1.0",
37 "android.hardware.configstore-utils",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070038 "liblog",
39 "libEGL",
40 "libGLESv1_CM",
41 "libGLESv2",
42 "libbinder",
43 "libcutils",
44 "libgui",
Courtney Goeltzenleuchter6a570b62017-03-13 14:30:00 -060045 "libhidlbase",
46 "libhidltransport",
Dan Willemsen3106c1c2016-10-03 23:56:51 -070047 "libui",
48 "libutils",
Mathias Agopian89ed4c82017-02-09 18:48:34 -080049 "libnativewindow"
Dan Willemsen3106c1c2016-10-03 23:56:51 -070050 ],
51}