Skip to content

Commit

Permalink
requires new rebar for dynamic config
Browse files Browse the repository at this point in the history
typos in config script
  • Loading branch information
Joe Caswell committed Aug 24, 2012
1 parent 48b5eea commit b330ff2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Binary file modified rebar
Binary file not shown.
12 changes: 5 additions & 7 deletions rebar.config.script
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ Config=[
{deps, [ ]}, {deps, [ ]},
{deps_dir, "c_src"}, {deps_dir, "c_src"},
{port_envs, [ {port_envs, [
%% Make sure to set -fPIC when compiling ossp-uuid
{"CFLAGS", "$CFLAGS -fPIC"}, {"CFLAGS", "$CFLAGS -fPIC"},
{"^bsd","DRV_CFLAGS", "$DRV_CFLAGS -Werror -I c_src/uuid-1,6,2"}, {"^bsd","DRV_CFLAGS", "$DRV_CFLAGS -Werror -I c_src/uuid-1,6,2"},
{"^bsd","DRV_LDFLAGS", "$DRV_LDFLAGS c_src/uuid-1,6,2/,libs/libuuid,a"}, {"^bsd","DRV_LDFLAGS", "$DRV_LDFLAGS c_src/uuid-1,6,2/,libs/libuuid,a"},
%% BSD provides uuid_create natively {"bsd","DRV_CFLAGS", "$DRV_CFLAGS -Werror"}
{"bsd","DRV_CFLAGS", "$DRV_CFLAGS -Werror"}, ]}
]},
], ],
case rebar_utils:is_arch("bsd") of case rebar_utils:is_arch("bsd") of
match -> match ->
true; true;
nomatch -> _ ->
Config1 = lists:keystore(pre_hooks, 1, Config, {pre_hooks, [{compile, "c_src/build_deps,sh"}]}), Config1 = lists:keystore(pre_hooks, 1, Config, {pre_hooks, [{compile, "c_src/build_deps.sh"}]}),
lists:keystore(post_hooks, 1, Config1, {post_hooks, [{clean, "c_src/build_deps,sh clean"}]}) lists:keystore(post_hooks, 1, Config1, {post_hooks, [{clean, "c_src/build_deps.sh clean"}]})
end. end.

0 comments on commit b330ff2

Please sign in to comment.