mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
58 lines
1.9 KiB
Python
58 lines
1.9 KiB
Python
### auto-generated section `build intellij.devkit.compose` start
|
|
load("//build:compiler-options.bzl", "create_kotlinc_options")
|
|
load("@rules_jvm//:jvm.bzl", "jvm_library", "resourcegroup")
|
|
|
|
create_kotlinc_options(
|
|
name = "custom_compose",
|
|
opt_in = [
|
|
"androidx.compose.foundation.ExperimentalFoundationApi",
|
|
"kotlinx.coroutines.ExperimentalCoroutinesApi",
|
|
],
|
|
plugin_options = ["plugin:androidx.compose.compiler.plugins.kotlin:generateFunctionKeyMetaAnnotations=true"]
|
|
)
|
|
|
|
resourcegroup(
|
|
name = "compose_resources",
|
|
srcs = glob(["resources/**/*"]),
|
|
strip_prefix = "resources"
|
|
)
|
|
|
|
jvm_library(
|
|
name = "compose",
|
|
module_name = "intellij.devkit.compose",
|
|
visibility = ["//visibility:public"],
|
|
srcs = glob(["src/**/*.kt", "src/**/*.java", "src/**/*.form"], allow_empty = True),
|
|
resources = [":compose_resources"],
|
|
kotlinc_opts = ":custom_compose",
|
|
deps = [
|
|
"@lib//:kotlin-stdlib",
|
|
"//libraries/kotlinx/datetime",
|
|
"//platform/platform-impl:ide-impl",
|
|
"//platform/ide-core",
|
|
"//platform/core-api:core",
|
|
"//platform/core-ui",
|
|
"//platform/core-impl",
|
|
"//platform/lang-core",
|
|
"//platform/editor-ui-api:editor-ui",
|
|
"//platform/projectModel-api:projectModel",
|
|
"//platform/compose",
|
|
"//platform/jewel/samples/showcase",
|
|
"//platform/compose/markdown",
|
|
"//plugins/devkit/devkit-core:core",
|
|
"//platform/analysis-api:analysis",
|
|
"//plugins/kotlin/base/code-insight",
|
|
"//java/java-psi-api:psi",
|
|
"//plugins/kotlin/base/facet",
|
|
"//plugins/kotlin/base/jps",
|
|
"@lib//:kotlinc-kotlin-compiler-common-provided",
|
|
"@lib//:kotlinc-analysis-api-provided",
|
|
"@lib//:kotlinc-kotlin-jps-common-provided",
|
|
"//platform/lang-impl",
|
|
"//uast/uast-common:uast",
|
|
"//java/openapi:java",
|
|
"//java/debugger/impl",
|
|
"//platform/ide-core-impl",
|
|
],
|
|
plugins = ["@lib//:compose-plugin"]
|
|
)
|
|
### auto-generated section `build intellij.devkit.compose` end |