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 17package { 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 34cc_defaults { 35 name: "libmtp_defaults", 36 srcs: [ 37 "MtpDataPacket.cpp", 38 "MtpDebug.cpp", 39 "MtpDescriptors.cpp", 40 "MtpDevHandle.cpp", 41 "MtpDevice.cpp", 42 "MtpDeviceInfo.cpp", 43 "MtpEventPacket.cpp", 44 "MtpFfsCompatHandle.cpp", 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", 56 "PosixAsyncIO.cpp", 57 ], 58 export_include_dirs: ["."], 59 cflags: [ 60 "-DMTP_DEVICE", 61 "-DMTP_HOST", 62 "-Wall", 63 "-Wextra", 64 "-Werror", 65 ], 66 shared_libs: [ 67 "libasyncio", 68 "libbase", 69 "liblog", 70 "libusbhost", 71 ], 72 header_libs: ["libcutils_headers"], 73} 74 75cc_library_shared { 76 name: "libmtp", 77 defaults: ["libmtp_defaults"], 78} 79 80cc_library_shared { 81 name: "libmtp_fuzz", 82 defaults: ["libmtp_defaults"], 83 cflags: ["-DMTP_FUZZER"], 84} 85