forked from mbj4668/yanger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
41 lines (31 loc) · 979 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
39
40
%% -*- mode: Erlang -*-
%{erl_opts, [debug_info, warnings_as_errors]}.
{erl_opts, [debug_info
, {src_dirs, ["src"]}
]}.
%% A plugin that compiles Yanger plugins
{plugins, [yanger_plugins_rebar_plugin]}.
{plugin_dir, "./build"}.
%% Prevent rebar from deleting our "yanger" file.
{escript_name, "dummy"}.
%% Parser as a NIF
{port_specs, [{"priv/yang_parser_nif.so",
["c_src/*.c"]}]}.
%% newer rebar
{port_env, [{"CC", "gcc -std=c99"},
{"CFLAGS",
%% how do I do ifdef DEBUG? else O2.
"$CFLAGS -g -ggdb "
"-I /usr/include/libxml2 "
"-Werror "
"-Wall "
"-Wsign-compare "
"-Wstrict-prototypes "
"-Wpointer-arith "
"-Wcast-align "
"-Wwrite-strings "
"-Wnested-externs "
% "-Wuninitialized "
},
{"LDFLAGS", "$LDFLAGS -lxml2 "}
]}.