• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2018 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    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_library_static {
22    name: "libpixelusb",
23    vendor_available: true,
24    export_include_dirs: [
25        "hidl/include",
26        "include",
27    ],
28
29    srcs: [
30        "hidl/UsbGadgetUtils.cpp",
31        "UsbOverheatEvent.cpp",
32        "CommonUtils.cpp",
33        "MonitorFfs.cpp",
34    ],
35
36    cflags: [
37        "-Wall",
38        "-Werror",
39    ],
40
41    shared_libs: [
42        "libbase",
43        "libbinder",
44        "libcutils",
45        "libhidlbase",
46        "libutils",
47        "libbinder_ndk",
48        "android.hardware.usb.gadget@1.0",
49        "android.hardware.thermal@1.0",
50        "android.hardware.thermal@2.0",
51        "android.hardware.thermal-V1-ndk"
52    ],
53
54    static_libs: [
55        "libthermalutils",
56    ]
57}
58
59cc_library_static {
60    name: "libpixelusb-aidl",
61    vendor_available: true,
62    export_include_dirs: [
63        "aidl/include",
64        "include",
65    ],
66
67    srcs: [
68        "aidl/UsbGadgetAidlUtils.cpp",
69        "UsbOverheatEvent.cpp",
70        "CommonUtils.cpp",
71        "MonitorFfs.cpp",
72    ],
73
74    cflags: [
75        "-Wall",
76        "-Werror",
77    ],
78
79    shared_libs: [
80        "libbase",
81        "libbinder",
82        "libcutils",
83        "libutils",
84        "android.hardware.usb.gadget-V1-ndk",
85        "android.hardware.thermal@1.0",
86        "android.hardware.thermal@2.0",
87        "android.hardware.thermal-V1-ndk"
88    ],
89
90    static_libs: [
91        "libthermalutils",
92    ]
93}
94
95cc_fuzz {
96    name: "libpixelusb_gadgetutils_fuzzer",
97
98    srcs:[
99        "UsbGadgetUtils_fuzz.cpp"
100    ],
101
102    shared_libs: [
103        "android.hardware.usb.gadget@1.0",
104        "libbase",
105    ],
106
107    static_libs: [
108        "libpixelusb",
109    ],
110
111    fuzz_config: {
112        cc: [
113            "pixel-usb-triage@google.com",
114            "kyletso@google.com",
115        ],
116        componentid: 175220,
117    },
118}
119