Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/device/device/google/trout/hal/vehicle/2.0/   (Android Betriebssystem Version 17©)  Datei vom 26.5.2026 mit Größe 5 kB image not shown  

Quelle  Android.bp   Sprache: unbekannt

 
Spracherkennung für: .bp vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

// Copyright (C) 2020 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//       http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

cc_library_static {
    name: "android.hardware.automotive.vehicle@2.0-virtualization-utils",
    vendor: true,
    host_supported: true,
    defaults: ["vhal_v2_0_defaults"],
    srcs: [
        "Utils.cpp",
    ],
    static_libs: [
        "android.hardware.automotive.utils.vsockinfo",
    ],
    shared_libs: [
        "libbase",
    ],
}

cc_library_static {
    name: "android.hardware.automotive.vehicle@2.0-grpc-trout",
    vendor: true,
    host_supported: true,
    generated_headers: [
        "DefaultVehicleHalProtoStub_h",
        "VehicleServerProtoStub_h@2.0-grpc-trout",
    ],
    export_generated_headers: [
        "DefaultVehicleHalProtoStub_h",
        "VehicleServerProtoStub_h@2.0-grpc-trout",
    ],
    generated_sources: [
        "DefaultVehicleHalProtoStub_cc",
        "VehicleServerProtoStub_cc@2.0-grpc-trout",
    ],
    shared_libs: [
        "libgrpc++_unsecure",
        "libprotobuf-cpp-full",
    ],
    export_shared_lib_headers: [
        "libgrpc++_unsecure",
        "libprotobuf-cpp-full",
    ],
    cflags: [
        "-Wno-unused-parameter",
    ],
}

genrule {
    name: "VehicleServerProtoStub_h@2.0-grpc-trout",
    tools: [
        "aprotoc",
        "protoc-gen-grpc-cpp-plugin",
    ],
    cmd: "$(location aprotoc) -I$$(dirname $(location proto/VehicleServer.proto)) -Ihardware/interfaces/automotive/vehicle/proto -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(location proto/VehicleServer.proto) --grpc_out=$(genDir) --cpp_out=$(genDir)",
    srcs: [
        "proto/VehicleServer.proto",
        ":vhal-proto-src",
        ":libprotobuf-internal-protos",
    ],
    out: [
        "VehicleServer.pb.h",
        "VehicleServer.grpc.pb.h",
    ],
}

genrule {
    name: "VehicleServerProtoStub_cc@2.0-grpc-trout",
    tools: [
        "aprotoc",
        "protoc-gen-grpc-cpp-plugin",
    ],
    cmd: "$(location aprotoc) -I$$(dirname $(location proto/VehicleServer.proto)) -Ihardware/interfaces/automotive/vehicle/proto -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(location proto/VehicleServer.proto) --grpc_out=$(genDir) --cpp_out=$(genDir)",
    srcs: [
        "proto/VehicleServer.proto",
        ":vhal-proto-src",
        ":libprotobuf-internal-protos",
    ],
    out: [
        "VehicleServer.pb.cc",
        "VehicleServer.grpc.pb.cc",
    ],
}

cc_library_static {
    name: "android.hardware.automotive.vehicle@2.0-virtualization-client-lib",
    defaults: ["vhal_v2_0_target_defaults"],
    vendor: true,
    srcs: [
        "GrpcVehicleClient.cpp",
    ],
    whole_static_libs: [
        "android.hardware.automotive.utils.vsockinfo",
        "android.hardware.automotive.vehicle@2.0-manager-lib",
        "android.hardware.automotive.vehicle@2.0-default-impl-lib",
        "android.hardware.automotive.vehicle@2.0-grpc-trout",
        "android.hardware.automotive.vehicle@2.0-virtualization-utils",
    ],
    shared_libs: [
        "libgrpc++",
        "libprotobuf-cpp-full",
    ],
    export_include_dirs: ["."],
    cflags: [
        "-Wno-unused-parameter",
    ],
}

cc_library_static {
    name: "android.hardware.automotive.vehicle@2.0-virtualization-grpc-server-lib",
    defaults: ["vhal_v2_0_defaults"],
    host_supported: true,
    vendor: true,
    srcs: [
        "GarageModeServerSideHandler.cpp",
        "GrpcVehicleServer.cpp",
        "PowerStateListener.cpp",
    ],
    whole_static_libs: [
        "android.hardware.automotive.utils.vsockinfo",
        "android.hardware.automotive.vehicle@2.0-grpc-trout",
        "android.hardware.automotive.vehicle@2.0-server-impl-lib",
        "android.hardware.automotive.vehicle@2.0-virtualization-utils",
    ],
    shared_libs: [
        "libgrpc++",
        "libprotobuf-cpp-full",
    ],
    export_include_dirs: ["."],
    cflags: [
        "-Wno-unused-parameter",
    ],
}

cc_binary {
    name: "android.hardware.automotive.vehicle@2.0-virtualization-service",
    defaults: ["vhal_v2_0_target_defaults"],
    init_rc: ["android.hardware.automotive.vehicle@2.0-virtualization-service.rc"],
    vendor: true,
    relative_install_path: "hw",
    srcs: [
        "VirtualizedVehicleService.cpp",
    ],
    shared_libs: [
        "libbase",
        "libcutils",
        "libjsoncpp",
        "libprotobuf-cpp-full",
        "libgrpc++",
    ],
    static_libs: [
        "android.hardware.automotive.vehicle@2.0-virtualization-client-lib",
    ],
    cflags: [
        "-Wno-unused-parameter",
    ],
    vintf_fragments: ["manifest_android.hardware.automotive.vehicle@2.0-virtualization-service.xml"],
}

cc_binary {
    name: "android.hardware.automotive.vehicle@2.0-virtualization-grpc-server",
    init_rc: ["android.hardware.automotive.vehicle@2.0-virtualization-grpc-server.rc"],
    defaults: ["vhal_v2_0_defaults"],
    host_supported: true,
    vendor: true,
    srcs: [
        "VirtualizationGrpcServer.cpp",
    ],
    shared_libs: [
        "libbase",
        "libjsoncpp",
        "libprotobuf-cpp-full",
        "libgrpc++",
    ],
    static_libs: [
        "android.hardware.automotive.vehicle@2.0-virtualization-grpc-server-lib",
    ],
}

[Dauer der Verarbeitung: 0.14 Sekunden, vorverarbeitet 2026-06-27]