1// Copyright (C) 2017 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 // See: http://go/android-license-faq 17 // A large-scale-change added 'default_applicable_licenses' to import 18 // all of the 'license_kinds' from "frameworks_base_license" 19 // to get the below license kinds: 20 // SPDX-license-identifier-Apache-2.0 21 default_applicable_licenses: ["frameworks_base_license"], 22} 23 24cc_library_shared { 25 name: "libamidi", 26 27 srcs: [ 28 "amidi.cpp", 29 "MidiDeviceInfo.cpp", 30 ":IMidiDeviceServer.aidl", 31 ], 32 33 aidl: { 34 include_dirs: ["frameworks/base/media/java"], 35 export_aidl_headers: false, 36 }, 37 38 cflags: [ 39 "-Wall", 40 "-Werror", 41 "-fvisibility=hidden", 42 ], 43 44 header_libs: [ 45 "media_ndk_headers", 46 ], 47 48 shared_libs: [ 49 "liblog", 50 "libbinder", 51 "libutils", 52 "libandroid_runtime", 53 ], 54 55 version_script: "libamidi.map.txt", 56 57 export_include_dirs: ["include"], 58} 59 60ndk_headers { 61 name: "amidi", 62 63 from: "include", 64 65 to: "", 66 67 srcs: ["include/amidi/AMidi.h"], 68 license: "include/amidi/NOTICE", 69} 70 71ndk_library { 72 name: "libamidi", 73 74 symbol_file: "libamidi.map.txt", 75 76 first_version: "29", 77} 78