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 _exports_files_legacy = "exports_files_legacy", 19 _generate_cpp_files_for_headers = "generate_cpp_files_for_headers", 20 _select_multi = "select_multi", 21 _skia_cc_binary = "skia_cc_binary", 22 _skia_cc_binary_with_flags = "skia_cc_binary_with_flags", 23 _skia_cc_deps = "skia_cc_deps", 24 _skia_cc_library = "skia_cc_library", 25 _skia_filegroup = "skia_filegroup", 26 _skia_objc_library = "skia_objc_library", 27 _split_srcs_and_hdrs = "split_srcs_and_hdrs", 28) 29 30# re-export symbols that are commonly used or that are not supported in G3 31# (and thus we need to stub out) 32bool_flag = _bool_flag 33gazelle = _gazelle 34go_binary = _go_binary 35go_library = _go_library 36py_binary = _py_binary 37requirement = _requirement 38selects = _selects 39string_flag_with_values = _string_flag_with_values 40wasm_cc_binary = _wasm_cc_binary 41generate_cpp_files_for_headers = _generate_cpp_files_for_headers 42 43exports_files_legacy = _exports_files_legacy 44select_multi = _select_multi 45skia_cc_binary = _skia_cc_binary 46skia_cc_binary_with_flags = _skia_cc_binary_with_flags 47skia_cc_deps = _skia_cc_deps 48skia_cc_library = _skia_cc_library 49skia_filegroup = _skia_filegroup 50skia_objc_library = _skia_objc_library 51split_srcs_and_hdrs = _split_srcs_and_hdrs 52