mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Add explicit load statements for cc_binary, cc_library, and cc_test from @rules_cc//cc:defs.bzl in: - shared/cpp/BUILD.bazel - swift/logging/BUILD.bazel - misc/bazel/internal/zipmerge/BUILD.bazel
37 lines
721 B
Python
37 lines
721 B
Python
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
|
|
|
|
cc_library(
|
|
name = "lib",
|
|
srcs = [
|
|
"zipmerge.cpp",
|
|
],
|
|
hdrs = ["zipmerge.h"],
|
|
copts = ["-std=c++20"],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "zipmerge",
|
|
srcs = [
|
|
"zipmerge_main.cpp",
|
|
],
|
|
copts = ["-std=c++20"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":lib",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "test",
|
|
size = "small",
|
|
srcs = ["zipmerge_test.cpp"],
|
|
copts = ["-std=c++20"],
|
|
data = glob(["test-files/*"]),
|
|
linkstatic = True, # required to build the test in the internal repo
|
|
deps = [
|
|
":lib",
|
|
"@googletest//:gtest_main",
|
|
"@rules_cc//cc/runfiles",
|
|
],
|
|
)
|