Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 1 | // |
Badhri Jagan Sridharan | 3604f56 | 2022-01-17 20:43:02 -0800 | [diff] [blame] | 2 | // Copyright (C) 2021 The Android Open Source Project |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 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 | package { |
| 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 Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 27 | cc_binary { |
Badhri Jagan Sridharan | 3604f56 | 2022-01-17 20:43:02 -0800 | [diff] [blame] | 28 | name: "android.hardware.usb.gadget-service.gs101", |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 29 | relative_install_path: "hw", |
Ricky Niu | d6d0b7d | 2022-07-06 20:57:02 +0800 | [diff] [blame] | 30 | init_rc: ["android.hardware.usb.gadget-service.rc"], |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 31 | vintf_fragments: [ |
Ricky Niu | d6d0b7d | 2022-07-06 20:57:02 +0800 | [diff] [blame] | 32 | "android.hardware.usb.gadget-service.xml", |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 33 | ], |
Ricky Niu | d6d0b7d | 2022-07-06 20:57:02 +0800 | [diff] [blame] | 34 | vendor: true, |
Badhri Jagan Sridharan | 3604f56 | 2022-01-17 20:43:02 -0800 | [diff] [blame] | 35 | srcs: ["service_gadget.cpp", "UsbGadget.cpp"], |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 36 | cflags: ["-Wall", "-Werror"], |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 37 | shared_libs: [ |
| 38 | "libbase", |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 39 | "liblog", |
| 40 | "libutils", |
Ricky Niu | d6d0b7d | 2022-07-06 20:57:02 +0800 | [diff] [blame] | 41 | "android.frameworks.stats-V1-ndk", |
| 42 | "android.hardware.usb.gadget-V1-ndk", |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 43 | "libcutils", |
Ricky Niu | d6d0b7d | 2022-07-06 20:57:02 +0800 | [diff] [blame] | 44 | "libbinder_ndk", |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 45 | ], |
Badhri Jagan Sridharan | 09719be | 2021-06-30 23:48:08 -0700 | [diff] [blame] | 46 | static_libs: [ |
Ricky Niu | 5b86b2f | 2022-07-06 20:57:02 +0800 | [diff] [blame^] | 47 | "libpixelusb-aidl", |
Badhri Jagan Sridharan | 09719be | 2021-06-30 23:48:08 -0700 | [diff] [blame] | 48 | ], |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 49 | proprietary: true, |
Ricky Niu | d6d0b7d | 2022-07-06 20:57:02 +0800 | [diff] [blame] | 50 | export_shared_lib_headers: [ |
| 51 | "android.frameworks.stats-V1-ndk", |
| 52 | ], |
Robin Peng | c2b5ca9 | 2021-02-23 20:00:28 +0800 | [diff] [blame] | 53 | } |