forked from samcamwilliams/HyperBEAM
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrebar.config
59 lines (48 loc) · 1.42 KB
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{erl_opts, [debug_info]}.
{plugins, [pc]}.
{pre_hooks, [
{compile, "make -C \"${REBAR_ROOT_DIR}\" wamr"}
]}.
{port_env, [
{"(linux|darwin|solaris)", "CFLAGS",
"$CFLAGS -I${REBAR_ROOT_DIR}/_build/wamr/core/iwasm/include -I/usr/local/lib/erlang/usr/include/"},
{"(linux|darwin|solaris)", "LDFLAGS", "$LDFLAGS -L${REBAR_ROOT_DIR}/_build/wamr/lib -lvmlib -lei"},
{"(linux|darwin|solaris)", "LDLIBS", "-lei"}
]}.
{post_hooks, [
{"(linux|darwin|solaris)", clean, "rm -rf \"${REBAR_ROOT_DIR}/_build\" \"${REBAR_ROOT_DIR}/priv\""},
{"(linux|darwin|solaris)", compile, "echo 'Post-compile hooks executed'"}
]}.
{provider_hooks, [
{post, [
{compile, {pc, compile}},
{clean, {pc, clean}}
]}
]}.
{port_specs, [
{"./priv/hb_beamr.so", ["./c_src/hb_beamr.c"]}
]}.
{deps, [
{b64fast, {git, "https://github.com/ArweaveTeam/b64fast.git", {ref, "58f0502e49bf73b29d95c6d02460d1fb8d2a5273"}}},
{jiffy, {git, "https://github.com/ArweaveTeam/jiffy.git", {ref, "74c956defa9116c85d76f77c3e9b5bd6de7bd39a"}}},
{cowboy, {git, "https://github.com/ninenines/cowboy", {tag, "2.12.0"}}},
{prometheus, "4.11.0"},
{prometheus_cowboy, "0.1.8"},
{rocksdb, "1.8.0"}
]}.
{shell, [
{apps, [hb]}
]}.
{eunit, [
{apps, [hb]}
]}.
{eunit_opts, [verbose]}.
{relx, [
{release, {'hb', "0.0.1"}, [hb, jiffy, cowboy, gun, b64fast]},
{include_erts, true},
{extended_start_script, true}
]}.
% {dist_node, [
% {setcookie, 'hb'},
% {name, 'hb@hb-node'}
% ]}.