Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 1 | // Build the unit tests, |
| 2 | |
| 3 | // Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 4 | // to integrate with auto-test framework. |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 5 | package { |
| 6 | // See: http://go/android-license-faq |
| 7 | // A large-scale-change added 'default_applicable_licenses' to import |
| 8 | // all of the 'license_kinds' from "frameworks_native_license" |
| 9 | // to get the below license kinds: |
| 10 | // SPDX-license-identifier-Apache-2.0 |
| 11 | default_applicable_licenses: ["frameworks_native_license"], |
| 12 | } |
| 13 | |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 14 | cc_test { |
| 15 | name: "libgui_test", |
Dan Shi | 9cd5206 | 2017-03-29 23:09:37 -0700 | [diff] [blame] | 16 | test_suites: ["device-tests"], |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 17 | |
Chih-Hung Hsieh | d66be0a | 2017-10-05 13:51:32 -0700 | [diff] [blame] | 18 | cflags: [ |
| 19 | "-Wall", |
| 20 | "-Werror", |
| 21 | ], |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 22 | |
| 23 | srcs: [ |
Nolan Scobie | cfa41bf | 2023-06-14 15:13:18 -0400 | [diff] [blame^] | 24 | "LibGuiMain.cpp", // Custom gtest entrypoint |
Valerie Hau | c5011f9 | 2019-10-11 09:52:07 -0700 | [diff] [blame] | 25 | "BLASTBufferQueue_test.cpp", |
Yahan Zhou | 3cbda59 | 2020-08-03 15:53:27 -0700 | [diff] [blame] | 26 | "BufferItemConsumer_test.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 27 | "BufferQueue_test.cpp", |
Dominik Laskowski | 5a5e01e | 2022-07-08 07:52:44 -0700 | [diff] [blame] | 28 | "CompositorTiming_test.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 29 | "CpuConsumer_test.cpp", |
Robert Carr | 1c4c559 | 2018-09-24 13:18:43 -0700 | [diff] [blame] | 30 | "EndToEndNativeInputTest.cpp", |
Prabir Pradhan | 48f8cb9 | 2021-08-26 14:05:36 -0700 | [diff] [blame] | 31 | "DisplayInfo_test.cpp", |
Kevin DuBois | 9c0a176 | 2018-10-16 13:32:31 -0700 | [diff] [blame] | 32 | "DisplayedContentSampling_test.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 33 | "FillBuffer.cpp", |
| 34 | "GLTest.cpp", |
| 35 | "IGraphicBufferProducer_test.cpp", |
Dan Stoza | 47730d6 | 2017-05-16 15:12:48 -0700 | [diff] [blame] | 36 | "Malicious.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 37 | "MultiTextureConsumer_test.cpp", |
Kevin DuBois | 4df38a4 | 2019-02-14 12:59:43 -0800 | [diff] [blame] | 38 | "RegionSampling_test.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 39 | "StreamSplitter_test.cpp", |
| 40 | "SurfaceTextureClient_test.cpp", |
| 41 | "SurfaceTextureFBO_test.cpp", |
| 42 | "SurfaceTextureGLThreadToGL_test.cpp", |
| 43 | "SurfaceTextureGLToGL_test.cpp", |
| 44 | "SurfaceTextureGL_test.cpp", |
| 45 | "SurfaceTextureMultiContextGL_test.cpp", |
| 46 | "Surface_test.cpp", |
| 47 | "TextureRenderer.cpp", |
Rachel Lee | 18c3437 | 2022-01-20 13:57:18 -0800 | [diff] [blame] | 48 | "VsyncEventData_test.cpp", |
chaviw | 98318de | 2021-05-19 16:45:23 -0500 | [diff] [blame] | 49 | "WindowInfo_test.cpp", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 50 | ], |
| 51 | |
| 52 | shared_libs: [ |
Courtney Goeltzenleuchter | 6a570b6 | 2017-03-13 14:30:00 -0600 | [diff] [blame] | 53 | "android.hardware.configstore@1.0", |
| 54 | "android.hardware.configstore-utils", |
Sundong Ahn | e6e7d44 | 2020-04-23 21:31:20 +0900 | [diff] [blame] | 55 | "libSurfaceFlingerProp", |
Yiwei Zhang | 5434a78 | 2018-12-05 18:06:32 -0800 | [diff] [blame] | 56 | "libbase", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 57 | "liblog", |
| 58 | "libEGL", |
| 59 | "libGLESv1_CM", |
| 60 | "libGLESv2", |
| 61 | "libbinder", |
| 62 | "libcutils", |
| 63 | "libgui", |
Courtney Goeltzenleuchter | 6a570b6 | 2017-03-13 14:30:00 -0600 | [diff] [blame] | 64 | "libhidlbase", |
Robert Carr | 3720ed0 | 2018-08-08 16:08:27 -0700 | [diff] [blame] | 65 | "libinput", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 66 | "libui", |
| 67 | "libutils", |
Prabir Pradhan | 48f8cb9 | 2021-08-26 14:05:36 -0700 | [diff] [blame] | 68 | "libnativewindow", |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 69 | ], |
Sundong Ahn | e6e7d44 | 2020-04-23 21:31:20 +0900 | [diff] [blame] | 70 | |
| 71 | header_libs: ["libsurfaceflinger_headers"], |
Dan Willemsen | 3106c1c | 2016-10-03 23:56:51 -0700 | [diff] [blame] | 72 | } |
Jiwen 'Steve' Cai | c90a77f | 2018-01-14 15:42:29 -0800 | [diff] [blame] | 73 | |
Yahan Zhou | 3cbda59 | 2020-08-03 15:53:27 -0700 | [diff] [blame] | 74 | // Build the tests that need to run with both 32bit and 64bit. |
| 75 | cc_test { |
| 76 | name: "libgui_multilib_test", |
| 77 | test_suites: ["device-tests"], |
| 78 | |
Yahan Zhou | 3cbda59 | 2020-08-03 15:53:27 -0700 | [diff] [blame] | 79 | cflags: [ |
| 80 | "-Wall", |
| 81 | "-Werror", |
| 82 | ], |
| 83 | |
| 84 | srcs: [ |
| 85 | "DisplayEventStructLayout_test.cpp", |
| 86 | ], |
| 87 | |
| 88 | shared_libs: [ |
| 89 | "libgui", |
| 90 | ], |
| 91 | |
| 92 | compile_multilib: "both", |
| 93 | |
| 94 | header_libs: ["libsurfaceflinger_headers"], |
jahinimtiaz | 63138ec | 2023-03-14 00:07:50 +0000 | [diff] [blame] | 95 | data: [ |
| 96 | ":libgui_test", |
| 97 | ], |
Yahan Zhou | 3cbda59 | 2020-08-03 15:53:27 -0700 | [diff] [blame] | 98 | } |
| 99 | |
Dan Stoza | ec46008 | 2018-12-17 15:35:09 -0800 | [diff] [blame] | 100 | cc_test { |
| 101 | name: "SamplingDemo", |
| 102 | |
Dan Stoza | ec46008 | 2018-12-17 15:35:09 -0800 | [diff] [blame] | 103 | cflags: [ |
| 104 | "-Wall", |
| 105 | "-Werror", |
| 106 | ], |
| 107 | |
| 108 | srcs: [ |
| 109 | "SamplingDemo.cpp", |
| 110 | ], |
| 111 | |
| 112 | shared_libs: [ |
| 113 | "libbinder", |
| 114 | "libcutils", |
| 115 | "libgui", |
| 116 | "liblog", |
| 117 | "libui", |
| 118 | "libutils", |
Prabir Pradhan | 48f8cb9 | 2021-08-26 14:05:36 -0700 | [diff] [blame] | 119 | ], |
Dan Stoza | ec46008 | 2018-12-17 15:35:09 -0800 | [diff] [blame] | 120 | } |