blob: f979af3848434e6d665320746d6b3c8215a87a76 [file]
# Copyright 2024 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.
# LINT.IfChange(python_config)
config("python_config") {
defines = [
"Py_LIMITED_API=0x030b00f0",
"PY_SSIZE_T_CLEAN",
]
}
# LINT.ThenChange(BUILD.bazel:python_config)
# LINT.IfChange(fuchsia_controller_abi_config)
config("fuchsia_controller_abi_config") {
include_dirs = [ "." ]
}
# LINT.ThenChange(BUILD.bazel:fuchsia_controller_abi_config)
## 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")
static_library("fuchsia_controller_abi") {
public = [
"fuchsia_controller_abi/abi.h",
"fuchsia_controller_abi/utils.h",
]
configs += [
":fuchsia_controller_abi_config",
":python_config",
]
defines = [
"Py_LIMITED_API=0x030b00f0",
"PY_SSIZE_T_CLEAN",
]
public_configs = [
":fuchsia_controller_abi_config",
":python_config",
]
}
if (is_host && is_linux) {
python_c_extension("fuchsia_controller_internal") {
sources = [
"fuchsia_controller_internal/error.cc",
"fuchsia_controller_internal/error.h",
"fuchsia_controller_internal/fuchsia_controller.h",
"fuchsia_controller_internal/fuchsia_controller_py.cc",
"fuchsia_controller_internal/macros.h",
"fuchsia_controller_internal/mod.cc",
"fuchsia_controller_internal/mod.h",
]
stubs = [ "__init__.pyi" ]
stubs_root = "fuchsia_controller_internal"
visibility = [ "//*" ]
deps = [
":fuchsia_controller_abi",
"//sdk/fidl/fuchsia.fdomain:fuchsia.fdomain_cpp",
"//sdk/lib/zircon-assert",
"//src/developer/fuchsia-controller:lib",
"//zircon/system/public",
]
}
}