Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_native_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_native_license"], |
John Reck | 38bc8a8 | 2024-02-21 17:08:27 -0500 | [diff] [blame] | 8 | default_team: "trendy_team_android_core_graphics_stack", |
Bob Badour | 3306e49 | 2021-02-25 15:35:37 -0800 | [diff] [blame] | 9 | } |
| 10 | |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 11 | cc_defaults { |
| 12 | name: "libcompositionengine_defaults", |
Sally Qi | 6920a2f | 2022-08-26 10:40:05 -0700 | [diff] [blame] | 13 | defaults: [ |
Ted Bauer | aaa910d | 2024-04-30 15:24:50 +0000 | [diff] [blame] | 14 | "aconfig_lib_cc_static_link.defaults", |
Sally Qi | 6920a2f | 2022-08-26 10:40:05 -0700 | [diff] [blame] | 15 | "android.hardware.graphics.composer3-ndk_shared", |
Matt Buckley | cc14642 | 2023-06-28 19:14:02 +0000 | [diff] [blame] | 16 | "android.hardware.power-ndk_shared", |
Nolan Scobie | 8ef7e14 | 2022-10-14 10:52:43 -0400 | [diff] [blame] | 17 | "librenderengine_deps", |
Devin Moore | a188980 | 2023-05-22 21:29:09 +0000 | [diff] [blame] | 18 | "libtimestats_deps", |
Sally Qi | 6920a2f | 2022-08-26 10:40:05 -0700 | [diff] [blame] | 19 | "surfaceflinger_defaults", |
| 20 | ], |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 21 | cflags: [ |
| 22 | "-DLOG_TAG=\"CompositionEngine\"", |
Lloyd Pique | 05b67b9 | 2019-09-25 13:16:44 -0700 | [diff] [blame] | 23 | "-DATRACE_TAG=ATRACE_TAG_GRAPHICS", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 24 | ], |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 25 | shared_libs: [ |
| 26 | "android.hardware.graphics.allocator@2.0", |
| 27 | "android.hardware.graphics.composer@2.1", |
| 28 | "android.hardware.graphics.composer@2.2", |
| 29 | "android.hardware.graphics.composer@2.3", |
Dominik Laskowski | 25a4e7d | 2019-09-20 14:50:10 -0700 | [diff] [blame] | 30 | "android.hardware.graphics.composer@2.4", |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 31 | "android.hardware.power@1.0", |
| 32 | "android.hardware.power@1.3", |
| 33 | "libbase", |
| 34 | "libcutils", |
| 35 | "libgui", |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 36 | "liblog", |
Lloyd Pique | 31cb294 | 2018-10-19 17:23:03 -0700 | [diff] [blame] | 37 | "libnativewindow", |
Alec Mouri | e4034bb | 2019-11-19 12:45:54 -0800 | [diff] [blame] | 38 | "libprotobuf-cpp-lite", |
Dan Stoza | 269dc4d | 2021-01-15 15:07:43 -0800 | [diff] [blame] | 39 | "libSurfaceFlingerProp", |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 40 | "libui", |
| 41 | "libutils", |
Alec Mouri | f97df4d | 2023-09-06 02:10:05 +0000 | [diff] [blame] | 42 | "server_configurable_flags", |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 43 | ], |
| 44 | static_libs: [ |
Devin Moore | a188980 | 2023-05-22 21:29:09 +0000 | [diff] [blame] | 45 | "liblayers_proto", |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 46 | "libmath", |
| 47 | "librenderengine", |
Devin Moore | a188980 | 2023-05-22 21:29:09 +0000 | [diff] [blame] | 48 | "libtimestats", |
Alec Mouri | 465b296 | 2021-10-08 16:22:21 -0700 | [diff] [blame] | 49 | "libtonemap", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 50 | "libaidlcommonsupport", |
Vishnu Nair | a314038 | 2022-02-24 14:07:11 -0800 | [diff] [blame] | 51 | "libprocessgroup", |
T.J. Mercier | 25b772b | 2024-08-09 20:31:26 +0000 | [diff] [blame^] | 52 | "libprocessgroup_util", |
Vishnu Nair | a314038 | 2022-02-24 14:07:11 -0800 | [diff] [blame] | 53 | "libcgrouprc", |
| 54 | "libjsoncpp", |
| 55 | "libcgrouprc_format", |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 56 | ], |
| 57 | header_libs: [ |
Lloyd Pique | 37c2c9b | 2018-12-04 17:25:10 -0800 | [diff] [blame] | 58 | "android.hardware.graphics.composer@2.1-command-buffer", |
| 59 | "android.hardware.graphics.composer@2.2-command-buffer", |
| 60 | "android.hardware.graphics.composer@2.3-command-buffer", |
Peiyong Lin | afa0f57 | 2020-01-13 16:35:02 -0800 | [diff] [blame] | 61 | "android.hardware.graphics.composer@2.4-command-buffer", |
Ady Abraham | e7385f7 | 2021-09-05 00:54:25 -0700 | [diff] [blame] | 62 | "android.hardware.graphics.composer3-command-buffer", |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 63 | "libsurfaceflinger_headers", |
| 64 | ], |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 65 | } |
| 66 | |
Alec Mouri | f97df4d | 2023-09-06 02:10:05 +0000 | [diff] [blame] | 67 | filegroup { |
| 68 | name: "libcompositionengine_sources", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 69 | srcs: [ |
Dan Stoza | 6166c31 | 2021-01-15 16:34:05 -0800 | [diff] [blame] | 70 | "src/planner/CachedSet.cpp", |
| 71 | "src/planner/Flattener.cpp", |
Dan Stoza | 269dc4d | 2021-01-15 15:07:43 -0800 | [diff] [blame] | 72 | "src/planner/LayerState.cpp", |
| 73 | "src/planner/Planner.cpp", |
Dan Stoza | 47437bb | 2021-01-15 16:21:07 -0800 | [diff] [blame] | 74 | "src/planner/Predictor.cpp", |
Alec Mouri | df6201b | 2021-06-01 16:20:42 -0700 | [diff] [blame] | 75 | "src/planner/TexturePool.cpp", |
Vishnu Nair | 9b079a2 | 2020-01-21 14:36:08 -0800 | [diff] [blame] | 76 | "src/ClientCompositionRequestCache.cpp", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 77 | "src/CompositionEngine.cpp", |
Lloyd Pique | 45a165a | 2018-10-19 11:54:47 -0700 | [diff] [blame] | 78 | "src/Display.cpp", |
Lloyd Pique | 3d0c02e | 2018-10-19 18:38:12 -0700 | [diff] [blame] | 79 | "src/DisplayColorProfile.cpp", |
Lloyd Pique | 542307f | 2018-10-19 13:24:08 -0700 | [diff] [blame] | 80 | "src/DisplaySurface.cpp", |
Lloyd Pique | 32cbe28 | 2018-10-19 13:09:22 -0700 | [diff] [blame] | 81 | "src/DumpHelpers.cpp", |
Vishnu Nair | a314038 | 2022-02-24 14:07:11 -0800 | [diff] [blame] | 82 | "src/HwcAsyncWorker.cpp", |
Lloyd Pique | 76ed703 | 2018-12-04 17:24:28 -0800 | [diff] [blame] | 83 | "src/HwcBufferCache.cpp", |
Lloyd Pique | 9755fb7 | 2019-03-26 14:44:40 -0700 | [diff] [blame] | 84 | "src/LayerFECompositionState.cpp", |
Lloyd Pique | 32cbe28 | 2018-10-19 13:09:22 -0700 | [diff] [blame] | 85 | "src/Output.cpp", |
| 86 | "src/OutputCompositionState.cpp", |
Lloyd Pique | cc01a45 | 2018-12-04 17:24:00 -0800 | [diff] [blame] | 87 | "src/OutputLayer.cpp", |
Lloyd Pique | 37c2c9b | 2018-12-04 17:25:10 -0800 | [diff] [blame] | 88 | "src/OutputLayerCompositionState.cpp", |
Lloyd Pique | 31cb294 | 2018-10-19 17:23:03 -0700 | [diff] [blame] | 89 | "src/RenderSurface.cpp", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 90 | ], |
Alec Mouri | f97df4d | 2023-09-06 02:10:05 +0000 | [diff] [blame] | 91 | } |
| 92 | |
| 93 | cc_library { |
| 94 | name: "libcompositionengine", |
| 95 | defaults: ["libcompositionengine_defaults"], |
| 96 | static_libs: [ |
| 97 | "libsurfaceflinger_common", |
| 98 | "libsurfaceflingerflags", |
| 99 | ], |
| 100 | srcs: [ |
| 101 | ":libcompositionengine_sources", |
| 102 | ], |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 103 | local_include_dirs: ["include"], |
| 104 | export_include_dirs: ["include"], |
Leon Scroggins III | 2f60d73 | 2022-09-12 14:42:38 -0400 | [diff] [blame] | 105 | shared_libs: [ |
| 106 | "server_configurable_flags", |
| 107 | ], |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 108 | } |
| 109 | |
| 110 | cc_library { |
| 111 | name: "libcompositionengine_mocks", |
| 112 | defaults: ["libcompositionengine_defaults"], |
| 113 | srcs: [ |
| 114 | "mock/CompositionEngine.cpp", |
Lloyd Pique | 45a165a | 2018-10-19 11:54:47 -0700 | [diff] [blame] | 115 | "mock/Display.cpp", |
Lloyd Pique | 3d0c02e | 2018-10-19 18:38:12 -0700 | [diff] [blame] | 116 | "mock/DisplayColorProfile.cpp", |
Lloyd Pique | 542307f | 2018-10-19 13:24:08 -0700 | [diff] [blame] | 117 | "mock/DisplaySurface.cpp", |
Lloyd Pique | feb73d7 | 2018-12-04 17:23:44 -0800 | [diff] [blame] | 118 | "mock/LayerFE.cpp", |
chaviw | 8beb414 | 2019-04-11 13:09:05 -0700 | [diff] [blame] | 119 | "mock/NativeWindow.cpp", |
Lloyd Pique | 32cbe28 | 2018-10-19 13:09:22 -0700 | [diff] [blame] | 120 | "mock/Output.cpp", |
Lloyd Pique | cc01a45 | 2018-12-04 17:24:00 -0800 | [diff] [blame] | 121 | "mock/OutputLayer.cpp", |
Lloyd Pique | 31cb294 | 2018-10-19 17:23:03 -0700 | [diff] [blame] | 122 | "mock/RenderSurface.cpp", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 123 | ], |
| 124 | static_libs: [ |
| 125 | "libgtest", |
| 126 | "libgmock", |
| 127 | "libcompositionengine", |
Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 128 | "libsurfaceflinger_common_test", |
Ady Abraham | 529bd9f | 2023-10-05 14:55:30 -0700 | [diff] [blame] | 129 | "libsurfaceflingerflags_test", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 130 | ], |
Leon Scroggins III | 2f60d73 | 2022-09-12 14:42:38 -0400 | [diff] [blame] | 131 | shared_libs: [ |
| 132 | "server_configurable_flags", |
| 133 | ], |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 134 | local_include_dirs: ["include"], |
| 135 | export_include_dirs: ["include"], |
| 136 | } |
| 137 | |
| 138 | cc_test { |
| 139 | name: "libcompositionengine_test", |
| 140 | test_suites: ["device-tests"], |
Leon Scroggins III | ab551a3 | 2023-11-22 10:08:25 -0500 | [diff] [blame] | 141 | include_dirs: [ |
| 142 | "frameworks/native/services/surfaceflinger/common/include", |
| 143 | "frameworks/native/services/surfaceflinger/tests/unittests", |
| 144 | ], |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 145 | defaults: ["libcompositionengine_defaults"], |
| 146 | srcs: [ |
Alec Mouri | f97df4d | 2023-09-06 02:10:05 +0000 | [diff] [blame] | 147 | ":libcompositionengine_sources", |
Ady Abraham | cf027d6 | 2021-03-02 18:48:57 -0800 | [diff] [blame] | 148 | "tests/planner/CachedSetTest.cpp", |
Ady Abraham | b7db410 | 2021-03-04 12:19:26 -0800 | [diff] [blame] | 149 | "tests/planner/FlattenerTest.cpp", |
Alec Mouri | eb920d9 | 2021-03-01 17:48:30 -0800 | [diff] [blame] | 150 | "tests/planner/LayerStateTest.cpp", |
Alec Mouri | f6a684b | 2021-03-09 13:00:18 -0800 | [diff] [blame] | 151 | "tests/planner/PredictorTest.cpp", |
Alec Mouri | df6201b | 2021-06-01 16:20:42 -0700 | [diff] [blame] | 152 | "tests/planner/TexturePoolTest.cpp", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 153 | "tests/CompositionEngineTest.cpp", |
Lloyd Pique | 3d0c02e | 2018-10-19 18:38:12 -0700 | [diff] [blame] | 154 | "tests/DisplayColorProfileTest.cpp", |
Lloyd Pique | 45a165a | 2018-10-19 11:54:47 -0700 | [diff] [blame] | 155 | "tests/DisplayTest.cpp", |
Lloyd Pique | 76ed703 | 2018-12-04 17:24:28 -0800 | [diff] [blame] | 156 | "tests/HwcBufferCacheTest.cpp", |
Lloyd Pique | 35d5824 | 2018-12-18 16:33:25 -0800 | [diff] [blame] | 157 | "tests/MockHWC2.cpp", |
Lloyd Pique | 441d504 | 2018-10-18 16:49:51 -0700 | [diff] [blame] | 158 | "tests/MockHWComposer.cpp", |
Lloyd Pique | 688abd4 | 2019-02-15 15:42:24 -0800 | [diff] [blame] | 159 | "tests/MockPowerAdvisor.cpp", |
Lloyd Pique | cc01a45 | 2018-12-04 17:24:00 -0800 | [diff] [blame] | 160 | "tests/OutputLayerTest.cpp", |
Marin Shalamanov | 68933fb | 2020-09-10 17:58:12 +0200 | [diff] [blame] | 161 | "tests/OutputTest.cpp", |
| 162 | "tests/ProjectionSpaceTest.cpp", |
Lloyd Pique | 31cb294 | 2018-10-19 17:23:03 -0700 | [diff] [blame] | 163 | "tests/RenderSurfaceTest.cpp", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 164 | ], |
| 165 | static_libs: [ |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 166 | "libcompositionengine_mocks", |
Lloyd Pique | aad4ebf | 2019-10-03 17:58:30 -0700 | [diff] [blame] | 167 | "libgui_mocks", |
Lloyd Pique | b97e04f | 2018-10-18 17:07:05 -0700 | [diff] [blame] | 168 | "librenderengine_mocks", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 169 | "libgmock", |
| 170 | "libgtest", |
Alec Mouri | 9b133ca | 2023-11-14 19:00:01 +0000 | [diff] [blame] | 171 | "libsurfaceflinger_common_test", |
Ady Abraham | 529bd9f | 2023-10-05 14:55:30 -0700 | [diff] [blame] | 172 | "libsurfaceflingerflags_test", |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 173 | ], |
Ian Elliott | 1f0911e | 2022-09-09 16:31:47 -0600 | [diff] [blame] | 174 | shared_libs: [ |
Leon Scroggins III | 2f60d73 | 2022-09-12 14:42:38 -0400 | [diff] [blame] | 175 | // For some reason, libvulkan isn't picked up from librenderengine |
| 176 | // Probably ASAN related? |
Ian Elliott | 1f0911e | 2022-09-09 16:31:47 -0600 | [diff] [blame] | 177 | "libvulkan", |
Leon Scroggins III | 2f60d73 | 2022-09-12 14:42:38 -0400 | [diff] [blame] | 178 | "server_configurable_flags", |
Ian Elliott | 1f0911e | 2022-09-09 16:31:47 -0600 | [diff] [blame] | 179 | ], |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 180 | sanitize: { |
Florian Mayer | d3fe83a | 2023-09-13 14:19:28 -0700 | [diff] [blame] | 181 | hwaddress: true, |
Lloyd Pique | 70d9136 | 2018-10-18 16:02:55 -0700 | [diff] [blame] | 182 | }, |
| 183 | } |