Files
codeql/misc/bazel/internal/zipmerge/BUILD.bazel
2024-05-31 12:12:58 +02:00

35 lines
661 B
Python

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",
"@bazel_tools//tools/cpp/runfiles",
"@googletest//:gtest_main",
],
)