forked from RomanShestakov/erlhdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
25 lines (18 loc) · 821 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
{ erl_opts, [ debug_info, warnings_as_errors ] }.
{ lib_dirs, [ "deps" ] }.
{ sub_dirs, [ "rel" ] }.
{ src_dirs, [ "src", "test" ] }.
{ port_sources, [ "c_src/*.c" ] }.
{ cover_enabled, true }.
% Of course paths shall be set according to any other non-standard install:
{ port_env, [
{ "CC", "h5cc" },
% Ensure h5cc and friends can be found:
{ "PATH", "/home/boudevil/Software/HDF/hdf5-current-install/bin:$PATH" },
% So that priv/erlhdf5.so embeds a direct link to the path
% containing the HDF5 libraries of interest:
{ "LDFLAGS", "-Wl,-rpath=/home/boudevil/Software/HDF/hdf5-current-install/lib -shlib -L/home/boudevil/Software/HDF/hdf5-current-install/lib" },
{ "DRV_CFLAGS", "-g -Wall -fPIC $ERL_CFLAGS" }
]
}.
{ port_specs, [ { "priv/erlhdf5.so", [ "c_src/*.c" ] } ] }.