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 | |
Andrii Chepurnyi | a63d66c | 2020-04-23 20:48:13 +0300 | [diff] [blame] | 64 | product_variables: { |
| 65 | platform_sdk_version: { |
| 66 | cflags: ["-DPLATFORM_SDK_VERSION=%d"], |
| 67 | }, |
| 68 | }, |
| 69 | |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 70 | relative_install_path: "hw", |
| 71 | vendor: true, |
| 72 | } |
| 73 | cc_library_static { |
| 74 | name: "drm_hwcomposer", |
| 75 | defaults: ["hwcomposer.drm_defaults"], |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 76 | srcs: [ |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 77 | "drmhwctwo.cpp", |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame] | 78 | |
| 79 | "compositor/drmdisplaycomposition.cpp", |
| 80 | "compositor/drmdisplaycompositor.cpp", |
| 81 | |
| 82 | "drm/drmconnector.cpp", |
| 83 | "drm/drmcrtc.cpp", |
| 84 | "drm/drmdevice.cpp", |
| 85 | "drm/drmencoder.cpp", |
| 86 | "drm/drmeventlistener.cpp", |
| 87 | "drm/drmmode.cpp", |
| 88 | "drm/drmplane.cpp", |
| 89 | "drm/drmproperty.cpp", |
| 90 | "drm/resourcemanager.cpp", |
| 91 | "drm/vsyncworker.cpp", |
| 92 | |
| 93 | "platform/platform.cpp", |
| 94 | |
| 95 | "utils/autolock.cpp", |
| 96 | "utils/hwcutils.cpp", |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 97 | ], |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | cc_library_shared { |
| 101 | name: "hwcomposer.drm", |
| 102 | defaults: ["hwcomposer.drm_defaults"], |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 103 | whole_static_libs: ["drm_hwcomposer"], |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame] | 104 | srcs: ["platform/platformdrmgeneric.cpp"], |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 105 | cppflags: ["-DUSE_DRM_GENERIC_IMPORTER"], |
| 106 | } |
| 107 | |
| 108 | cc_library_shared { |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 109 | name: "hwcomposer.drm_minigbm", |
| 110 | defaults: ["hwcomposer.drm_defaults"], |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 111 | whole_static_libs: ["drm_hwcomposer"], |
| 112 | srcs: [ |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame] | 113 | "platform/platformdrmgeneric.cpp", |
| 114 | "platform/platformminigbm.cpp", |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 115 | ], |
Colin Cross | cdf4b49 | 2019-03-22 13:13:12 -0700 | [diff] [blame] | 116 | include_dirs: ["external/minigbm/cros_gralloc"], |
| 117 | } |
| 118 | |
Roman Stratiienko | e3ed48d | 2019-10-17 17:42:36 +0300 | [diff] [blame] | 119 | // Used by hwcomposer.drm_imagination |
| 120 | filegroup { |
| 121 | name: "drm_hwcomposer_platformimagination", |
| 122 | srcs: [ |
| 123 | "platform/platformdrmgeneric.cpp", |
| 124 | "platform/platformimagination.cpp", |
| 125 | ], |
| 126 | } |
| 127 | |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 128 | // Used by hwcomposer.drm_hikey and hwcomposer.drm_hikey960 |
| 129 | filegroup { |
| 130 | name: "drm_hwcomposer_platformhisi", |
| 131 | srcs: [ |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame] | 132 | "platform/platformdrmgeneric.cpp", |
| 133 | "platform/platformhisi.cpp", |
Colin Cross | cce1278 | 2019-03-29 10:27:23 -0700 | [diff] [blame] | 134 | ], |
| 135 | } |
Neil Armstrong | 17d3c8b | 2019-04-25 15:17:22 +0000 | [diff] [blame] | 136 | |
| 137 | // Used by hwcomposer.drm_meson |
| 138 | filegroup { |
| 139 | name: "drm_hwcomposer_platformmeson", |
| 140 | srcs: [ |
Sean Paul | 27cd480 | 2019-04-02 16:57:20 -0400 | [diff] [blame] | 141 | "platform/platformdrmgeneric.cpp", |
| 142 | "platform/platformmeson.cpp", |
Neil Armstrong | 17d3c8b | 2019-04-25 15:17:22 +0000 | [diff] [blame] | 143 | ], |
| 144 | } |