forked from spawnfest/fire-fork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
50 lines (50 loc) · 1.58 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
{deps, [
{lager, {git, "https://github.com/erlang-lager/lager.git", {tag, "3.5.2"}}}
]}.
{relx, [
{release, {firefork_stepper, {semver, ""}}, [firefork_stepper], [
{sys_config, "rel/firefork_stepper.sys.config"}
]},
{release, {firefork_station, {semver, ""}}, [firefork_station], [
{sys_config, "rel/firefork_station.sys.config"}
]},
{dev_mode, true},
{include_erts, true},
{extended_start_script, true}
]}.
{overrides, [
{override, dthread, [
{artifacts, ["priv/dthread_drv.so"]},
{plugins, [pc]},
{provider_hooks, [
{pre, [
{compile, {pc, compile}},
{clean, {pc, clean}}
]}
]}
]},
{override, uart, [
{artifacts, ["priv/uart_drv.so"]},
{plugins, [pc]},
{provider_hooks, [
{pre, [
{compile, {pc, compile}},
{clean, {pc, clean}}
]}
]},
{port_env, [ % This is needed, because the pc plugin does not export the REBAR_DEPS_DIR variable.
{"CFLAGS", "$CFLAGS -DDEBUG_MEM -DDLOG_DEFAULT=DLOG_NONE -D_THREAD_SAFE -I_build/default/lib -I../"},
{"LDFLAGS", "$LDFLAGS ../dthread/c_src/dlog.o ../dthread/c_src/dlib.o ../dthread/c_src/dterm.o ../dthread/c_src/dthread.o -lutil"}
]}
]},
{override, gpio, [
{artifacts, ["priv/gpio_drv.so"]},
{plugins, [pc]},
{provider_hooks, [
{pre, [
{compile, {pc, compile}},
{clean, {pc, clean}}
]}
]}
]}
]}.