-
Notifications
You must be signed in to change notification settings - Fork 28
/
rebar.config
49 lines (45 loc) · 1.22 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
%% -*- erlang -*-
%% Config file for uart-application
%%
{erl_opts, [debug_info, fail_on_warning]}.
{sub_dirs, ["src"]}.
{port_env, [
{"CFLAGS", "$CFLAGS -DDEBUG_MEM -DDLOG_DEFAULT=DLOG_NONE -D_THREAD_SAFE"}
]}.
{port_specs, [
{"(linux|freebsd|darwin)","priv/uart_drv.so",
[ "c_src/dlib.c",
"c_src/dlog.c",
"c_src/dterm.c",
"c_src/dthread.c",
"c_src/uart_drv.c",
"c_src/uart_buf.c",
"c_src/uart_queue.c",
"c_src/uart_com_state.c",
"c_src/uart_modem_state.c",
"c_src/uart_options.c",
"c_src/uart_message.c",
"c_src/uart_unix.c"
]},
{"win32","priv/uart_drv.so",
["c_src/dlib.c",
"c_src/dlog.c",
"c_src/dterm.c",
"c_src/dthread.c",
"c_src/uart_drv.c",
"c_src/uart_buf.c",
"c_src/uart_queue.c",
"c_src/uart_com_state.c",
"c_src/uart_modem_state.c",
"c_src/uart_options.c",
"c_src/uart_message.c",
"c_src/uart_win32.c"
]}
]}.
{edoc_opts, [{doclet, edown_doclet}]}.
%% {top_level_readme,
%% {"./README_NOT.md",
%% "http://github.com/tonyrog/uart"}}]}.
{ct_extra_params, " -spec test/uart.spec"}.
%% If you have hardware you can run the complete test
%%{ct_extra_params, " -spec test/uart_hw.spec"}.