load("@io_bazel_rules_scala//thrift:thrift.bzl", "thrift_library")
thrift_library(
name,
srcs,
deps,
absolute_prefix,
absolute_prefixes
)
thrift_library
generates a thrift source zip file.
It should be consumed by a thrift compiler like scrooge_scala_library
in its deps
.
Attributes | |
---|---|
name |
A unique name for this target |
srcs |
List of Thrift |
deps |
List of other thrift dependencies that this thrift depends on. Also can include `scroogle_scala_import` targets, containing additional `thrift_jars` (which will be compiled) and/or `scala_jars` needed at compile time (such as Finagle). |
absolute_prefix |
This string acts as a wildcard expression of the form *`string_value` that is removed from the start of the path. Example: thrift is at `a/b/c/d/e/A.thrift` , prefix of `b/c/d`. Will mean other thrift targets can refer to this thrift at `e/A.thrift`. |
absolute_prefixes |
Each of these strings acts as a wildcard expression of the form |