| load("@bazel_skylib//:bzl_library.bzl", "bzl_library") |
| load("@rules_cc//cc:cc_library.bzl", "cc_library") |
| load("//python/private:visibility.bzl", "NOT_ACTUALLY_PUBLIC") |
| |
| package( |
| default_visibility = ["//:__subpackages__"], |
| ) |
| |
| licenses(["notice"]) |
| |
| filegroup( |
| name = "distribution", |
| srcs = glob(["**"]), |
| ) |
| |
| # An empty cc target for use when a cc target is needed to satisfy |
| # Bazel, but its contents don't matter. |
| cc_library( |
| name = "empty", |
| visibility = NOT_ACTUALLY_PUBLIC, |
| ) |
| |
| # Private alias to avoid "duplicate dependency label" errors when users |
| # explicitly pass //python/cc:current_py_cc_headers or //python/cc:current_py_cc_libs |
| # in the deps attribute (including when deps is a select() expression). |
| alias( |
| name = "current_py_cc_headers_private_alias", |
| actual = "//python/cc:current_py_cc_headers", |
| visibility = NOT_ACTUALLY_PUBLIC, |
| ) |
| |
| # Private alias to avoid "duplicate dependency label" errors when users |
| # explicitly pass //python/cc:current_py_cc_headers or //python/cc:current_py_cc_libs |
| # in the deps attribute (including when deps is a select() expression). |
| alias( |
| name = "current_py_cc_libs_private_alias", |
| actual = "//python/cc:current_py_cc_libs", |
| visibility = NOT_ACTUALLY_PUBLIC, |
| ) |
| |
| bzl_library( |
| name = "py_extension_macro_bzl", |
| deps = [ |
| ":py_extension_rule_bzl", |
| "//python/private:util", |
| "@rules_cc//cc:core_rules", |
| ], |
| ) |
| |
| bzl_library( |
| name = "py_extension_rule_bzl", |
| deps = [ |
| "//python/private:attr_builders", |
| "//python/private:attributes", |
| "//python/private:py_info", |
| "//python/private:rule_builders", |
| "//python/private:toolchain_types", |
| "@rules_cc//cc/common", |
| ], |
| ) |
| |
| bzl_library( |
| name = "py_extension_macro", |
| srcs = ["py_extension_macro.bzl"], |
| deps = [ |
| ":py_extension_rule", |
| "//python/private:util", |
| "@rules_cc//cc:core_rules", |
| ], |
| ) |
| |
| bzl_library( |
| name = "py_extension_rule", |
| srcs = ["py_extension_rule.bzl"], |
| deps = [ |
| "//python/private:attr_builders", |
| "//python/private:attributes", |
| "//python/private:builders", |
| "//python/private:py_info", |
| "//python/private:reexports", |
| "//python/private:rule_builders", |
| "//python/private:toolchain_types", |
| "@bazel_skylib//lib:dicts", |
| "@rules_cc//cc/common", |
| ], |
| ) |