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
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19cc_library {
20    name: "libfmq",
21    shared_libs: [
22        "libbase",
23        "liblog",
24        "libcutils",
25        "libutils",
26    ],
27    export_shared_lib_headers: [
28        "libcutils",
29        "libutils",
30    ],
31    apex_available: [
32        "//apex_available:platform",
33        "com.android.neuralnetworks",
34        "test_com.android.neuralnetworks",
35    ],
36    export_include_dirs: ["include"],
37    local_include_dirs: ["include"],
38    header_libs: [
39        "libfmq-base",
40    ],
41    export_header_lib_headers: [
42        "libfmq-base",
43    ],
44    srcs: [
45        "EventFlag.cpp",
46        "FmqInternal.cpp",
47    ],
48    cflags: [
49        "-Wall",
50        "-Werror",
51    ],
52    vendor_available: true,
53    product_available: true,
54    // TODO(b/153609531): remove when no longer needed.
55    native_bridge_supported: true,
56    vndk: {
57        enabled: true,
58    },
59    double_loadable: true,
60    min_sdk_version: "29",
61    host_supported: true,
62}
63
64// Header only lib to share type between HIDL and AIDL MQDescriptor
65cc_library_headers {
66    name: "libfmq-base",
67    host_supported: true,
68    vendor_available: true,
69    product_available: true,
70    native_bridge_supported: true,
71    recovery_available: true,
72    apex_available: [
73        "//apex_available:anyapex",
74        "//apex_available:platform",
75    ],
76    export_include_dirs: ["base"],
77    min_sdk_version: "29",
78}
79