diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-01-03 18:59:36 +0100 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2012-02-03 16:26:14 +0100 |
commit | 6898eff2c7ef8e91f7a0d0a033c365de1f97cecf (patch) | |
tree | 7fa0072c337da57cdea54000499f19b7cde4e9a9 /rebar.config.sample | |
parent | ba538094bafe568031c505ffe88d683945cdecd2 (diff) | |
download | rebar-6898eff2c7ef8e91f7a0d0a033c365de1f97cecf.tar.gz |
Rework port compiler support
* consolidate options
* add support for building executables
Diffstat (limited to 'rebar.config.sample')
-rw-r--r-- | rebar.config.sample | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/rebar.config.sample b/rebar.config.sample index bc0ff97..fb7eb70 100644 --- a/rebar.config.sample +++ b/rebar.config.sample @@ -35,22 +35,16 @@ %% == Port Compiler == -%% 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 and a list of filenames or wildcards to include should the -%% expression pass. Default is `"c_src/*.c"' -{port_sources, ["c_src/*.c", {"R14", ["c_src/*.c"]}]}. - %% Port compilation environment variables. See rebar_port_compiler.erl for %% more info. Default is `[]' {port_envs, []}. -%% Custom name of the port driver .so file. Defaults to `<Application>_drv.so'. -{so_name, "driver.so"}. - -%% so_specs - useful for building multiple *.so files -%% from one or more object files -{so_specs, [{"priv/so_name.so", ["c_src/object_file_name.o"]}]}. +%% 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"]]}. %% == LFE Compiler == |