1// Copyright (C) 2019 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 16cc_library_shared { 17 name: "hwcomposer.cutf_cvm_ashmem", 18 relative_install_path: "hw", 19 defaults: ["cuttlefish_guest_only"], 20 vendor: true, 21 srcs: [ 22 "hwcomposer.cpp", 23 "vsocket_screen_view.cpp", 24 ], 25 include_dirs: [ 26 "device/google/cuttlefish", 27 ], 28 export_include_dirs: ["."], 29 static_libs: [ 30 "hwcomposer_common", 31 "libminigbm_gralloc", 32 "libyuv_static", 33 ], 34 shared_libs: [ 35 "android.hardware.graphics.mapper@3.0", 36 "libbase", 37 "libcutils", 38 "libcuttlefish_device_config", 39 "libcuttlefish_fs", 40 "libcuttlefish_utils", 41 "libdrm", 42 "libhardware", 43 "libhidlbase", 44 "libjpeg", 45 "liblog", 46 "libsync", 47 "libutils", 48 ], 49} 50 51cc_library_shared { 52 name: "hwcomposer.cutf_hwc2", 53 relative_install_path: "hw", 54 defaults: ["cuttlefish_guest_only"], 55 vendor: true, 56 57 clang: true, 58 cflags: [ 59 "-Wall", 60 "-Werror", 61 ], 62 cppflags: [ 63 "-Wextra", 64 "-Wunused", 65 "-Wunreachable-code", 66 67 // Disabling warning specific to hwc2on1adapter code 68 "-Wno-sign-compare", 69 ], 70 71 srcs: [ 72 "HWC2.cpp", 73 "MiniFence.cpp", 74 "vsocket_screen_view.cpp", 75 ], 76 77 include_dirs: [ 78 "device/google/cuttlefish", 79 ], 80 81 export_include_dirs: ["."], 82 83 static_libs: [ 84 "hwcomposer_common", 85 "libminigbm_gralloc", 86 "libyuv_static", 87 ], 88 89 shared_libs: [ 90 "android.hardware.graphics.mapper@3.0", 91 "libcutils", 92 "libcuttlefish_device_config", 93 "libcuttlefish_fs", 94 "libcuttlefish_utils", 95 "libdrm", 96 "libhardware", 97 "libhidlbase", 98 "liblog", 99 "libsync", 100 "libutils", 101 ], 102} 103