mirror of
https://github.com/github/codeql.git
synced 2026-02-18 07:53:43 +01:00
This makes calling specific targets in `java/kotlin-extractor` not depend on `@kotlin_extractor_defaults`, avoiding its overhead.
37 lines
1.0 KiB
Python
37 lines
1.0 KiB
Python
load("@codeql_kotlin_defaults//:defaults.bzl", "kotlin_extractor_defaults")
|
|
|
|
package(default_visibility = ["//java/kotlin-extractor:__pkg__"])
|
|
|
|
_common_extractor_name_prefix = "codeql-extractor-kotlin"
|
|
|
|
alias(
|
|
name = "%s-standalone" % _common_extractor_name_prefix,
|
|
actual = "//java/kotlin-extractor:%s-standalone-%s" % (
|
|
_common_extractor_name_prefix,
|
|
kotlin_extractor_defaults.extractor_version,
|
|
),
|
|
)
|
|
|
|
alias(
|
|
name = "%s-embeddable" % _common_extractor_name_prefix,
|
|
actual = "//java/kotlin-extractor:%s-embeddable-%s" % (
|
|
_common_extractor_name_prefix,
|
|
kotlin_extractor_defaults.extractor_version,
|
|
),
|
|
)
|
|
|
|
alias(
|
|
name = _common_extractor_name_prefix,
|
|
actual = "//java/kotlin-extractor:%s-%s-%s" % (
|
|
_common_extractor_name_prefix,
|
|
kotlin_extractor_defaults.variant,
|
|
kotlin_extractor_defaults.extractor_version,
|
|
),
|
|
)
|
|
|
|
genrule(
|
|
name = "default-version-printer",
|
|
outs = ["print-default-version.sh"],
|
|
cmd = "echo echo %s > $@" % kotlin_extractor_defaults.version,
|
|
)
|