blob: 3c9bb6995db700d4773299bb56658270ff5c36ed [file] [log] [blame]
Spandan Das3523e8e2022-06-03 20:21:08 +00001# Copyright (C) 2022 The Android Open Source Project
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# * Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.
9# * Redistributions in binary form must reproduce the above copyright
10# notice, this list of conditions and the following disclaimer in
11# the documentation and/or other materials provided with the
12# distribution.
13#
14# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
17# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
18# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
19# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
21# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
24# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25# SUCH DAMAGE.
26
27load("//build/bazel/rules/apis:cc_api_contribution.bzl", "cc_api_headers")
28
29package(default_visibility = ["//bionic/libc:__pkg__"])
30
31cc_api_headers(
Elliott Hughes473dcc52022-10-19 16:10:53 +000032 name = "libc_kernel_uapi_headers",
33 hdrs = glob(["**/*.h"]),
34 system = True,
Spandan Das3523e8e2022-06-03 20:21:08 +000035)
36
37cc_api_headers(
Elliott Hughes473dcc52022-10-19 16:10:53 +000038 name = "libc_kernel_uapi_asm_arm_headers",
39 hdrs = glob(["asm-arm/**/*.h"]),
40 arch = "arm",
41 include_dir = "asm-arm",
42 system = True,
Spandan Das3523e8e2022-06-03 20:21:08 +000043)
44
45cc_api_headers(
Elliott Hughes473dcc52022-10-19 16:10:53 +000046 name = "libc_kernel_uapi_asm_arm64_headers",
47 hdrs = glob(["asm-arm64/**/*.h"]),
48 arch = "arm64",
49 include_dir = "asm-arm64",
50 system = True,
Spandan Das3523e8e2022-06-03 20:21:08 +000051)
52
53cc_api_headers(
Elliott Hughes473dcc52022-10-19 16:10:53 +000054 name = "libc_kernel_uapi_asm_x86_headers",
55 hdrs = glob(["asm-x86/**/*.h"]),
56 arch = "x86",
57 include_dir = "asm-x86",
58 system = True,
Spandan Das3523e8e2022-06-03 20:21:08 +000059)
60
61cc_api_headers(
Elliott Hughes473dcc52022-10-19 16:10:53 +000062 name = "libc_kernel_uapi_asm_x86_64_headers",
63 hdrs = glob(["asm-x86_64/**/*.h"]),
64 arch = "x86_64",
65 include_dir = "asm-x86_64",
66 system = True,
Spandan Das3523e8e2022-06-03 20:21:08 +000067)