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