зеркало из https://github.com/github/codeql.git
C#: Move to new packaging rules.
This commit is contained in:
Родитель
60b5317c5f
Коммит
d66d7d8a3a
|
@ -1,6 +1,5 @@
|
||||||
load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup", "pkg_files")
|
load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup", "pkg_files")
|
||||||
load("@semmle_code//:dist.bzl", "dist")
|
load("//misc/bazel:pkg.bzl", "codeql_pack", "codeql_pkg_files_overlay")
|
||||||
load("//misc/bazel:pkg.bzl", "codeql_pkg_files_overlay")
|
|
||||||
|
|
||||||
package(default_visibility = ["//visibility:public"])
|
package(default_visibility = ["//visibility:public"])
|
||||||
|
|
||||||
|
@ -59,22 +58,16 @@ codeql_pkg_files_overlay(
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
dist(
|
codeql_pack(
|
||||||
name = "extractor-arch",
|
name = "csharp",
|
||||||
srcs = [":extractor-arch-overlay"],
|
|
||||||
)
|
|
||||||
|
|
||||||
dist(
|
|
||||||
name = "extractor-generic",
|
|
||||||
srcs = [
|
srcs = [
|
||||||
":dbscheme-group",
|
":dbscheme-group",
|
||||||
":extra-files",
|
":extra-files",
|
||||||
|
":extractor-arch-overlay",
|
||||||
":extractor-asp",
|
":extractor-asp",
|
||||||
"//csharp/downgrades",
|
"//csharp/downgrades",
|
||||||
"//csharp/tools",
|
"//csharp/tools",
|
||||||
],
|
],
|
||||||
prefix = "csharp",
|
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
)
|
)
|
||||||
|
|
||||||
test_suite(
|
test_suite(
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
load("@rules_dotnet//dotnet:defs.bzl", "csharp_binary", "csharp_library", "csharp_test", "publish_binary")
|
load("@rules_dotnet//dotnet:defs.bzl", "csharp_binary", "csharp_library", "csharp_test", "publish_binary")
|
||||||
load("@rules_pkg//pkg:mappings.bzl", "strip_prefix")
|
load("@rules_pkg//pkg:mappings.bzl", "strip_prefix")
|
||||||
load("@semmle_code//:dist.bzl", "pack_zip")
|
load("//misc/bazel:pkg.bzl", "codeql_pkg_files")
|
||||||
load("//:defs.bzl", "codeql_platform")
|
|
||||||
|
|
||||||
TARGET_FRAMEWORK = "net8.0"
|
TARGET_FRAMEWORK = "net8.0"
|
||||||
|
|
||||||
|
@ -60,10 +59,10 @@ def codeql_csharp_binary(name, **kwargs):
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
pack_zip(
|
codeql_pkg_files(
|
||||||
name = name,
|
name = name,
|
||||||
srcs = [publish_binary_target],
|
exes = [publish_binary_target],
|
||||||
prefix = language_prefix + "/tools/" + codeql_platform,
|
prefix = "tools/{CODEQL_PLATFORM}",
|
||||||
strip_prefix = strip_prefix.files_only(),
|
strip_prefix = strip_prefix.files_only(),
|
||||||
visibility = visibility,
|
visibility = visibility,
|
||||||
)
|
)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче