mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
GitInfo doesn't work with the bazel-based build. Instead, we pull in the information from bazel, which correctly works with the bazel cache.
37 lines
792 B
Python
37 lines
792 B
Python
load(
|
|
"//misc/bazel:csharp.bzl",
|
|
"codeql_csharp_library",
|
|
)
|
|
|
|
config_setting(
|
|
name = "debug_build",
|
|
values = {
|
|
"compilation_mode": "dbg",
|
|
},
|
|
)
|
|
|
|
codeql_csharp_library(
|
|
name = "Semmle.Extraction",
|
|
srcs = glob([
|
|
"Entities/**/*.cs",
|
|
"Extractor/**/*.cs",
|
|
"Properties/*.cs",
|
|
"*.cs",
|
|
]),
|
|
# enable via -c dbg on the bazel command line/in .bazelrc.local
|
|
defines = select({
|
|
":debug_build": [
|
|
"TRACE",
|
|
"DEBUG",
|
|
"DEBUG_LABELS",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
visibility = ["//csharp:__subpackages__"],
|
|
deps = [
|
|
"//csharp/extractor/Semmle.Util",
|
|
"@paket.main//microsoft.build",
|
|
"@paket.main//microsoft.codeanalysis",
|
|
],
|
|
)
|