Hridya Valsaraju | 8b0d5a5 | 2016-12-16 10:29:03 -0800 | [diff] [blame] | 1 | // Copyright (C) 2016 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 | |
Hridya Valsaraju | c3be0c9 | 2018-10-17 14:24:51 -0700 | [diff] [blame] | 15 | cc_library { |
Hridya Valsaraju | 8b0d5a5 | 2016-12-16 10:29:03 -0800 | [diff] [blame] | 16 | name: "libfmq", |
| 17 | shared_libs: [ |
Yifan Hong | dc5bd67 | 2017-04-11 17:11:57 -0700 | [diff] [blame] | 18 | "libbase", |
Hridya Valsaraju | 8b0d5a5 | 2016-12-16 10:29:03 -0800 | [diff] [blame] | 19 | "liblog", |
| 20 | "libcutils", |
| 21 | "libutils", |
| 22 | ], |
| 23 | export_shared_lib_headers: [ |
| 24 | "libcutils", |
| 25 | "libutils", |
Hridya Valsaraju | 8b0d5a5 | 2016-12-16 10:29:03 -0800 | [diff] [blame] | 26 | ], |
Przemyslaw Szczepaniak | 585a16e | 2020-02-14 13:33:15 +0000 | [diff] [blame] | 27 | apex_available: [ |
| 28 | "//apex_available:platform", |
| 29 | "com.android.neuralnetworks", |
| 30 | "test_com.android.neuralnetworks", |
| 31 | ], |
Hridya Valsaraju | 8b0d5a5 | 2016-12-16 10:29:03 -0800 | [diff] [blame] | 32 | export_include_dirs: ["include"], |
| 33 | local_include_dirs: ["include"], |
Devin Moore | 133cb5e | 2020-07-07 16:31:22 -0700 | [diff] [blame] | 34 | header_libs: [ |
| 35 | "libfmq-base", |
| 36 | ], |
| 37 | export_header_lib_headers: [ |
| 38 | "libfmq-base", |
| 39 | ], |
Hridya Valsaraju | 8b0d5a5 | 2016-12-16 10:29:03 -0800 | [diff] [blame] | 40 | srcs: [ |
| 41 | "EventFlag.cpp", |
Yifan Hong | dc5bd67 | 2017-04-11 17:11:57 -0700 | [diff] [blame] | 42 | "FmqInternal.cpp", |
Hridya Valsaraju | 8b0d5a5 | 2016-12-16 10:29:03 -0800 | [diff] [blame] | 43 | ], |
| 44 | cflags: [ |
| 45 | "-Wall", |
| 46 | "-Werror", |
| 47 | ], |
Dan Willemsen | 5718065 | 2017-04-07 14:19:32 -0700 | [diff] [blame] | 48 | vendor_available: true, |
Victor Khimenko | c7a302a | 2020-07-03 00:15:48 +0200 | [diff] [blame] | 49 | // TODO(b/153609531): remove when no longer needed. |
| 50 | native_bridge_supported: true, |
Justin Yun | 8d1189c | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 51 | vndk: { |
| 52 | enabled: true, |
| 53 | }, |
Michael Butler | 2fbcc29 | 2019-01-24 14:00:54 -0800 | [diff] [blame] | 54 | double_loadable: true, |
Jooyung Han | b60248f | 2020-04-16 18:48:34 +0900 | [diff] [blame] | 55 | min_sdk_version: "29", |
Hridya Valsaraju | 8b0d5a5 | 2016-12-16 10:29:03 -0800 | [diff] [blame] | 56 | } |
Devin Moore | 133cb5e | 2020-07-07 16:31:22 -0700 | [diff] [blame] | 57 | |
| 58 | // Header only lib to share type between HIDL and AIDL MQDescriptor |
| 59 | cc_library_headers { |
| 60 | name: "libfmq-base", |
| 61 | host_supported: true, |
| 62 | vendor_available: true, |
| 63 | native_bridge_supported: true, |
| 64 | recovery_available: true, |
| 65 | apex_available: [ |
| 66 | "//apex_available:anyapex", |
| 67 | "//apex_available:platform", |
| 68 | ], |
| 69 | export_include_dirs: ["base"], |
| 70 | min_sdk_version: "29", |
| 71 | } |