rabbitmq-server/deps/rabbitmq_amqp_client/BUILD.bazel

92 lines
1.7 KiB
Python

load("@rules_erlang//:eunit2.bzl", "eunit")
load("@rules_erlang//:xref2.bzl", "xref")
load("@rules_erlang//:dialyze.bzl", "dialyze", "plt")
load(
"//:rabbitmq.bzl",
"RABBITMQ_DIALYZER_OPTS",
"assert_suites",
"broker_for_integration_suites",
"rabbitmq_app",
"rabbitmq_integration_suite",
"rabbitmq_suite",
)
load(
":app.bzl",
"all_beam_files",
"all_srcs",
"all_test_beam_files",
"test_suite_beam_files",
)
APP_NAME = "rabbitmq_amqp_client"
APP_DESCRIPTION = "AMQP 1.0 client for RabbitMQ"
all_beam_files(name = "all_beam_files")
all_test_beam_files(name = "all_test_beam_files")
all_srcs(name = "all_srcs")
test_suite_beam_files(name = "test_suite_beam_files")
rabbitmq_app(
name = "erlang_app",
srcs = [":all_srcs"],
hdrs = [":public_hdrs"],
app_description = APP_DESCRIPTION,
app_name = APP_NAME,
beam_files = [":beam_files"],
license_files = [":license_files"],
priv = [":priv"],
deps = [
"//deps/amqp10_client:erlang_app",
"//deps/amqp10_common:erlang_app",
],
)
xref(
name = "xref",
target = ":erlang_app",
)
plt(
name = "deps_plt",
for_target = ":erlang_app",
plt = "//:base_plt",
)
dialyze(
name = "dialyze",
dialyzer_opts = RABBITMQ_DIALYZER_OPTS,
plt = ":deps_plt",
target = ":erlang_app",
)
broker_for_integration_suites(
)
TEST_DEPS = [
"//deps/amqp10_client:erlang_app",
]
rabbitmq_integration_suite(
name = "management_SUITE",
size = "medium",
shard_count = 2,
deps = TEST_DEPS,
)
assert_suites()
alias(
name = "rabbitmq_amqp_client",
actual = ":erlang_app",
visibility = ["//visibility:public"],
)
eunit(
name = "eunit",
target = ":test_erlang_app",
)