-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrebar.example.config
27 lines (24 loc) · 1.03 KB
/
rebar.example.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
{sub_dirs, [
"apps/example"]}.
{port_specs, [
{"linux", "priv/fix_parser.so",
["c_src/src/*.c", "c_src/src/lin/*.c"],
[{env, [
{"CFLAGS", "$CFLAGS -std=gnu99 -O3 -I/usr/include/libxml2 -I./c_src/include"},
{"LDFLAGS", "$LDFLAGS -lxml2 "}
]}]}
]}.
{pre_hooks, [{compile, "mkdir -p ebin ebin/log"}]}.
{post_hooks, [
{compile, "cp fix_descr/fix.4.4.xml ebin"},
{compile, "cp apps/example/ebin/example_start ebin"},
{compile, "cp apps/example/ebin/example.config ebin"},
{compile, "cp apps/example/ebin/*.beam ebin"},
{compile, "cp apps/example/ebin/*.beam ebin"},
{compile, "cp apps/example/ebin/example.app ebin"},
{clean, "rm -rf ebin/*.beam"},
{clean, "rm -rf ebin/log"},
{clean, "rm -rf ebin/fix.4.4.xml"},
{clean, "rm -rf ebin/example_start"},
{clean, "rm -rf ebin/example.config"}]}.
%{erl_opts, [warn_missing_spec]}.