1 Star 1 Fork 0

justcmm/rabbitmq-delayed-message-exchange

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
app.bzl 2.85 KB
一键复制 编辑 原始数据 按行查看 历史
Rin Kuryloski 提交于 2023-06-06 11:56 . Fix app_name in bazel
load("@rules_erlang//:erlang_bytecode2.bzl", "erlang_bytecode")
load("@rules_erlang//:filegroup.bzl", "filegroup")
def all_srcs(name = "all_srcs"):
filegroup(
name = "srcs",
srcs = [
"src/rabbit_delayed_message.erl",
"src/rabbit_delayed_message_app.erl",
"src/rabbit_delayed_message_sup.erl",
"src/rabbit_delayed_message_utils.erl",
"src/rabbit_exchange_type_delayed_message.erl",
],
)
filegroup(name = "private_hdrs")
filegroup(
name = "public_hdrs",
)
filegroup(name = "priv")
filegroup(
name = "license_files",
srcs = [
"LICENSE",
"LICENSE-MPL-RabbitMQ",
],
)
filegroup(
name = "public_and_private_hdrs",
srcs = [":private_hdrs", ":public_hdrs"],
)
filegroup(
name = "all_srcs",
srcs = [":public_and_private_hdrs", ":srcs"],
)
def all_beam_files(name = "all_beam_files"):
erlang_bytecode(
name = "other_beam",
srcs = [
"src/rabbit_delayed_message.erl",
"src/rabbit_delayed_message_app.erl",
"src/rabbit_delayed_message_sup.erl",
"src/rabbit_delayed_message_utils.erl",
"src/rabbit_exchange_type_delayed_message.erl",
],
hdrs = [":public_and_private_hdrs"],
app_name = "rabbitmq_delayed_message_exchange",
dest = "ebin",
erlc_opts = "//:erlc_opts",
deps = ["@rabbitmq-server//deps/rabbit:erlang_app", "@rabbitmq-server//deps/rabbit_common:erlang_app"],
)
filegroup(
name = "beam_files",
srcs = [":other_beam"],
)
def all_test_beam_files(name = "all_test_beam_files"):
erlang_bytecode(
name = "test_other_beam",
testonly = True,
srcs = [
"src/rabbit_delayed_message.erl",
"src/rabbit_delayed_message_app.erl",
"src/rabbit_delayed_message_sup.erl",
"src/rabbit_delayed_message_utils.erl",
"src/rabbit_exchange_type_delayed_message.erl",
],
hdrs = [":public_and_private_hdrs"],
app_name = "rabbitmq_delayed_message_exchange",
dest = "test",
erlc_opts = "//:test_erlc_opts",
deps = ["@rabbitmq-server//deps/rabbit:erlang_app", "@rabbitmq-server//deps/rabbit_common:erlang_app"],
)
filegroup(
name = "test_beam_files",
testonly = True,
srcs = [":test_other_beam"],
)
def test_suite_beam_files(name = "test_suite_beam_files"):
erlang_bytecode(
name = "plugin_SUITE_beam_files",
testonly = True,
srcs = ["test/plugin_SUITE.erl"],
outs = ["test/plugin_SUITE.beam"],
app_name = "rabbitmq_delayed_message_exchange",
erlc_opts = "//:test_erlc_opts",
deps = ["@rabbitmq-server//deps/amqp_client:erlang_app"],
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/justcmm/rabbitmq-delayed-message-exchange.git
git@gitee.com:justcmm/rabbitmq-delayed-message-exchange.git
justcmm
rabbitmq-delayed-message-exchange
rabbitmq-delayed-message-exchange
main

搜索帮助