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        "libyuv_static",
32    ],
33    shared_libs: [
34        "[email protected]",
35        "libbase",
36        "libcutils",
37        "libcuttlefish_device_config",
38        "libcuttlefish_utils",
39        "libcuttlefish_fs",
40        "libdrm",
41        "libgralloctypes",
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        "libyuv_static",
86    ],
87
88    shared_libs: [
89        "[email protected]",
90        "libcutils",
91        "libcuttlefish_device_config",
92        "libcuttlefish_utils",
93        "libcuttlefish_fs",
94        "libgralloctypes",
95        "libhardware",
96        "libhidlbase",
97        "liblog",
98        "libutils",
99    ],
100}
101