Debian Codegraph @

bazel/macros.bzl

raw
1 """
2 THIS IS THE EXTERNAL-ONLY VERSION OF THIS FILE. G3 HAS ITS OWN.
3
4 This file contains general helper macros that make our BUILD.bazel files easier to read.
5 """
6
7 # https://github.com/bazelbuild/bazel-skylib
8 load("@bazel_skylib//lib:selects.bzl", _selects = "selects")
9 load("@emsdk//emscripten_toolchain:wasm_rules.bzl", _wasm_cc_binary = "wasm_cc_binary")
10 load("@gazelle//:def.bzl", _gazelle = "gazelle")
11 load("@py_deps//:requirements.bzl", _requirement = "requirement")
12 load("@rules_go//go:def.bzl", _go_binary = "go_binary", _go_library = "go_library")
13 load("@rules_python//python:defs.bzl", _py_binary = "py_binary")
14 load("//bazel:flags.bzl", _bool_flag = "bool_flag", _string_flag_with_values = "string_flag_with_values")
15 load(
16 "//bazel:skia_rules.bzl",
17 _select_multi = "select_multi",
18 _skia_cc_binary = "skia_cc_binary",
19 _skia_cc_library = "skia_cc_library",
20 _skia_filegroup = "skia_filegroup",
21 _skia_objc_library = "skia_objc_library",
22 _split_srcs_and_hdrs = "split_srcs_and_hdrs",
23 )
24
25 # re-export symbols that are commonly used or that are not supported in G3
26 # (and thus we need to stub out)
27 bool_flag = _bool_flag
28 gazelle = _gazelle
29 go_binary = _go_binary
30 go_library = _go_library
31 py_binary = _py_binary
32 requirement = _requirement
33 selects = _selects
34 string_flag_with_values = _string_flag_with_values
35 wasm_cc_binary = _wasm_cc_binary
36
37 select_multi = _select_multi
38 skia_cc_binary = _skia_cc_binary
39 skia_cc_library = _skia_cc_library
40 skia_filegroup = _skia_filegroup
41 skia_objc_library = _skia_objc_library
42 split_srcs_and_hdrs = _split_srcs_and_hdrs