2024-02-02 13:01:02 +03:00
|
|
|
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")
|
2024-02-02 13:01:02 +03:00
|
|
|
|
2023-10-05 10:00:38 +03:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
alias(
|
|
|
|
name = "dbscheme",
|
|
|
|
actual = "//csharp/ql/lib:dbscheme",
|
|
|
|
)
|
|
|
|
|
|
|
|
alias(
|
|
|
|
name = "dbscheme-stats",
|
|
|
|
actual = "//csharp/ql/lib:dbscheme-stats",
|
|
|
|
)
|
2024-02-02 13:01:02 +03:00
|
|
|
|
|
|
|
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",
|
2024-02-02 13:01:02 +03:00
|
|
|
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-02-02 13:01:02 +03:00
|
|
|
],
|
2024-05-21 17:29:54 +03:00
|
|
|
)
|
|
|
|
|
2024-05-30 11:54:37 +03:00
|
|
|
codeql_pack(
|
|
|
|
name = "csharp",
|
2024-02-02 13:01:02 +03:00
|
|
|
srcs = [
|
|
|
|
":dbscheme-group",
|
|
|
|
":extra-files",
|
2024-05-30 11:54:37 +03:00
|
|
|
":extractor-arch-overlay",
|
2024-02-02 13:01:02 +03:00
|
|
|
":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",
|
|
|
|
],
|
|
|
|
)
|