forked from si14/ecirca
-
Notifications
You must be signed in to change notification settings - Fork 4
/
rebar.config
39 lines (34 loc) · 1.55 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
%% -*- erlang -*-
{erl_opts,[debug_info, warnings_as_errors]}.
{deps_dir, ["deps"]}.
{deps, [{edown, ".*",
{git, "https://github.com/esl/edown.git",
"master"}},
{proper_stdlib, ".*",
{git, "https://github.com/spawngrid/proper_stdlib.git",
"master"}},
{proper, ".*",
{git, "https://github.com/manopapad/proper.git",
{tag, "v1.0"}}}]}.
{eunit_opts, [verbose, {report,{eunit_surefire, [{dir, "."}]}}]}.
%% FIXME(Sergei): remove this, once Travis updates its 'rebar' version.
{so_specs, [{"priv/ecirca_small.so", ["c_src/ecirca_small.o"]},
{"priv/ecirca_medium.so", ["c_src/ecirca_medium.o"]},
{"priv/ecirca_large.so", ["c_src/ecirca_large.o"]}]}.
{port_specs, [{"priv/ecirca_small.so", ["c_src/ecirca_small.c"]},
{"priv/ecirca_medium.so", ["c_src/ecirca_medium.c"]},
{"priv/ecirca_large.so", ["c_src/ecirca_large.c"]}]}.
{port_env, [{"darwin", "CC", "clang"},
%% unfortunately, R17.2 produces warnings on compilation by
%% itself (error in ERL_NIF_INIT).
%% {"CFLAGS", "$CFLAGS -std=c99 -Wall -Wextra -Werror -pedantic"}]}.
{"CFLAGS", "$CFLAGS -std=c99 -Wall -Wextra -pedantic"}]}.
{pre_hooks, [{compile, "./priv/codegen.sh"}]}.
{edoc_opts, [{doclet, edown_doclet},
{src_path, ["src"]},
{stylesheet, ""},
{image, ""},
{preprocess, true},
{top_level_readme,
{"./README.md",
"https://github.com/band115/ecirca"}}]}.