mirror of
https://github.com/github/codeql.git
synced 2026-08-01 16:02:57 +02:00
36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
|
|
load("@rules_pkg//pkg:mappings.bzl", "pkg_attributes", "pkg_files")
|
|
|
|
cc_binary(
|
|
name = "codeql_canonical_path.dll",
|
|
srcs = [
|
|
"canonicalize.cpp",
|
|
"canonicalize.h",
|
|
"canonicalize_jni.cpp",
|
|
],
|
|
defines = ["CODEQL_CANONICALIZE_EXPORTS"],
|
|
linkopts = ["-lkernel32"],
|
|
linkshared = True,
|
|
target_compatible_with = ["@platforms//os:windows"],
|
|
visibility = ["//visibility:public"],
|
|
deps = ["@rules_java//toolchains:jni"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "canonicalize",
|
|
srcs = ["canonicalize.cpp"],
|
|
hdrs = ["canonicalize.h"],
|
|
defines = ["CODEQL_CANONICALIZE_EXPORTS"],
|
|
linkopts = ["-lkernel32"],
|
|
target_compatible_with = ["@platforms//os:windows"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
pkg_files(
|
|
name = "pkg",
|
|
srcs = [":codeql_canonical_path.dll"],
|
|
attributes = pkg_attributes(mode = "0755"),
|
|
target_compatible_with = ["@platforms//os:windows"],
|
|
visibility = ["//visibility:public"],
|
|
)
|