blob: 5681cb7dc4df7e5c3b4cdcc3f4ebe7630ac1f826 [file] [log] [blame]
Colin Crosscdf4b492019-03-22 13:13:12 -07001// 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// =====================
18cc_library_static {
19 name: "libdrmhwc_utils",
20
Sean Paul27cd4802019-04-02 16:57:20 -040021 srcs: ["utils/worker.cpp"],
22
23 include_dirs: ["external/drm_hwcomposer/include"],
Colin Crosscdf4b492019-03-22 13:13:12 -070024
25 cflags: [
26 "-Wall",
27 "-Werror",
28 ],
29
30 vendor: true,
31
32}
33
34// =====================
35// hwcomposer.drm.so
36// =====================
37cc_defaults {
38 name: "hwcomposer.drm_defaults",
39
40 shared_libs: [
41 "libcutils",
42 "libdrm",
43 "libhardware",
44 "liblog",
45 "libsync",
46 "libui",
47 "libutils",
48 ],
49
Sean Paul27cd4802019-04-02 16:57:20 -040050 include_dirs: ["external/drm_hwcomposer/include"],
51
Colin Crosscdf4b492019-03-22 13:13:12 -070052 static_libs: ["libdrmhwc_utils"],
53
Colin Crosscce12782019-03-29 10:27:23 -070054 cflags: [
55 "-Wall",
56 "-Werror",
57 ],
58
59 cppflags: [
60 "-DHWC2_USE_CPP11",
61 "-DHWC2_INCLUDE_STRINGIFICATION",
62 ],
63
64 relative_install_path: "hw",
65 vendor: true,
66}
67cc_library_static {
68 name: "drm_hwcomposer",
69 defaults: ["hwcomposer.drm_defaults"],
Colin Crosscdf4b492019-03-22 13:13:12 -070070 srcs: [
Colin Crosscdf4b492019-03-22 13:13:12 -070071 "drmhwctwo.cpp",
Sean Paul27cd4802019-04-02 16:57:20 -040072
73 "compositor/drmdisplaycomposition.cpp",
74 "compositor/drmdisplaycompositor.cpp",
75
76 "drm/drmconnector.cpp",
77 "drm/drmcrtc.cpp",
78 "drm/drmdevice.cpp",
79 "drm/drmencoder.cpp",
80 "drm/drmeventlistener.cpp",
81 "drm/drmmode.cpp",
82 "drm/drmplane.cpp",
83 "drm/drmproperty.cpp",
84 "drm/resourcemanager.cpp",
85 "drm/vsyncworker.cpp",
86
87 "platform/platform.cpp",
88
89 "utils/autolock.cpp",
90 "utils/hwcutils.cpp",
Colin Crosscdf4b492019-03-22 13:13:12 -070091 ],
Colin Crosscdf4b492019-03-22 13:13:12 -070092}
93
94cc_library_shared {
95 name: "hwcomposer.drm",
96 defaults: ["hwcomposer.drm_defaults"],
Colin Crosscce12782019-03-29 10:27:23 -070097 whole_static_libs: ["drm_hwcomposer"],
Sean Paul27cd4802019-04-02 16:57:20 -040098 srcs: ["platform/platformdrmgeneric.cpp"],
Colin Crosscdf4b492019-03-22 13:13:12 -070099 cppflags: ["-DUSE_DRM_GENERIC_IMPORTER"],
100}
101
102cc_library_shared {
Colin Crosscdf4b492019-03-22 13:13:12 -0700103 name: "hwcomposer.drm_minigbm",
104 defaults: ["hwcomposer.drm_defaults"],
Colin Crosscce12782019-03-29 10:27:23 -0700105 whole_static_libs: ["drm_hwcomposer"],
106 srcs: [
Sean Paul27cd4802019-04-02 16:57:20 -0400107 "platform/platformdrmgeneric.cpp",
108 "platform/platformminigbm.cpp",
Colin Crosscce12782019-03-29 10:27:23 -0700109 ],
Colin Crosscdf4b492019-03-22 13:13:12 -0700110 include_dirs: ["external/minigbm/cros_gralloc"],
111}
112
Colin Crosscce12782019-03-29 10:27:23 -0700113// Used by hwcomposer.drm_hikey and hwcomposer.drm_hikey960
114filegroup {
115 name: "drm_hwcomposer_platformhisi",
116 srcs: [
Sean Paul27cd4802019-04-02 16:57:20 -0400117 "platform/platformdrmgeneric.cpp",
118 "platform/platformhisi.cpp",
Colin Crosscce12782019-03-29 10:27:23 -0700119 ],
120}
Neil Armstrong17d3c8b2019-04-25 15:17:22 +0000121
122// Used by hwcomposer.drm_meson
123filegroup {
124 name: "drm_hwcomposer_platformmeson",
125 srcs: [
Sean Paul27cd4802019-04-02 16:57:20 -0400126 "platform/platformdrmgeneric.cpp",
127 "platform/platformmeson.cpp",
Neil Armstrong17d3c8b2019-04-25 15:17:22 +0000128 ],
129}