forked from hedronvision/bazel-compile-commands-extractor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD
34 lines (25 loc) · 1.18 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
load(":refresh_compile_commands.bzl", "refresh_compile_commands")
# See README.md for interface.
# But if you aren't doing any cross-compiling for other platforms, the following can be a good default:
# bazel run @hedron_compile_commands//:refresh_all
refresh_compile_commands(
name = "refresh_all",
)
# Stardoc users only: Depend on "@hedron_compile_commands//:bzl_srcs_for_stardoc" as needed.
# Why? Stardoc requires all loaded files to be listed as deps; without this we'd prevent users from running Stardoc on their code when they load from this tool in, e.g., their own workspace.bzl or wrapping macros.
filegroup(
name = "bzl_srcs_for_stardoc",
visibility = ["//visibility:public"],
srcs = glob(["**/*.bzl"]) + [
"@bazel_tools//tools:bzl_srcs",
],
)
########################################
# Implementation:
# If you are looking into the implementation, start with the overview in ImplementationReadme.md.
exports_files(["refresh.template.py", "check_python_version.template.py"]) # For implicit use by the refresh_compile_commands macro, not direct use.
cc_binary(
name = "print_args",
srcs = ["print_args.cpp"],
visibility = ["//visibility:public"],
)