• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021 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
15load(":cc_library_static.bzl", "cc_library_static")
16
17def cc_library_headers(
18        name,
19        deps = [],
20        hdrs = [],
21        export_includes = [],
22        export_absolute_includes = [],
23        export_system_includes = [],
24        native_bridge_supported = False,  # TODO: not supported yet.
25        sdk_version = "",
26        min_sdk_version = "",
27        **kwargs):
28    "Bazel macro to correspond with the cc_library_headers Soong module."
29
30    cc_library_static(
31        name = name,
32        deps = deps,
33        export_includes = export_includes,
34        export_absolute_includes = export_absolute_includes,
35        export_system_includes = export_system_includes,
36        hdrs = hdrs,
37        native_bridge_supported = native_bridge_supported,
38        stl = "none",
39        sdk_version = sdk_version,
40        min_sdk_version = min_sdk_version,
41        **kwargs
42    )
43