summaryrefslogtreecommitdiff
path: root/rebar.config.sample
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-02-07 20:15:58 +0100
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-04-16 23:17:24 +0200
commit7c418ed2b4a4316e4a784b83c2ffbdc1adf33dbe (patch)
tree3ded7f0217ef75eedffd6685fe0f27b48a2fb9ec /rebar.config.sample
parent2ae73cc2d3c4650a0e542d3e111159183926e10e (diff)
downloadrebar-7c418ed2b4a4316e4a784b83c2ffbdc1adf33dbe.tar.gz
Add support for target-specific port options
{port_specs, [{".*", "priv/foo.so", ["c_src/foo.c"], [{env, []}]}]}.
Diffstat (limited to 'rebar.config.sample')
-rw-r--r--rebar.config.sample6
1 files changed, 4 insertions, 2 deletions
diff --git a/rebar.config.sample b/rebar.config.sample
index 9be1373..ebcaff9 100644
--- a/rebar.config.sample
+++ b/rebar.config.sample
@@ -37,14 +37,16 @@
%% Port compilation environment variables. See rebar_port_compiler.erl for
%% more info. Default is `[]'
-{port_env, []}.
+{port_env, [{"CFLAGS", "$CFLAGS -Ifoo"},
+ {"freebsd", "LDFLAGS", "$LDFLAGS -lfoo"}]}.
%% port_specs
%% List of filenames or wildcards to be compiled. May also contain a tuple
%% consisting of a regular expression to be applied against the system
%% architecture as a filter.
{port_specs, [{"priv/so_name.so", ["c_src/*.c"]},
- {"linux", "priv/hello_linux", ["c_src/hello_linux.c"]]}.
+ {"linux", "priv/hello_linux", ["c_src/hello_linux.c"]},
+ {"linux", "priv/hello_linux", ["c_src/*.c"], [{env, []}]}}.
%% == LFE Compiler ==