blob: f1048b9ca0b64ef7a16bce609cd1cdce64380a6e [file] [log] [blame]
#
# Description: Builds clwb
#
licenses(["notice"]) # Apache 2.0
load(
"//build_defs:build_defs.bzl",
"intellij_plugin",
"merged_plugin_xml",
"stamped_plugin_xml",
)
load("//:version.bzl", "VERSION")
merged_plugin_xml(
name = "merged_plugin_xml_common",
srcs = [
"src/META-INF/clwb.xml",
"//base:plugin_xml",
"//cpp:plugin_xml",
],
visibility = ["//visibility:public"],
)
merged_plugin_xml(
name = "merged_plugin_xml",
srcs = [
"src/META-INF/clwb_bazel.xml",
":merged_plugin_xml_common",
],
)
stamped_plugin_xml(
name = "stamped_plugin_xml",
include_product_code_in_stamp = True,
plugin_id = "com.google.idea.bazel.clwb",
plugin_name = "CLion with Bazel",
plugin_xml = ":merged_plugin_xml",
stamp_since_build = True,
version = VERSION,
)
java_library(
name = "clwb_lib",
srcs = glob(["src/**/*.java"]),
visibility = ["//visibility:public"],
deps = [
"//base",
"//common/experiments",
"//cpp",
"//intellij_platform_sdk:plugin_api",
"@jsr305_annotations//jar",
],
)
intellij_plugin(
name = "clwb_bazel",
plugin_xml = ":stamped_plugin_xml",
deps = [
":clwb_lib",
],
)