2022-06-18 15:03:30 +00:00
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "shadow-file-format",
|
|
|
|
srcs = glob(["src/**/*.cpp", "src/**/*.h"]),
|
|
|
|
hdrs = glob(["src/**/*.h"]),
|
|
|
|
strip_include_prefix = "src/",
|
|
|
|
includes = [],
|
|
|
|
copts = [
|
|
|
|
"/std:c++17"
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//projs/shadow-utility"
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_test(
|
|
|
|
name = "test",
|
|
|
|
srcs = glob(["test/**/*.cpp", "test/**/*.h"]),
|
|
|
|
includes = [],
|
2022-06-23 21:31:05 +00:00
|
|
|
defines = [ "CATCH_CONFIG_MAIN" ],
|
2022-06-18 15:03:30 +00:00
|
|
|
copts = [
|
|
|
|
"/std:c++17"
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
"//projs/shadow-file-format",
|
2022-06-23 21:31:05 +00:00
|
|
|
"@catch2"
|
|
|
|
],
|
2022-06-18 15:03:30 +00:00
|
|
|
)
|