• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.bluetooth",
34        "com.android.media.swcodec",
35        "com.android.neuralnetworks",
36        "test_com.android.media.swcodec",
37        "test_com.android.neuralnetworks",
38    ],
39    export_include_dirs: ["include"],
40    local_include_dirs: ["include"],
41    header_libs: [
42        "libfmq-base",
43    ],
44    export_header_lib_headers: [
45        "libfmq-base",
46    ],
47    srcs: [
48        "EventFlag.cpp",
49        "FmqInternal.cpp",
50    ],
51    cflags: [
52        "-Wall",
53        "-Werror",
54    ],
55    vendor_available: true,
56    product_available: true,
57    // TODO(b/153609531): remove when no longer needed.
58    native_bridge_supported: true,
59    vndk: {
60        enabled: true,
61    },
62    double_loadable: true,
63    min_sdk_version: "29",
64    host_supported: true,
65}
66
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,
72    product_available: true,
73    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}
82