mirror of
https://github.com/github/codeql.git
synced 2026-04-20 14:34:04 +02:00
Turns out in https://github.com/github/codeql/pull/21371 I was right about `java_*` rules not relying on autoload anywhere, but it turns out some `cc_*` rules still relied on autoload. This autoload is currently configured in the internal repository, but we want to remove it eventually. This patch: * adds explicit loads to `rules_cc` * removes an obsolete file (that depedency has its own bazel module since some time, we just forgot to remove the old file)
30 lines
564 B
Plaintext
30 lines
564 B
Plaintext
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
|
|
|
|
cc_library(
|
|
name = "binlog",
|
|
srcs = glob(["include/**/*.cpp"]),
|
|
hdrs = glob(["include/**/*.hpp"]),
|
|
includes = ["include"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "bread",
|
|
srcs = [
|
|
"bin/bread.cpp",
|
|
"bin/getopt.hpp",
|
|
"bin/printers.cpp",
|
|
"bin/printers.hpp",
|
|
],
|
|
deps = [":binlog"],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "brecovery",
|
|
srcs = [
|
|
"bin/brecovery.cpp",
|
|
"bin/getopt.hpp",
|
|
],
|
|
deps = [":binlog"],
|
|
)
|