| # Copyright 2022 The Fuchsia Authors. All rights reserved. | |
| # Use of this source code is governed by a BSD-style license that can be | |
| # found in the LICENSE file. | |
| if (host_toolchain == current_toolchain) { | |
| group("bionic_compat") { | |
| } | |
| } else { | |
| config("bionic_compat_config") { | |
| include_dirs = [ | |
| "include", | |
| "//third_party/android/platform/bionic/libc/kernel/android/uapi", | |
| "//third_party/android/platform/bionic/libc/kernel/uapi", | |
| ] | |
| } | |
| } | |
| ## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ## | |
| # | |
| # ________ _________ ________ ________ | |
| # |\ ____\|\___ ___\\ __ \|\ __ \ | |
| # \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ | |
| # \ \_____ \ \ \ \ \ \ \\\ \ \ ____\ | |
| # \|____|\ \ \ \ \ \ \ \\\ \ \ \___| | |
| # ____\_\ \ \ \__\ \ \_______\ \__\ | |
| # |\_________\ \|__| \|_______|\|__| | |
| # \|_________| | |
| # | |
| # | |
| # AUTO-GENERATED - DO NOT EDIT | |
| # | |
| # The targets below are auto-generated based on the targets defined in the | |
| # BUILD.bazel file from the same directory. If you made changes to targets in | |
| # Bazel, instead of editing this file manually, run: | |
| # | |
| # > fx bazel2gn | |
| # | |
| # Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and | |
| # rerun bazel2gn. | |
| import("//build/tools/bazel2gn/bazel_migration.gni") | |
| if (is_fuchsia) { | |
| source_set("bionic_compat") { | |
| sources = [ | |
| "pthread.cc", | |
| "resource.cc", | |
| ] | |
| public = [ | |
| "include/ftw.h", | |
| "include/linux/ioctl.h", | |
| "include/linux/sched.h", | |
| "include/linux/types.h", | |
| "include/pthread.h", | |
| "include/stdatomic.h", | |
| "include/sys/cdefs.h", | |
| "include/sys/ioctl.h", | |
| "include/sys/resource.h", | |
| "include/sys/types.h", | |
| "include/sys/user.h", | |
| "include/unistd.h", | |
| ] | |
| deps = [ "//sdk/lib/fdio" ] | |
| public_configs = [ ":bionic_compat_config" ] | |
| visibility = [ | |
| ":*", | |
| "//src/lib/android/binder:*", | |
| "//src/lib/android/core:*", | |
| "//src/lib/android/libbase:*", | |
| "//src/lib/android/logging:*", | |
| "//vendor/google/*", | |
| ] | |
| } | |
| } |