• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2023 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package {
18    // See: http://go/android-license-faq
19    // A large-scale-change added 'default_applicable_licenses' to import
20    // all of the 'license_kinds' from "device_generic_goldfish-opengl_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["device_generic_goldfish-opengl_license"],
24}
25
26cc_library_headers {
27    name: "libgralloc_cb3.ranchu",
28    vendor_available: true,
29    export_include_dirs: ["."],
30    header_libs: [
31        "libcutils_headers",
32        "libqemupipe-types.ranchu",
33    ],
34    export_header_lib_headers: [
35        "libcutils_headers",
36        "libqemupipe-types.ranchu",
37    ],
38}
39
40cc_defaults {
41    name: "android.hardware.graphics_defaults",
42    relative_install_path: "hw",
43    vendor: true,
44    static_libs: [
45        "libqemupipe.ranchu",
46        "libGoldfishAddressSpace",
47    ],
48    shared_libs: [
49        "android.hardware.graphics.mapper@3.0",
50        "libbase",
51        "libcutils",
52        "libdrm",
53        "libhidlbase",
54        "liblog",
55        "libutils",
56        "libOpenglCodecCommon",
57        "libOpenglSystemCommon",
58    ],
59    header_libs: ["libgralloc_cb.ranchu"],
60    include_dirs: [
61        "external/libdrm",
62        "external/minigbm/cros_gralloc",
63        "hardware/google/gfxstream/guest/include",
64        // "hardware/google/gfxstream/guest/iostream/include/libOpenglRender" does not exist.
65        "hardware/google/gfxstream/guest/platform/include",
66        "hardware/google/gfxstream/guest/renderControl_enc",
67        "hardware/google/gfxstream/guest/GoldfishAddressSpace/include",
68        "hardware/google/gfxstream/guest/OpenglCodecCommon",
69        "hardware/google/gfxstream/guest/OpenglSystemCommon",
70    ],
71    cflags: ["-DVIRTIO_GPU"],
72}
73
74cc_binary {
75    name: "android.hardware.graphics.allocator@3.0-service.ranchu",
76    defaults: ["android.hardware.graphics_defaults"],
77    srcs: ["allocator3.cpp"],
78    init_rc: ["android.hardware.graphics.allocator@3.0-service.ranchu.rc"],
79    vintf_fragments: ["android.hardware.graphics.gralloc3.ranchu.xml"],
80    shared_libs: [
81        "android.hardware.graphics.allocator@3.0",
82    ],
83}
84
85cc_library_shared {
86    name: "android.hardware.graphics.mapper@3.0-impl-ranchu",
87    defaults: ["android.hardware.graphics_defaults"],
88    srcs: ["mapper3.cpp"],
89    shared_libs: [
90        "libsync",
91        "libandroidemu",
92    ],
93}
94