forked from hio/erlang-json
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
38 lines (32 loc) · 919 Bytes
/
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
%{deps, [
% {
% edown,
% "0.3.*",
% {git, "git://github.com/esl/edown.git", {branch, "master"}}
% }
%]}.
{edoc_opts, [
%{doclet, edown_doclet}, {dir, "doc/md"},
{dir, "doc/html"},
%{doc_path, ["http://www.erlang.org/doc/man"]},
{dialyzer_specs, all},
{report_missing_type, true},
{report_type_mismatch, true},
{pretty_print, erl_pp},
{preprocess, true}
]}.
{erl_opts, [
debug_info
]}.
{port_sources, ["c_src/*.c", "c_src/yajl/*.c"]}.
{so_name, "json.so"}.
{port_envs, [
%% Make sure to link -lstdc++ on linux or solaris
{"(linux|solaris)", "LDFLAGS", "$LDFLAGS -lstdc++"},
%% OS X Leopard flags for 64-bit
{"darwin9.*-64$", "CXXFLAGS", "-m64"},
{"darwin9.*-64$", "LDFLAGS", "-arch x86_64"},
%% OS X Snow Leopard flags for 32-bit
{"darwin10.*-32$", "CXXFLAGS", "-m32"},
{"darwin10.*-32$", "LDFLAGS", "-arch i386"}
]}.