• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2015 The Android Open Source Project
2//
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
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
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.
14
15// =====================
16// libdrmhwc_utils.a
17// =====================
18package {
19    default_applicable_licenses: ["external_drm_hwcomposer_license"],
20}
21
22// Added automatically by a large-scale-change
23// See: http://go/android-license-faq
24license {
25    name: "external_drm_hwcomposer_license",
26    visibility: [":__subpackages__"],
27    license_kinds: [
28        "SPDX-license-identifier-Apache-2.0",
29    ],
30    license_text: [
31        "NOTICE",
32    ],
33}
34
35cc_library_static {
36    name: "libdrmhwc_utils",
37
38    srcs: ["utils/Worker.cpp"],
39
40    include_dirs: [
41        "external/drm_hwcomposer/include",
42        "external/drm_hwcomposer",
43    ],
44
45    cflags: [
46        "-Wall",
47        "-Werror",
48    ],
49
50    vendor: true,
51
52}
53
54// =====================
55// hwcomposer.drm.so
56// =====================
57cc_defaults {
58    name: "hwcomposer.drm_defaults",
59
60    shared_libs: [
61        "libcutils",
62        "libdrm",
63        "libhardware",
64        "libhidlbase",
65        "liblog",
66        "libsync",
67        "libui",
68        "libutils",
69    ],
70
71    include_dirs: [
72        "external/drm_hwcomposer/include",
73        "external/drm_hwcomposer",
74    ],
75
76    static_libs: ["libdrmhwc_utils"],
77
78    cflags: [
79        "-Wall",
80        "-Werror",
81    ],
82
83    cppflags: [
84        "-DHWC2_USE_CPP11",
85        "-DHWC2_INCLUDE_STRINGIFICATION",
86    ],
87
88    product_variables: {
89        platform_sdk_version: {
90            cflags: ["-DPLATFORM_SDK_VERSION=%d"],
91        },
92    },
93
94    relative_install_path: "hw",
95    vendor: true,
96}
97cc_library_static {
98    name: "drm_hwcomposer",
99    defaults: ["hwcomposer.drm_defaults"],
100    srcs: [
101        "DrmHwcTwo.cpp",
102
103        "bufferinfo/BufferInfoGetter.cpp",
104        "bufferinfo/BufferInfoMapperMetadata.cpp",
105
106        "compositor/DrmDisplayComposition.cpp",
107        "compositor/DrmDisplayCompositor.cpp",
108        "compositor/Planner.cpp",
109
110        "drm/DrmConnector.cpp",
111        "drm/DrmCrtc.cpp",
112        "drm/DrmDevice.cpp",
113        "drm/DrmEncoder.cpp",
114        "drm/DrmEventListener.cpp",
115        "drm/DrmGenericImporter.cpp",
116        "drm/DrmMode.cpp",
117        "drm/DrmPlane.cpp",
118        "drm/DrmProperty.cpp",
119        "drm/ResourceManager.cpp",
120        "drm/VSyncWorker.cpp",
121
122        "utils/autolock.cpp",
123        "utils/hwcutils.cpp",
124
125        "backend/BackendManager.cpp",
126        "backend/Backend.cpp",
127        "backend/BackendClient.cpp",
128        "backend/BackendRCarDu.cpp",
129    ],
130}
131
132cc_library_shared {
133    name: "hwcomposer.drm",
134    defaults: ["hwcomposer.drm_defaults"],
135    whole_static_libs: ["drm_hwcomposer"],
136    srcs: ["bufferinfo/legacy/BufferInfoLibdrm.cpp"],
137}
138
139cc_library_shared {
140    name: "hwcomposer.drm_minigbm",
141    defaults: ["hwcomposer.drm_defaults"],
142    whole_static_libs: ["drm_hwcomposer"],
143    srcs: ["bufferinfo/legacy/BufferInfoMinigbm.cpp"],
144    include_dirs: ["external/minigbm/cros_gralloc"],
145}
146
147// Used by hwcomposer.drm_imagination
148filegroup {
149    name: "drm_hwcomposer_platformimagination",
150    srcs: ["bufferinfo/legacy/BufferInfoImagination.cpp"],
151}
152
153// Used by hwcomposer.drm_hikey and hwcomposer.drm_hikey960
154filegroup {
155    name: "drm_hwcomposer_platformhisi",
156    srcs: ["bufferinfo/legacy/BufferInfoMaliHisi.cpp"],
157}
158
159// Used by hwcomposer.drm_meson
160filegroup {
161    name: "drm_hwcomposer_platformmeson",
162    srcs: ["bufferinfo/legacy/BufferInfoMaliMeson.cpp"],
163}
164
165// Used by hwcomposer.drm_mediatek
166filegroup {
167    name: "drm_hwcomposer_platformmediatek",
168    srcs: ["bufferinfo/legacy/BufferInfoMaliMediatek.cpp"],
169}
170