-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrebar.config
More file actions
34 lines (26 loc) · 835 Bytes
/
rebar.config
File metadata and controls
34 lines (26 loc) · 835 Bytes
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
%% -*- mode: erlang -*-
{erl_opts, [debug_info, {parse_transform, lager_transform}]}.
{deps, [
{jsx, "3.1.0"},
{lager, "3.9.2"}
]}.
{plugins, [rebar3_cargo, erlfmt]}.
{provider_hooks,
[ {pre, [ {compile, {cargo, build}} ]},
{post, [ {clean, {cargo, clean}},
{eunit, {cargo, test}}
]}
]}.
%% version should match with crates/tdlib-nif/Cargo.toml
{post_hooks, [{"(linux|darwin|solaris)", compile, "cp -f priv/crates/tdlib_nif/0.2.0/release/libtdlib_nif.so priv/"}]}.
{cargo_opts, [{release, true}]}.
{profiles, [
{docs, [
{deps, [{edown, "0.8.4"}]},
{edoc_opts, [
{doclet, edown_doclet},
{app_default, "http://www.erlang.org/doc/man"},
{top_level_readme, {"doc/README.md", "http://github.com/lattenwald/erl-tdlib"}}
]}
]}
]}.