forked from hamer/erlang-sqlite3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrebar.config
23 lines (21 loc) · 1.45 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
% -*- mode: erlang -*-
{port_specs, [{"priv/sqlite3_drv.so", ["c_src/*.c", "sqlite3_amalgamation/sqlite3.c"]},
{"darwin", "priv/sqlite3_drv.so", ["c_src/*.c", "sqlite3_amalgamation/sqlite3.c"]}]}.
{port_env, [{"darwin", "DRV_CFLAGS", "$DRV_CFLAGS -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes"},
{"darwin", "DRV_LDFLAGS", "$DRV_LDFLAGS"},
% Win32 - for preprocessor debugging add /P /C
{".*win32.*", "DRV_CFLAGS", "$DRV_CFLAGS /O2 /Isqlite3_amalgamation /Ic_src /W4 /wd4100 /wd4204 /wd4820 /wd4255 /wd4668 /wd4710 /wd4711 /wd5045"},
{".*win32.*", "DRV_LDFLAGS", "$DRV_LDFLAGS legacy_stdio_definitions.lib"},
% Linux - for preprocessor debugging add -E
{"linux", "DRV_CFLAGS", "$DRV_CFLAGS -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes"
" -Wno-cast-function-type -Wno-implicit-fallthrough"},
{"linux", "ERL_LDFLAGS", " -L$ERL_EI_LIBDIR -lei"},
{"linux", "DRV_LDFLAGS", "$DRV_LDFLAGS -lsqlite3"}
]}.
{cover_enabled, true}.
{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.
{clean_files, ["priv/*.exp", "priv/*.lib", "c_src/*.d"]}.
{pre_hooks, [{"win32", compile, "del /Q priv\\*.exp priv\\*.lib 2>NUL"},
{"linux", compile, "rm -f c_src/*.d"}]}.
{post_hooks, [{"win32", compile, "del /Q priv\\*.exp priv\\*.lib 2>NUL"},
{"linux", compile, "rm -f c_src/*.d"}]}.