blob: 40454afd52fcb5736bcdb91b7bf6b48e8ccd08ff [file] [log] [blame]
Robin Pengc2b5ca92021-02-23 20:00:28 +08001//
2// Copyright (C) 2017 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
16package {
17 // See: http://go/android-license-faq
18 // A large-scale-change added 'default_applicable_licenses' to import
19 // all of the 'license_kinds' from "//device/google/gs101:device_google_gs101_license"
20 // to get the below license kinds:
21 // SPDX-license-identifier-Apache-2.0
22 default_applicable_licenses: [
23 "//device/google/gs101:device_google_gs101_license",
24 ],
25}
26
Robin Pengc2b5ca92021-02-23 20:00:28 +080027cc_binary {
28 name: "android.hardware.usb@1.3-service.gs101",
29 relative_install_path: "hw",
30 init_rc: ["android.hardware.usb@1.3-service.gs101.rc"],
31 vintf_fragments: [
32 "android.hardware.usb@1.3-service.gs101.xml",
33 "android.hardware.usb.gadget@1.2-service.gs101.xml",
34 ],
35 srcs: ["service.cpp", "Usb.cpp", "UsbGadget.cpp"],
36 cflags: ["-Wall", "-Werror"],
Robin Pengc2b5ca92021-02-23 20:00:28 +080037 shared_libs: [
38 "libbase",
Badhri Jagan Sridharan09719be2021-06-30 23:48:08 -070039 "libbinder",
Robin Pengc2b5ca92021-02-23 20:00:28 +080040 "libhidlbase",
41 "liblog",
42 "libutils",
43 "libhardware",
44 "android.hardware.usb@1.0",
45 "android.hardware.usb@1.1",
46 "android.hardware.usb@1.2",
47 "android.hardware.usb@1.3",
48 "android.hardware.usb.gadget@1.0",
49 "android.hardware.usb.gadget@1.1",
50 "android.hardware.usb.gadget@1.2",
Badhri Jagan Sridharan09719be2021-06-30 23:48:08 -070051 "android.hardware.thermal@1.0",
52 "android.hardware.thermal@2.0",
Robin Pengc2b5ca92021-02-23 20:00:28 +080053 "libcutils",
Badhri Jagan Sridharan09719be2021-06-30 23:48:08 -070054 "android.frameworks.stats-V1-ndk_platform",
55 "pixelatoms-cpp",
56 "libbinder_ndk",
Robin Pengc2b5ca92021-02-23 20:00:28 +080057 ],
Badhri Jagan Sridharan09719be2021-06-30 23:48:08 -070058 static_libs: [
59 "libpixelusb",
60 "libpixelstats",
61 ],
62 export_shared_lib_headers: [
63 "android.frameworks.stats-V1-ndk_platform",
64 "pixelatoms-cpp",
65 ],
Robin Pengc2b5ca92021-02-23 20:00:28 +080066 proprietary: true,
67}