blob: 915fbac8cd0e3b1f4b2258b2f2573e3a96294767 [file] [log] [blame]
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -08001// 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 Valsarajuc3be0c92018-10-17 14:24:51 -070015cc_library {
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080016 name: "libfmq",
17 shared_libs: [
Yifan Hongdc5bd672017-04-11 17:11:57 -070018 "libbase",
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080019 "liblog",
20 "libcutils",
21 "libutils",
22 ],
23 export_shared_lib_headers: [
24 "libcutils",
25 "libutils",
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080026 ],
Przemyslaw Szczepaniak585a16e2020-02-14 13:33:15 +000027 apex_available: [
28 "//apex_available:platform",
29 "com.android.neuralnetworks",
30 "test_com.android.neuralnetworks",
31 ],
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080032 export_include_dirs: ["include"],
33 local_include_dirs: ["include"],
Devin Moore133cb5e2020-07-07 16:31:22 -070034 header_libs: [
35 "libfmq-base",
36 ],
37 export_header_lib_headers: [
38 "libfmq-base",
39 ],
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080040 srcs: [
41 "EventFlag.cpp",
Yifan Hongdc5bd672017-04-11 17:11:57 -070042 "FmqInternal.cpp",
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080043 ],
44 cflags: [
45 "-Wall",
46 "-Werror",
47 ],
Dan Willemsen57180652017-04-07 14:19:32 -070048 vendor_available: true,
Justin Yundee3c652020-11-11 19:22:01 +090049 product_available: true,
Victor Khimenkoc7a302a2020-07-03 00:15:48 +020050 // TODO(b/153609531): remove when no longer needed.
51 native_bridge_supported: true,
Justin Yun8d1189c2017-07-24 15:19:45 +090052 vndk: {
53 enabled: true,
54 },
Michael Butler2fbcc292019-01-24 14:00:54 -080055 double_loadable: true,
Jooyung Hanb60248f2020-04-16 18:48:34 +090056 min_sdk_version: "29",
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080057}
Devin Moore133cb5e2020-07-07 16:31:22 -070058
59// Header only lib to share type between HIDL and AIDL MQDescriptor
60cc_library_headers {
61 name: "libfmq-base",
62 host_supported: true,
63 vendor_available: true,
Justin Yundee3c652020-11-11 19:22:01 +090064 product_available: true,
Devin Moore133cb5e2020-07-07 16:31:22 -070065 native_bridge_supported: true,
66 recovery_available: true,
67 apex_available: [
68 "//apex_available:anyapex",
69 "//apex_available:platform",
70 ],
71 export_include_dirs: ["base"],
72 min_sdk_version: "29",
73}