1 // Copyright (C) 2015 The Android Open Source Project
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 // =====================
17 // =====================
19 name: "libdrmhwc_utils",
21 srcs: ["utils/Worker.cpp"],
24 "external/drm_hwcomposer",
25 "external/drm_hwcomposer/include",
37 // =====================
39 // =====================
41 name: "hwcomposer.drm_defaults",
55 "external/drm_hwcomposer",
56 "external/drm_hwcomposer/include",
59 static_libs: ["libdrmhwc_utils"],
67 "-DHWC2_INCLUDE_STRINGIFICATION",
72 platform_sdk_version: {
73 cflags: ["-DPLATFORM_SDK_VERSION=%d"],
77 relative_install_path: "hw",
82 name: "drm_hwcomposer_common",
86 "bufferinfo/BufferInfoGetter.cpp",
87 "bufferinfo/BufferInfoMapperMetadata.cpp",
89 "compositor/DrmDisplayComposition.cpp",
90 "compositor/DrmDisplayCompositor.cpp",
91 "compositor/Planner.cpp",
93 "drm/DrmConnector.cpp",
97 "drm/DrmFbImporter.cpp",
100 "drm/DrmProperty.cpp",
101 "drm/ResourceManager.cpp",
102 "drm/UEventListener.cpp",
103 "drm/VSyncWorker.cpp",
105 "utils/autolock.cpp",
106 "utils/hwcutils.cpp",
108 "backend/Backend.cpp",
109 "backend/BackendClient.cpp",
110 "backend/BackendManager.cpp",
111 "backend/BackendRCarDu.cpp",
115 // Kept only for compatibility with older Android version. Please do not use!
117 name: "drm_hwcomposer",
118 defaults: ["hwcomposer.drm_defaults"],
119 srcs: [":drm_hwcomposer_common"],
123 name: "hwcomposer.drm",
124 defaults: ["hwcomposer.drm_defaults"],
126 ":drm_hwcomposer_common",
127 "bufferinfo/legacy/BufferInfoLibdrm.cpp",
129 cflags: ["-DUSE_IMAPPER4_METADATA_API"],
133 name: "hwcomposer.drm_minigbm",
134 defaults: ["hwcomposer.drm_defaults"],
136 ":drm_hwcomposer_common",
137 "bufferinfo/legacy/BufferInfoMinigbm.cpp",
141 // Used by hwcomposer.drm_imagination
143 name: "drm_hwcomposer_platformimagination",
144 srcs: ["bufferinfo/legacy/BufferInfoImagination.cpp"],
147 // Used by hwcomposer.drm_hikey and hwcomposer.drm_hikey960
149 name: "drm_hwcomposer_platformhisi",
150 srcs: ["bufferinfo/legacy/BufferInfoMaliHisi.cpp"],
153 // Used by hwcomposer.drm_meson
155 name: "drm_hwcomposer_platformmeson",
156 srcs: ["bufferinfo/legacy/BufferInfoMaliMeson.cpp"],
159 // Used by hwcomposer.drm_mediatek
161 name: "drm_hwcomposer_platformmediatek",
162 srcs: ["bufferinfo/legacy/BufferInfoMaliMediatek.cpp"],