forked from alavrik/piqi-erlang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebar.config
39 lines (23 loc) · 931 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{require_otp_vsn, "R13B04|R14|R15"}.
{deps,
[
{piqi_src, "", {git, "https://github.com/alavrik/piqi.git", {tag, "0.5.6"}}}
]}.
{erl_opts, [{d, 'PIQI_CROSS_PLATFORM'}]}.
{edoc_opts, [{preprocess, true}, {includes, ["."]} ]}.
% reset rebar's default C compilation and linkings settings as they don't work
% correctly for OCaml programs (e.g. on Mac v10.6.0), which are compiled as
% 64-bit by default and link with 64-bit OCaml libraries
{port_envs, [{"CFLAGS", ""}, {"LDFLAGS", ""}]}.
{pre_hooks, [
{compile, "make/pre-hooks-compile"},
{compile, "make PIQI_APP_DIR=`pwd` -C src -f Makefile.piqi"}
]}.
{post_hooks, [
{clean, "make -C src -f Makefile.piqi clean"},
{'get-deps', "make/post-hooks-get-deps"},
{'get-deps', "ln -s . piqi"},
{'delete-deps', "rm -f src include piqi"},
{'delete-deps', "ln -s fake_src src"}
]}.
% vim:ft=erlang