代码拉取完成,页面将自动刷新
load("@rules_erlang//:app_file.bzl", "app_file")
load("@rules_erlang//:erlang_app_info.bzl", "erlang_app_info")
load("@rules_erlang//:erlang_app.bzl", "DEFAULT_ERLC_OPTS")
load("@rules_erlang//:erlang_bytecode.bzl", "erlang_bytecode")
erlang_bytecode(
name = "beam_files",
srcs = glob(["src/**/*.erl"]),
hdrs = glob([
"include/**/*.hrl",
"src/**/*.hrl",
]),
dest = "ebin",
erlc_opts = DEFAULT_ERLC_OPTS,
)
genrule(
name = "appup",
srcs = ["src/ranch.appup"],
outs = ["ebin/ranch.appup"],
cmd = "cp $< $@",
)
app_file(
name = "app_file",
app_name = "ranch",
app_version = "2.1.0",
modules = [":beam_files"],
)
erlang_app_info(
name = "erlang_app",
hdrs = glob(["include/**/*.hrl"]),
app = ":app_file",
app_name = "ranch",
beam = [
":beam_files",
":appup",
],
visibility = ["//visibility:public"],
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。