-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
68 lines (55 loc) · 2.02 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
{erl_opts, [debug_info,
warnings_as_errors,
warn_export_all
]}.
{deps, [
{libucl,
{external,
{http, "https://github.com/vstakhov/libucl/archive/refs/tags/0.9.2.tar.gz",
{md5, "e6a2111172b8fb9f069481c63b732293"}},
"", [
{description, "Universal configuration language parser"},
{vsn, "0.9.2"}
]}}
]}.
{hex, [
{doc, #{provider => ex_doc}}
]}.
{ex_doc, [
{prefix_ref_vsn_with_v, false},
{source_url, <<"https://git.sr.ht/~dch/ucl">>},
{extras, [<<"README.md">>, <<"LICENSE">>]},
{main, <<"README.md">>}
]}.
{shell, [
% {config, "config/sys.config"},
{apps, [ucl]}
]}.
{port_specs, [
{"priv/ucl_nif.so", ["c_src/*.c"]}
]}.
{plugins, [rebar3_proper, rebar3_external]}.
{project_plugins, [rebar3_hex, rebar3_ex_doc]}.
{port_env, [
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"CFLAGS", "$CFLAGS -Ic_src/ -I/usr/local/include -I_build/default/lib/libucl/include/ -g -Wall -Werror"},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"CXXFLAGS", "$CXXFLAGS -Ic_src/ -I/usr/local/include -g -Wall -Werror"},
{"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)",
"LDFLAGS", "$LDFLAGS -L/usr/local/lib -Lpriv -Wl,-rpath,priv/ -lucl"}
]}.
{pre_hooks, [{"(linux)", compile, "sh -c 'cd _build/default/lib/libucl && ./autogen.sh && ./configure --prefix=$(pwd) && make && cp src/.libs/libucl.so* ../../../../priv/'"},
{"", compile, "./enc compile"}]}.
{post_hooks, [{"", clean, "./enc clean"}]}.
{profiles, [
{test, [
{erl_opts, [nowarn_export_all]},
{deps, [{proper, "1.3.0"}, recon]}
]}
]}.
{proper_opts, [
{numtests, 500000}
]}.
{eunit_opts, [
verbose
]}.