blob: 97e2a22dc9c5e720cc66c4d08d3bcb8473501a4f [file] [log] [blame]
Tomasz Wasilczyke997c142017-05-05 09:51:37 -07001//
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 Badour56786ac2021-02-25 15:24:36 -080017package {
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
23license {
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 Wasilczyke997c142017-05-05 09:51:37 -070034cc_library_shared {
35 name: "libmtp",
36 srcs: [
Tomasz Wasilczyke997c142017-05-05 09:51:37 -070037 "MtpDataPacket.cpp",
38 "MtpDebug.cpp",
Jerry Zhang69b74502017-10-02 16:26:37 -070039 "MtpDescriptors.cpp",
Tomasz Wasilczyke997c142017-05-05 09:51:37 -070040 "MtpDevHandle.cpp",
41 "MtpDevice.cpp",
42 "MtpDeviceInfo.cpp",
43 "MtpEventPacket.cpp",
Jerry Zhangdf69dd32017-05-03 17:17:49 -070044 "MtpFfsCompatHandle.cpp",
Tomasz Wasilczyke997c142017-05-05 09:51:37 -070045 "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 Zhangdf69dd32017-05-03 17:17:49 -070056 "PosixAsyncIO.cpp",
Tomasz Wasilczyke997c142017-05-05 09:51:37 -070057 ],
58 export_include_dirs: ["."],
59 cflags: [
60 "-DMTP_DEVICE",
61 "-DMTP_HOST",
62 "-Wall",
63 "-Wextra",
64 "-Werror",
65 ],
66 shared_libs: [
Jerry Zhangdf69dd32017-05-03 17:17:49 -070067 "libasyncio",
Tomasz Wasilczyke997c142017-05-05 09:51:37 -070068 "libbase",
Tomasz Wasilczyke997c142017-05-05 09:51:37 -070069 "liblog",
70 "libusbhost",
71 ],
Tom Cherry8f765612020-09-17 09:35:05 -070072 header_libs: ["libcutils_headers"],
Tomasz Wasilczyke997c142017-05-05 09:51:37 -070073}