mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Collect Bazel files into bzl_library
targets
PiperOrigin-RevId: 325221214 Change-Id: Iab03b900e143b9b95bed151097abb59ac1e0f996
This commit is contained in:
parent
8633f22185
commit
11fd8ba330
@ -12,6 +12,8 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
|
||||||
|
|
||||||
licenses(["notice"])
|
licenses(["notice"])
|
||||||
|
|
||||||
exports_files([
|
exports_files([
|
||||||
@ -19,3 +21,33 @@ exports_files([
|
|||||||
"embed_data.bzl",
|
"embed_data.bzl",
|
||||||
"sapi.bzl",
|
"sapi.bzl",
|
||||||
])
|
])
|
||||||
|
|
||||||
|
bzl_library(
|
||||||
|
name = "build_defs_bzl",
|
||||||
|
srcs = ["build_defs.bzl"],
|
||||||
|
visibility = ["//visibility:private"],
|
||||||
|
)
|
||||||
|
|
||||||
|
bzl_library(
|
||||||
|
name = "embed_data_bzl",
|
||||||
|
srcs = ["embed_data.bzl"],
|
||||||
|
visibility = ["//visibility:private"],
|
||||||
|
)
|
||||||
|
|
||||||
|
bzl_library(
|
||||||
|
name = "proto_bzl",
|
||||||
|
srcs = ["proto.bzl"],
|
||||||
|
visibility = ["//visibility:private"],
|
||||||
|
)
|
||||||
|
|
||||||
|
bzl_library(
|
||||||
|
name = "repositories_bzl",
|
||||||
|
srcs = ["repositories.bzl"],
|
||||||
|
visibility = ["//visibility:private"],
|
||||||
|
)
|
||||||
|
|
||||||
|
bzl_library(
|
||||||
|
name = "sapi_deps_bzl",
|
||||||
|
srcs = ["sapi_deps.bzl"],
|
||||||
|
visibility = ["//visibility:private"],
|
||||||
|
)
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
|
|
||||||
_FILEWRAPPER = "//sandboxed_api/tools/filewrapper"
|
_FILEWRAPPER = "//sandboxed_api/tools/filewrapper"
|
||||||
|
|
||||||
# TODO(cblichmann): Convert this is to use a "_cc_toolchain" once Bazel #4370
|
# TODO(cblichmann): Convert this to use a "_cc_toolchain" once Bazel #4370 is
|
||||||
# is fixed.
|
# fixed.
|
||||||
def _sapi_cc_embed_data_impl(ctx):
|
def _sapi_cc_embed_data_impl(ctx):
|
||||||
cc_file_artifact = None
|
cc_file_artifact = None
|
||||||
h_file_artifact = None
|
h_file_artifact = None
|
||||||
|
@ -56,7 +56,7 @@ def sapi_proto_library(
|
|||||||
deps = [],
|
deps = [],
|
||||||
alwayslink = False,
|
alwayslink = False,
|
||||||
**kwargs):
|
**kwargs):
|
||||||
"""Generates proto targets in various languages.
|
"""Generates proto library and C++ targets.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
name: Name for proto_library and base for the cc_proto_library name, name +
|
name: Name for proto_library and base for the cc_proto_library name, name +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user