Tomasz Wasilczyk | e997c14 | 2017-05-05 09:51:37 -0700 | [diff] [blame] | 1 | // |
| 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 | // |
| 16 | |
Bob Badour | 56786ac | 2021-02-25 15:24:36 -0800 | [diff] [blame] | 17 | package { |
| 18 | default_applicable_licenses: ["frameworks_av_media_mtp_license"], |
| 19 | } |
| 20 | |
| 21 | // Added automatically by a large-scale-change |
| 22 | // See: http://go/android-license-faq |
| 23 | license { |
| 24 | name: "frameworks_av_media_mtp_license", |
| 25 | visibility: [":__subpackages__"], |
| 26 | license_kinds: [ |
| 27 | "SPDX-license-identifier-Apache-2.0", |
| 28 | ], |
| 29 | license_text: [ |
| 30 | "NOTICE", |
| 31 | ], |
| 32 | } |
| 33 | |
Tomasz Wasilczyk | e997c14 | 2017-05-05 09:51:37 -0700 | [diff] [blame] | 34 | cc_library_shared { |
| 35 | name: "libmtp", |
| 36 | srcs: [ |
Tomasz Wasilczyk | e997c14 | 2017-05-05 09:51:37 -0700 | [diff] [blame] | 37 | "MtpDataPacket.cpp", |
| 38 | "MtpDebug.cpp", |
Jerry Zhang | 69b7450 | 2017-10-02 16:26:37 -0700 | [diff] [blame] | 39 | "MtpDescriptors.cpp", |
Tomasz Wasilczyk | e997c14 | 2017-05-05 09:51:37 -0700 | [diff] [blame] | 40 | "MtpDevHandle.cpp", |
| 41 | "MtpDevice.cpp", |
| 42 | "MtpDeviceInfo.cpp", |
| 43 | "MtpEventPacket.cpp", |
Jerry Zhang | df69dd3 | 2017-05-03 17:17:49 -0700 | [diff] [blame] | 44 | "MtpFfsCompatHandle.cpp", |
Tomasz Wasilczyk | e997c14 | 2017-05-05 09:51:37 -0700 | [diff] [blame] | 45 | "MtpFfsHandle.cpp", |
| 46 | "MtpObjectInfo.cpp", |
| 47 | "MtpPacket.cpp", |
| 48 | "MtpProperty.cpp", |
| 49 | "MtpRequestPacket.cpp", |
| 50 | "MtpResponsePacket.cpp", |
| 51 | "MtpServer.cpp", |
| 52 | "MtpStorage.cpp", |
| 53 | "MtpStorageInfo.cpp", |
| 54 | "MtpStringBuffer.cpp", |
| 55 | "MtpUtils.cpp", |
Jerry Zhang | df69dd3 | 2017-05-03 17:17:49 -0700 | [diff] [blame] | 56 | "PosixAsyncIO.cpp", |
Tomasz Wasilczyk | e997c14 | 2017-05-05 09:51:37 -0700 | [diff] [blame] | 57 | ], |
| 58 | export_include_dirs: ["."], |
| 59 | cflags: [ |
| 60 | "-DMTP_DEVICE", |
| 61 | "-DMTP_HOST", |
| 62 | "-Wall", |
| 63 | "-Wextra", |
| 64 | "-Werror", |
| 65 | ], |
| 66 | shared_libs: [ |
Jerry Zhang | df69dd3 | 2017-05-03 17:17:49 -0700 | [diff] [blame] | 67 | "libasyncio", |
Tomasz Wasilczyk | e997c14 | 2017-05-05 09:51:37 -0700 | [diff] [blame] | 68 | "libbase", |
Tomasz Wasilczyk | e997c14 | 2017-05-05 09:51:37 -0700 | [diff] [blame] | 69 | "liblog", |
| 70 | "libusbhost", |
| 71 | ], |
Tom Cherry | 8f76561 | 2020-09-17 09:35:05 -0700 | [diff] [blame] | 72 | header_libs: ["libcutils_headers"], |
Tomasz Wasilczyk | e997c14 | 2017-05-05 09:51:37 -0700 | [diff] [blame] | 73 | } |