summaryrefslogtreecommitdiff
path: root/bazel/BUILD.ranch
diff options
context:
space:
mode:
authorRin Kuryloski <kuryloskip@vmware.com>2023-05-15 17:26:21 +0200
committerGitHub <noreply@github.com>2023-05-15 17:26:21 +0200
commitc7d0427d621493f00a3aa0d6e7720f709f3769a6 (patch)
treedaa5dccb171572b3e97092d47a467b9c1d27a3da /bazel/BUILD.ranch
parent42dbaf8fa6c8e2c310ac4f802887780d2e9e2bb8 (diff)
parenteb94a58bc9f4db7a226af26d6f57fdfa24076ed8 (diff)
downloadrabbitmq-server-git-c7d0427d621493f00a3aa0d6e7720f709f3769a6.tar.gz
Merge pull request #8084 from rabbitmq/rin/nightly-compare-build-systems
Github Actions pipeline to compare build systems nightly
Diffstat (limited to 'bazel/BUILD.ranch')
-rw-r--r--bazel/BUILD.ranch53
1 files changed, 22 insertions, 31 deletions
diff --git a/bazel/BUILD.ranch b/bazel/BUILD.ranch
index 0a84bc5f6c..55380fc576 100644
--- a/bazel/BUILD.ranch
+++ b/bazel/BUILD.ranch
@@ -17,10 +17,12 @@ erlc_opts(
erlang_bytecode(
name = "behaviours",
- srcs = ["src/ranch_transport.erl"],
- outs = ["ebin/ranch_transport.beam"],
- hdrs = [],
+ srcs = [
+ "src/ranch_transport.erl",
+ ],
+ hdrs = [":public_and_private_hdrs"],
app_name = "ranch",
+ dest = "ebin",
erlc_opts = "//:erlc_opts",
)
@@ -44,27 +46,10 @@ erlang_bytecode(
"src/ranch_sup.erl",
"src/ranch_tcp.erl",
],
- outs = [
- "ebin/ranch.beam",
- "ebin/ranch_acceptor.beam",
- "ebin/ranch_acceptors_sup.beam",
- "ebin/ranch_app.beam",
- "ebin/ranch_conns_sup.beam",
- "ebin/ranch_conns_sup_sup.beam",
- "ebin/ranch_crc32c.beam",
- "ebin/ranch_embedded_sup.beam",
- "ebin/ranch_listener_sup.beam",
- "ebin/ranch_protocol.beam",
- "ebin/ranch_proxy_header.beam",
- "ebin/ranch_server.beam",
- "ebin/ranch_server_proxy.beam",
- "ebin/ranch_ssl.beam",
- "ebin/ranch_sup.beam",
- "ebin/ranch_tcp.beam",
- ],
- hdrs = [],
+ hdrs = [":public_and_private_hdrs"],
app_name = "ranch",
beam = [":behaviours"],
+ dest = "ebin",
erlc_opts = "//:erlc_opts",
)
@@ -99,19 +84,15 @@ filegroup(
],
)
-filegroup(
- name = "private_hdrs",
- srcs = [],
-)
+filegroup(name = "private_hdrs")
-filegroup(
- name = "public_hdrs",
- srcs = [],
-)
+filegroup(name = "public_hdrs")
filegroup(
name = "priv",
- srcs = [],
+ srcs = [
+ "ebin/ranch.appup", # keep
+ ],
)
filegroup(
@@ -138,9 +119,12 @@ filegroup(
erlang_app(
name = "erlang_app",
srcs = [":all_srcs"],
+ hdrs = [":public_hdrs"],
app_name = "ranch",
beam_files = [":beam_files"],
extra_apps = ["ssl"],
+ license_files = [":license_files"],
+ priv = [":priv"],
)
alias(
@@ -148,3 +132,10 @@ alias(
actual = ":erlang_app",
visibility = ["//visibility:public"],
)
+
+filegroup(
+ name = "license_files",
+ srcs = [
+ "LICENSE",
+ ],
+)