mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 04:21:24 +07:00
When adding new interpreter, we could either specify venv root or python binary path. Since we cannot check actual files for targets, we check path regex to determine whether it's a venv root or a binary. GitOrigin-RevId: d46ef025d9681b4d697d5d9572d0302c9599fdfc
79 lines
2.3 KiB
Python
79 lines
2.3 KiB
Python
### auto-generated section `build intellij.python.community` start
|
|
load("@rules_jvm//:jvm.bzl", "jvm_library", "resourcegroup")
|
|
|
|
resourcegroup(
|
|
name = "community_resources",
|
|
srcs = glob(["resources/**/*"]),
|
|
strip_prefix = "resources"
|
|
)
|
|
|
|
resourcegroup(
|
|
name = "community_test_resources",
|
|
srcs = glob(["testResources/**/*"]),
|
|
strip_prefix = "testResources"
|
|
)
|
|
|
|
jvm_library(
|
|
name = "community",
|
|
module_name = "intellij.python.community",
|
|
visibility = ["//visibility:public"],
|
|
srcs = glob(["src/**/*.kt", "src/**/*.java", "src/**/*.form"], allow_empty = True),
|
|
resources = [":community_resources"],
|
|
deps = [
|
|
"//python/python-psi-api:psi",
|
|
"//platform/analysis-api:analysis",
|
|
"//platform/platform-util-io:ide-util-io",
|
|
"//libraries/jsoup",
|
|
"@lib//:kotlin-stdlib",
|
|
"@lib//:jetbrains-annotations",
|
|
"//platform/util",
|
|
"//platform/extensions",
|
|
"//platform/core-api:core",
|
|
"//platform/projectModel-api:projectModel",
|
|
"//platform/eel",
|
|
"//platform/eel-provider",
|
|
"//platform/execution",
|
|
],
|
|
exports = [
|
|
"//python/python-psi-api:psi",
|
|
"//platform/platform-util-io:ide-util-io",
|
|
]
|
|
)
|
|
|
|
jvm_library(
|
|
name = "community_test_lib",
|
|
visibility = ["//visibility:public"],
|
|
srcs = glob(["tests/**/*.kt", "tests/**/*.java", "tests/**/*.form"], allow_empty = True),
|
|
resources = [":community_test_resources"],
|
|
associates = [":community"],
|
|
deps = [
|
|
"//python/python-psi-api:psi",
|
|
"//platform/analysis-api:analysis",
|
|
"//platform/platform-util-io:ide-util-io",
|
|
"//libraries/jsoup",
|
|
"@lib//:kotlin-stdlib",
|
|
"@lib//:jetbrains-annotations",
|
|
"//platform/util",
|
|
"//platform/extensions",
|
|
"//platform/core-api:core",
|
|
"//platform/projectModel-api:projectModel",
|
|
"@lib//:junit5",
|
|
"//platform/eel",
|
|
"//platform/eel-provider",
|
|
"//platform/execution",
|
|
],
|
|
exports = [
|
|
"//python/python-psi-api:psi",
|
|
"//platform/platform-util-io:ide-util-io",
|
|
]
|
|
)
|
|
### auto-generated section `build intellij.python.community` end
|
|
|
|
### auto-generated section `test intellij.python.community` start
|
|
load("@community//build:tests-options.bzl", "jps_test")
|
|
|
|
jps_test(
|
|
name = "community_test",
|
|
runtime_deps = [":community_test_lib"]
|
|
)
|
|
### auto-generated section `test intellij.python.community` end |