• 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// =====================
18cc_library_static {
19    name: "libdrmhwc_utils",
20
21    srcs: ["worker.cpp"],
22
23    cflags: [
24        "-Wall",
25        "-Werror",
26    ],
27
28    vendor: true,
29
30}
31
32// =====================
33// hwcomposer.drm.so
34// =====================
35cc_defaults {
36    name: "hwcomposer.drm_defaults",
37
38    shared_libs: [
39        "libcutils",
40        "libdrm",
41        "libhardware",
42        "liblog",
43        "libsync",
44        "libui",
45        "libutils",
46    ],
47
48    static_libs: ["libdrmhwc_utils"],
49
50    cflags: [
51        "-Wall",
52        "-Werror",
53    ],
54
55    cppflags: [
56        "-DHWC2_USE_CPP11",
57        "-DHWC2_INCLUDE_STRINGIFICATION",
58    ],
59
60    relative_install_path: "hw",
61    vendor: true,
62}
63cc_library_static {
64    name: "drm_hwcomposer",
65    defaults: ["hwcomposer.drm_defaults"],
66    srcs: [
67        "autolock.cpp",
68        "resourcemanager.cpp",
69        "drmdevice.cpp",
70        "drmconnector.cpp",
71        "drmcrtc.cpp",
72        "drmdisplaycomposition.cpp",
73        "drmdisplaycompositor.cpp",
74        "drmencoder.cpp",
75        "drmeventlistener.cpp",
76        "drmhwctwo.cpp",
77        "drmmode.cpp",
78        "drmplane.cpp",
79        "drmproperty.cpp",
80        "hwcutils.cpp",
81        "platform.cpp",
82        "vsyncworker.cpp",
83    ],
84}
85
86cc_library_shared {
87    name: "hwcomposer.drm",
88    defaults: ["hwcomposer.drm_defaults"],
89    whole_static_libs: ["drm_hwcomposer"],
90    srcs: ["platformdrmgeneric.cpp"],
91    cppflags: ["-DUSE_DRM_GENERIC_IMPORTER"],
92}
93
94cc_library_shared {
95    name: "hwcomposer.drm_minigbm",
96    defaults: ["hwcomposer.drm_defaults"],
97    whole_static_libs: ["drm_hwcomposer"],
98    srcs: [
99        "platformdrmgeneric.cpp",
100        "platformminigbm.cpp",
101    ],
102    include_dirs: ["external/minigbm/cros_gralloc"],
103}
104
105// Used by hwcomposer.drm_hikey and hwcomposer.drm_hikey960
106filegroup {
107    name: "drm_hwcomposer_platformhisi",
108    srcs: [
109        "platformdrmgeneric.cpp",
110        "platformhisi.cpp",
111    ],
112}
113