mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
This commits a bazel-based build system for C# using `rules_dotnet`. External dependencies are managed via `paket`, and updates to the generated bazel files are done via `./update-deps.sh`. We're providing our own (minimal) test runner for `xunit` tests.
22 lines
527 B
Python
22 lines
527 B
Python
load(
|
|
"//misc/bazel:csharp.bzl",
|
|
"codeql_csharp_library",
|
|
)
|
|
|
|
codeql_csharp_library(
|
|
name = "Semmle.Extraction.CSharp.DependencyFetching",
|
|
srcs = glob([
|
|
"*.cs",
|
|
"Properties/*.cs",
|
|
"SourceGenerators/**/*.cs",
|
|
]),
|
|
allow_unsafe_blocks = True,
|
|
internals_visible_to = ["Semmle.Extraction.Tests"],
|
|
nowarn = ["CA1822"],
|
|
visibility = ["//csharp:__subpackages__"],
|
|
deps = [
|
|
"//csharp/extractor/Semmle.Extraction",
|
|
"//csharp/extractor/Semmle.Util",
|
|
],
|
|
)
|