Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 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 | // ===================== |
| 18 | cc_library_static { |
| 19 | name: "libdrmhwc_utils", |
| 20 | |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame^] | 21 | srcs: ["utils/worker.cpp"], |
| 22 | |
| 23 | include_dirs: ["external/drm_hwcomposer/include"], |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 24 | |
| 25 | cflags: [ |
| 26 | "-Wall", |
| 27 | "-Werror", |
| 28 | ], |
| 29 | |
| 30 | vendor: true, |
| 31 | |
| 32 | } |
| 33 | |
| 34 | // ===================== |
| 35 | // hwcomposer.drm.so |
| 36 | // ===================== |
| 37 | cc_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 Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame^] | 50 | include_dirs: ["external/drm_hwcomposer/include"], |
| 51 | |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 52 | static_libs: ["libdrmhwc_utils"], |
| 53 | |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 54 | 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 | } |
| 67 | cc_library_static { |
| 68 | name: "drm_hwcomposer", |
| 69 | defaults: ["hwcomposer.drm_defaults"], |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 70 | srcs: [ |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 71 | "drmhwctwo.cpp", |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame^] | 72 | |
| 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 Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 91 | ], |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | cc_library_shared { |
| 95 | name: "hwcomposer.drm", |
| 96 | defaults: ["hwcomposer.drm_defaults"], |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 97 | whole_static_libs: ["drm_hwcomposer"], |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame^] | 98 | srcs: ["platform/platformdrmgeneric.cpp"], |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 99 | cppflags: ["-DUSE_DRM_GENERIC_IMPORTER"], |
| 100 | } |
| 101 | |
| 102 | cc_library_shared { |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 103 | name: "hwcomposer.drm_minigbm", |
| 104 | defaults: ["hwcomposer.drm_defaults"], |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 105 | whole_static_libs: ["drm_hwcomposer"], |
| 106 | srcs: [ |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame^] | 107 | "platform/platformdrmgeneric.cpp", |
| 108 | "platform/platformminigbm.cpp", |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 109 | ], |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 110 | include_dirs: ["external/minigbm/cros_gralloc"], |
| 111 | } |
| 112 | |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 113 | // Used by hwcomposer.drm_hikey and hwcomposer.drm_hikey960 |
| 114 | filegroup { |
| 115 | name: "drm_hwcomposer_platformhisi", |
| 116 | srcs: [ |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame^] | 117 | "platform/platformdrmgeneric.cpp", |
| 118 | "platform/platformhisi.cpp", |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 119 | ], |
| 120 | } |
Neil Armstrong | 17d3c8b | 2019-04-25 15:17:22 +0000 | [diff] [blame] | 121 | |
| 122 | // Used by hwcomposer.drm_meson |
| 123 | filegroup { |
| 124 | name: "drm_hwcomposer_platformmeson", |
| 125 | srcs: [ |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame^] | 126 | "platform/platformdrmgeneric.cpp", |
| 127 | "platform/platformmeson.cpp", |
Neil Armstrong | 17d3c8b | 2019-04-25 15:17:22 +0000 | [diff] [blame] | 128 | ], |
| 129 | } |