-
Notifications
You must be signed in to change notification settings - Fork 1
/
rebar.config
87 lines (76 loc) · 2.45 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{erl_opts, [debug_info, {parse_transform, lager_transform}]}.
{deps, [
{riak_core, "3.0.9", {pkg, riak_core_ng}},
{cowboy, "2.1.0"},
jsone,
pbkdf2,
exometer_core
]}.
{relx, [{release, {udon, "0.1.0"},
[udon,
cowboy,
jsone,
cuttlefish,
sasl]},
{dev_mode, true},
{include_erts, false},
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"},
{overlay_vars, "./config/vars.config"},
{overlay, [
{mkdir, "etc"},
{mkdir, "bin"},
{mkdir, "data/ring"},
{mkdir, "log/sasl"},
{template, "./config/admin_bin", "bin/udon-admin"},
{template, "./config/advanced.config", "etc/advanced.config"}
]}
]}.
{plugins, [rebar3_run]}.
{project_plugins, [rebar3_cuttlefish]}.
{profiles, [
{prod, [{relx, [{dev_mode, false}, {include_erts, true}]}]},
{dev1, [{relx, [{overlay_vars, ["config/vars.config", "config/vars_dev1.config"]}]}]},
{dev2, [{relx, [{overlay_vars, ["config/vars.config", "config/vars_dev2.config"]}]}]},
{dev3, [{relx, [{overlay_vars, ["config/vars.config", "config/vars_dev3.config"]}]}]}
]}.
{overrides,
[{override, eleveldb,
[
{artifacts, ["priv/eleveldb.so"]},
{pre_hooks, [{compile, "c_src/build_deps.sh get-deps"},
{compile, "c_src/build_deps.sh"}]},
{post_hooks, [{clean, "c_src/build_deps.sh clean"}]},
{plugins, [pc]},
{provider_hooks, [{post,
[{compile, {pc, compile}},
{clean, {pc, clean}}
]
}]
}
]
},
{override, riak_ensemble,
[
{artifacts, ["priv/riak_ensemble_drv.so"]},
{plugins, [pc]},
{provider_hooks, [{post,
[{compile, {pc, compile}},
{clean, {pc, clean}}
]}]},
{erl_opts, [debug_info,
warn_untyped_record,
{parse_transform, lager_transform}]}
]},
{override, riak_core,
[
{erl_opts, [debug_info,
{parse_transform, lager_transform},
{platform_define, "^[0-9]+", namespaced_types},
{platform_define, "^R15", "old_hash"}]}
]},
{override, poolboy,
[{erl_opts, [debug_info, {platform_define, "^[0-9]+", namespaced_types}]}]},
{override, cuttlefish,
[{escript_emu_args, "%%! -escript main cuttlefish_escript +S 1 +A 0\n"}]}
]}.