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
15cc_library_shared {
16    name: "libamidi",
17
18    srcs: [
19        "amidi.cpp",
20        "MidiDeviceInfo.cpp",
21        ":IMidiDeviceServer.aidl",
22    ],
23
24    aidl: {
25        include_dirs: ["frameworks/base/media/java"],
26        export_aidl_headers: false,
27    },
28
29    cflags: [
30        "-Wall",
31        "-Werror",
32        "-fvisibility=hidden",
33    ],
34
35    header_libs: [
36        "media_ndk_headers",
37    ],
38
39    shared_libs: [
40        "liblog",
41        "libbinder",
42        "libutils",
43        "libandroid_runtime",
44    ],
45
46    version_script: "libamidi.map.txt",
47
48    export_include_dirs: ["include"],
49}
50
51ndk_headers {
52    name: "amidi",
53
54    from: "include",
55
56    to: "",
57
58    srcs: ["include/amidi/AMidi.h"],
59    license: "include/amidi/NOTICE",
60}
61
62ndk_library {
63    name: "libamidi",
64
65    symbol_file: "libamidi.map.txt",
66
67    first_version: "29",
68}
69