Mikhail Naganov | c276c59 | 2016-08-31 18:08:10 -0700 | [diff] [blame] | 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 | |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 15 | cc_library_shared { |
Paul McLean | 8a3e33b | 2017-03-14 15:20:51 -0700 | [diff] [blame] | 16 | name: "libamidi", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 17 | |
| 18 | srcs: [ |
Paul McLean | f79b8d1 | 2019-02-06 13:27:43 -0700 | [diff] [blame] | 19 | "amidi.cpp", |
Marco Nelissen | 9267280 | 2019-10-22 13:44:43 -0700 | [diff] [blame] | 20 | "MidiDeviceInfo.cpp", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 21 | ":IMidiDeviceServer.aidl", |
| 22 | ], |
| 23 | |
| 24 | aidl: { |
| 25 | include_dirs: ["frameworks/base/media/java"], |
Paul McLean | 8a3e33b | 2017-03-14 15:20:51 -0700 | [diff] [blame] | 26 | export_aidl_headers: false, |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 27 | }, |
| 28 | |
| 29 | cflags: [ |
| 30 | "-Wall", |
| 31 | "-Werror", |
Paul McLean | 8a3e33b | 2017-03-14 15:20:51 -0700 | [diff] [blame] | 32 | "-fvisibility=hidden", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 33 | ], |
| 34 | |
Marco Nelissen | 9267280 | 2019-10-22 13:44:43 -0700 | [diff] [blame] | 35 | header_libs: [ |
| 36 | "media_ndk_headers", |
| 37 | ], |
| 38 | |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 39 | shared_libs: [ |
| 40 | "liblog", |
| 41 | "libbinder", |
| 42 | "libutils", |
Paul McLean | 8a3e33b | 2017-03-14 15:20:51 -0700 | [diff] [blame] | 43 | "libandroid_runtime", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 44 | ], |
| 45 | |
dimitry | 4f16e85 | 2019-08-26 18:38:50 +0200 | [diff] [blame] | 46 | version_script: "libamidi.map.txt", |
| 47 | |
Paul McLean | 8a3e33b | 2017-03-14 15:20:51 -0700 | [diff] [blame] | 48 | export_include_dirs: ["include"], |
| 49 | } |
| 50 | |
| 51 | ndk_headers { |
| 52 | name: "amidi", |
| 53 | |
| 54 | from: "include", |
| 55 | |
Paul McLean | f79b8d1 | 2019-02-06 13:27:43 -0700 | [diff] [blame] | 56 | to: "", |
Paul McLean | 8a3e33b | 2017-03-14 15:20:51 -0700 | [diff] [blame] | 57 | |
Paul McLean | f79b8d1 | 2019-02-06 13:27:43 -0700 | [diff] [blame] | 58 | srcs: ["include/amidi/AMidi.h"], |
| 59 | license: "include/amidi/NOTICE", |
Paul McLean | 8a3e33b | 2017-03-14 15:20:51 -0700 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | ndk_library { |
| 63 | name: "libamidi", |
| 64 | |
| 65 | symbol_file: "libamidi.map.txt", |
| 66 | |
| 67 | first_version: "29", |
Mikhail Naganov | c276c59 | 2016-08-31 18:08:10 -0700 | [diff] [blame] | 68 | } |