mirror of
https://github.com/github/codeql.git
synced 2026-07-01 17:45:36 +02:00
Fix bazel formatting and non-windows build of canonicalize-dll
This commit is contained in:
committed by
GitHub
parent
c807858312
commit
bfa81c30f4
@@ -58,7 +58,10 @@ codeql_pkg_files(
|
||||
|
||||
codeql_pkg_files(
|
||||
name = "canonicalize-dll",
|
||||
srcs = ["//shared/canonicalize:pkg"],
|
||||
srcs = select({
|
||||
"@platforms//os:windows": ["//shared/canonicalize:pkg"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
prefix = "tools/{CODEQL_PLATFORM}",
|
||||
)
|
||||
|
||||
|
||||
@@ -3,13 +3,17 @@ load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_files")
|
||||
|
||||
cc_binary(
|
||||
name = "codeql_canonical_path.dll",
|
||||
srcs = ["canonicalize.cpp", "canonicalize_jni.cpp", "canonicalize.h"],
|
||||
srcs = [
|
||||
"canonicalize.cpp",
|
||||
"canonicalize.h",
|
||||
"canonicalize_jni.cpp",
|
||||
],
|
||||
defines = ["CODEQL_CANONICALIZE_EXPORTS"],
|
||||
linkopts = ["-lkernel32"],
|
||||
linkshared = True,
|
||||
target_compatible_with = ["@platforms//os:windows"],
|
||||
deps = ["@rules_java//toolchains:jni"],
|
||||
visibility = ["//visibility:public"],
|
||||
deps = ["@rules_java//toolchains:jni"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
|
||||
Reference in New Issue
Block a user