codeql/csharp/BUILD.bazel

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 строки
1.7 KiB
Python
Исходник Постоянная ссылка Обычный вид История

load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup", "pkg_files")
2024-05-30 11:54:37 +03:00
load("//misc/bazel:pkg.bzl", "codeql_pack", "codeql_pkg_files_overlay")
package(default_visibility = ["//visibility:public"])
alias(
name = "dbscheme",
actual = "//csharp/ql/lib:dbscheme",
)
alias(
name = "dbscheme-stats",
actual = "//csharp/ql/lib:dbscheme-stats",
)
pkg_files(
name = "dbscheme-group",
srcs = [
":dbscheme",
":dbscheme-stats",
],
strip_prefix = None,
)
pkg_files(
name = "extractor-asp",
srcs = [
"@semmle_code//extractor-asp:extractor-asp-fat",
],
prefix = "tools",
renames = {
"@semmle_code//extractor-asp:extractor-asp-fat": "extractor-asp.jar",
},
)
pkg_filegroup(
name = "db-files",
srcs = [
":dbscheme-group",
"//csharp/downgrades",
],
)
pkg_files(
name = "extra-files",
srcs = [
":codeql-extractor.yml",
"//:LICENSE",
],
)
2024-05-21 17:29:54 +03:00
codeql_pkg_files_overlay(
name = "extractor-arch-overlay",
srcs = [
2024-05-21 17:29:54 +03:00
"//csharp/autobuilder/Semmle.Autobuild.CSharp",
"//csharp/extractor/Semmle.Extraction.CSharp.Driver",
"//csharp/extractor/Semmle.Extraction.CSharp.Standalone",
],
2024-05-21 17:29:54 +03:00
)
2024-05-30 11:54:37 +03:00
codeql_pack(
name = "csharp",
srcs = [
":dbscheme-group",
":extra-files",
2024-05-30 11:54:37 +03:00
":extractor-arch-overlay",
":extractor-asp",
"//csharp/downgrades",
"//csharp/tools",
],
)
test_suite(
name = "unit-tests",
tags = ["csharp"],
tests = [
"//csharp/autobuilder/Semmle.Autobuild.CSharp.Tests",
"//csharp/autobuilder/Semmle.Autobuild.Cpp.Tests",
"//csharp/extractor/Semmle.Extraction.Tests",
],
)