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 | |
| 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 | // ===================== |
| 35 | cc_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 | srcs: [ |
| 51 | "autolock.cpp", |
| 52 | "resourcemanager.cpp", |
| 53 | "drmdevice.cpp", |
| 54 | "drmconnector.cpp", |
| 55 | "drmcrtc.cpp", |
| 56 | "drmdisplaycomposition.cpp", |
| 57 | "drmdisplaycompositor.cpp", |
| 58 | "drmencoder.cpp", |
| 59 | "drmeventlistener.cpp", |
| 60 | "drmhwctwo.cpp", |
| 61 | "drmmode.cpp", |
| 62 | "drmplane.cpp", |
| 63 | "drmproperty.cpp", |
| 64 | "hwcutils.cpp", |
| 65 | "platform.cpp", |
| 66 | "platformdrmgeneric.cpp", |
| 67 | "vsyncworker.cpp", |
| 68 | ], |
| 69 | cflags: [ |
| 70 | "-Wall", |
| 71 | "-Werror", |
| 72 | ], |
| 73 | |
| 74 | cppflags: [ |
| 75 | "-DHWC2_USE_CPP11", |
| 76 | "-DHWC2_INCLUDE_STRINGIFICATION", |
| 77 | ], |
| 78 | |
| 79 | relative_install_path: "hw", |
| 80 | vendor: true, |
| 81 | } |
| 82 | |
| 83 | cc_library_shared { |
| 84 | name: "hwcomposer.drm", |
| 85 | defaults: ["hwcomposer.drm_defaults"], |
| 86 | cppflags: ["-DUSE_DRM_GENERIC_IMPORTER"], |
| 87 | } |
| 88 | |
| 89 | cc_library_shared { |
| 90 | name: "hwcomposer.drm_hikey", |
| 91 | defaults: ["hwcomposer.drm_defaults"], |
| 92 | cppflags: ["-DUSE_HISI_IMPORTER"], |
| 93 | srcs: ["platformhisi.cpp"], |
| 94 | include_dirs: ["device/linaro/hikey/gralloc"], |
| 95 | } |
| 96 | |
| 97 | cc_library_shared { |
| 98 | name: "hwcomposer.drm_hikey960", |
| 99 | defaults: ["hwcomposer.drm_defaults"], |
| 100 | cppflags: ["-DUSE_HISI_IMPORTER"], |
| 101 | srcs: ["platformhisi.cpp"], |
| 102 | include_dirs: ["device/linaro/hikey/gralloc960"], |
| 103 | } |
| 104 | |
| 105 | |
| 106 | cc_library_shared { |
| 107 | name: "hwcomposer.drm_minigbm", |
| 108 | defaults: ["hwcomposer.drm_defaults"], |
| 109 | srcs: ["platformminigbm.cpp"], |
| 110 | include_dirs: ["external/minigbm/cros_gralloc"], |
| 111 | } |
| 112 | |