blob: f37f1c6388491ce0fee836145ec791054217e5c7 [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
Bob Badour1edd2c32021-02-12 15:54:30 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Hridya Valsarajuc3be0c92018-10-17 14:24:51 -070019cc_library {
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080020 name: "libfmq",
21 shared_libs: [
Yifan Hongdc5bd672017-04-11 17:11:57 -070022 "libbase",
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080023 "liblog",
24 "libcutils",
25 "libutils",
26 ],
27 export_shared_lib_headers: [
28 "libcutils",
29 "libutils",
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080030 ],
Przemyslaw Szczepaniak585a16e2020-02-14 13:33:15 +000031 apex_available: [
32 "//apex_available:platform",
William Escande11af9472022-03-02 20:28:11 +010033 "com.android.bluetooth",
Ray Essickaa927fd2022-02-09 11:30:26 -080034 "com.android.media.swcodec",
Przemyslaw Szczepaniak585a16e2020-02-14 13:33:15 +000035 "com.android.neuralnetworks",
Ray Essickaa927fd2022-02-09 11:30:26 -080036 "test_com.android.media.swcodec",
Przemyslaw Szczepaniak585a16e2020-02-14 13:33:15 +000037 "test_com.android.neuralnetworks",
38 ],
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080039 export_include_dirs: ["include"],
40 local_include_dirs: ["include"],
Devin Moore133cb5e2020-07-07 16:31:22 -070041 header_libs: [
42 "libfmq-base",
43 ],
44 export_header_lib_headers: [
45 "libfmq-base",
46 ],
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080047 srcs: [
48 "EventFlag.cpp",
Yifan Hongdc5bd672017-04-11 17:11:57 -070049 "FmqInternal.cpp",
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080050 ],
51 cflags: [
52 "-Wall",
53 "-Werror",
54 ],
Dan Willemsen57180652017-04-07 14:19:32 -070055 vendor_available: true,
Justin Yundee3c652020-11-11 19:22:01 +090056 product_available: true,
Victor Khimenkoc7a302a2020-07-03 00:15:48 +020057 // TODO(b/153609531): remove when no longer needed.
58 native_bridge_supported: true,
Justin Yun8d1189c2017-07-24 15:19:45 +090059 vndk: {
60 enabled: true,
61 },
Michael Butler2fbcc292019-01-24 14:00:54 -080062 double_loadable: true,
Jooyung Hanb60248f2020-04-16 18:48:34 +090063 min_sdk_version: "29",
Devin Mooreef38ed62021-04-07 10:10:36 -070064 host_supported: true,
Hridya Valsaraju8b0d5a52016-12-16 10:29:03 -080065}
Devin Moore133cb5e2020-07-07 16:31:22 -070066
67// Header only lib to share type between HIDL and AIDL MQDescriptor
68cc_library_headers {
69 name: "libfmq-base",
70 host_supported: true,
71 vendor_available: true,
Justin Yundee3c652020-11-11 19:22:01 +090072 product_available: true,
Devin Moore133cb5e2020-07-07 16:31:22 -070073 native_bridge_supported: true,
74 recovery_available: true,
75 apex_available: [
76 "//apex_available:anyapex",
77 "//apex_available:platform",
78 ],
79 export_include_dirs: ["base"],
80 min_sdk_version: "29",
81}