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/include",
25 "external/drm_hwcomposer",
37 // =====================
39 // =====================
41 name: "hwcomposer.drm_defaults",
54 "external/drm_hwcomposer/include",
55 "external/drm_hwcomposer",
58 static_libs: ["libdrmhwc_utils"],
67 "-DHWC2_INCLUDE_STRINGIFICATION",
71 platform_sdk_version: {
72 cflags: ["-DPLATFORM_SDK_VERSION=%d"],
76 relative_install_path: "hw",
80 name: "drm_hwcomposer",
81 defaults: ["hwcomposer.drm_defaults"],
85 "compositor/drmdisplaycomposition.cpp",
86 "compositor/drmdisplaycompositor.cpp",
88 "drm/drmconnector.cpp",
92 "drm/drmeventlistener.cpp",
95 "drm/drmproperty.cpp",
96 "drm/resourcemanager.cpp",
97 "drm/vsyncworker.cpp",
99 "platform/platform.cpp",
101 "utils/autolock.cpp",
102 "utils/hwcutils.cpp",
104 "backend/backendmanager.cpp",
105 "backend/backend.cpp",
106 "backend/backendclient.cpp",
107 "backend/backendrcardu.cpp",
112 name: "hwcomposer.drm",
113 defaults: ["hwcomposer.drm_defaults"],
114 whole_static_libs: ["drm_hwcomposer"],
115 srcs: ["platform/platformdrmgeneric.cpp"],
116 cppflags: ["-DUSE_DRM_GENERIC_IMPORTER"],
120 name: "hwcomposer.drm_minigbm",
121 defaults: ["hwcomposer.drm_defaults"],
122 whole_static_libs: ["drm_hwcomposer"],
124 "platform/platformdrmgeneric.cpp",
125 "platform/platformminigbm.cpp",
127 include_dirs: ["external/minigbm/cros_gralloc"],
130 // Used by hwcomposer.drm_imagination
132 name: "drm_hwcomposer_platformimagination",
134 "platform/platformdrmgeneric.cpp",
135 "platform/platformimagination.cpp",
139 // Used by hwcomposer.drm_hikey and hwcomposer.drm_hikey960
141 name: "drm_hwcomposer_platformhisi",
143 "platform/platformdrmgeneric.cpp",
144 "platform/platformhisi.cpp",
148 // Used by hwcomposer.drm_meson
150 name: "drm_hwcomposer_platformmeson",
152 "platform/platformdrmgeneric.cpp",
153 "platform/platformmeson.cpp",