blob: 2da45b6a78be154a2f560baedf48a546dabba4aa [file] [log] [blame]
Mikhail Naganovc276c592016-08-31 18:08:10 -07001// 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
Colin Cross76de4f62017-05-15 18:10:40 -070015cc_library_shared {
Paul McLean8a3e33b2017-03-14 15:20:51 -070016 name: "libamidi",
Colin Cross76de4f62017-05-15 18:10:40 -070017
18 srcs: [
Paul McLeanf79b8d12019-02-06 13:27:43 -070019 "amidi.cpp",
Marco Nelissen92672802019-10-22 13:44:43 -070020 "MidiDeviceInfo.cpp",
Colin Cross76de4f62017-05-15 18:10:40 -070021 ":IMidiDeviceServer.aidl",
22 ],
23
24 aidl: {
25 include_dirs: ["frameworks/base/media/java"],
Paul McLean8a3e33b2017-03-14 15:20:51 -070026 export_aidl_headers: false,
Colin Cross76de4f62017-05-15 18:10:40 -070027 },
28
29 cflags: [
30 "-Wall",
31 "-Werror",
Paul McLean8a3e33b2017-03-14 15:20:51 -070032 "-fvisibility=hidden",
Colin Cross76de4f62017-05-15 18:10:40 -070033 ],
34
Marco Nelissen92672802019-10-22 13:44:43 -070035 header_libs: [
36 "media_ndk_headers",
37 ],
38
Colin Cross76de4f62017-05-15 18:10:40 -070039 shared_libs: [
40 "liblog",
41 "libbinder",
42 "libutils",
Paul McLean8a3e33b2017-03-14 15:20:51 -070043 "libandroid_runtime",
Colin Cross76de4f62017-05-15 18:10:40 -070044 ],
45
dimitry4f16e852019-08-26 18:38:50 +020046 version_script: "libamidi.map.txt",
47
Paul McLean8a3e33b2017-03-14 15:20:51 -070048 export_include_dirs: ["include"],
49}
50
51ndk_headers {
52 name: "amidi",
53
54 from: "include",
55
Paul McLeanf79b8d12019-02-06 13:27:43 -070056 to: "",
Paul McLean8a3e33b2017-03-14 15:20:51 -070057
Paul McLeanf79b8d12019-02-06 13:27:43 -070058 srcs: ["include/amidi/AMidi.h"],
59 license: "include/amidi/NOTICE",
Paul McLean8a3e33b2017-03-14 15:20:51 -070060}
61
62ndk_library {
63 name: "libamidi",
64
65 symbol_file: "libamidi.map.txt",
66
67 first_version: "29",
Mikhail Naganovc276c592016-08-31 18:08:10 -070068}