load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") | |
filegroup( | |
name = "all_srcs", | |
srcs = glob(["**"]), | |
) | |
# TODO(derekjchow): Set isystem for systemc headers. | |
cmake( | |
name = "systemc", | |
cache_entries = { | |
"CMAKE_CXX_STANDARD": "17", | |
"BUILD_SHARED_LIBS": "False", | |
}, | |
generate_args = [ | |
"-G Ninja", | |
], | |
install = True, | |
lib_source = "@accellera_systemc//:all_srcs", | |
out_static_libs = ["libsystemc.a"], | |
visibility = ["//visibility:public"], | |
) |