kythe.io@v0.0.68-0.20240422202219-7225dbc01741/tools/build_rules/extra_aspects/cxx/BUILD (about) 1 load("@bazel_skylib//:bzl_library.bzl", "bzl_library") 2 load("//tools/build_rules/extra_aspects:config.bzl", "kythe_extractor_config") 3 load(":config.bzl", "cpp_compile_info_proto_writer") 4 5 kythe_extractor_config( 6 name = "extractor-config", 7 action_listeners = [ 8 "//kythe/extractors:extract_kzip_cxx", 9 ], 10 aspect_rule_attrs = {"cc_proto_library": []}, 11 proto_writer = ":cpp-compile-info-writer", 12 rules = [ 13 "cc_binary", 14 "cc_library", 15 "cc_test", 16 "cc_stubby_library", 17 "py_extension", 18 "proto_library", 19 ], 20 visibility = ["//visibility:public"], 21 ) 22 23 cpp_compile_info_proto_writer(name = "cpp-compile-info-writer") 24 25 bzl_library( 26 name = "config", 27 srcs = ["config.bzl"], 28 deps = ["//tools/build_rules/extra_aspects:extra_actions"], 29 ) 30 31 bzl_library( 32 name = "aspect", 33 srcs = ["aspect.bzl"], 34 deps = [ 35 "//tools/build_rules/extra_aspects:config", 36 "@rules_proto//proto:defs", 37 ], 38 ) 39 40 bzl_library( 41 name = "rules", 42 srcs = ["rules.bzl"], 43 visibility = ["//visibility:public"], 44 deps = [ 45 ":aspect", 46 ], 47 )