Merge pull request #18 from tuncer/fix-config-sample

Fix rebar.config.sample
This commit is contained in:
Dave Smith 2012-11-15 06:06:55 -08:00
commit 92fb083011
2 changed files with 18 additions and 13 deletions

View file

@ -16,7 +16,9 @@
{erl_first_files, ["mymib1", "mymib2"]}. {erl_first_files, ["mymib1", "mymib2"]}.
%% Erlang compiler options %% Erlang compiler options
{erl_opts, [no_debug_info, {i, "myinclude"}, {src_dirs, ["src1", "src2"]}, {erl_opts, [no_debug_info,
{i, "myinclude"},
{src_dirs, ["src", "src2", "src3"]},
{platform_define, {platform_define,
"(linux|solaris|freebsd|darwin)", 'HAVE_SENDFILE'}, "(linux|solaris|freebsd|darwin)", 'HAVE_SENDFILE'},
{platform_define, "(linux|freebsd)", 'BACKLOG', 128}, {platform_define, "(linux|freebsd)", 'BACKLOG', 128},
@ -46,7 +48,7 @@
%% architecture as a filter. %% architecture as a filter.
{port_specs, [{"priv/so_name.so", ["c_src/*.c"]}, {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, []}]}}. {"linux", "priv/hello_linux", ["c_src/*.c"], [{env, []}]}]}.
%% == LFE Compiler == %% == LFE Compiler ==
@ -139,16 +141,19 @@
{application_name, "1.0.*"}, {application_name, "1.0.*"},
{application_name, "1.0.*", {application_name, "1.0.*",
{git, "git://github.com/basho/rebar.git", {branch, "master"}}}, {git, "git://github.com/basho/rebar.git", {branch, "master"}}},
%% Dependencies can be marked as 'raw'. Rebar does not require
%% Dependencies can be marked as 'raw'. Rebar does not require such dependencies %% such dependencies to have a standard Erlang/OTP layout
%% to have a standard Erlang/OTP layout which assumes the presence of either %% which assumes the presence of either
%% "src/dependency_name.app.src" or "ebin/dependency_name.app" files. %% "src/dependency_name.app.src" or "ebin/dependency_name.app"
%% %% files.
%% 'raw' dependencies can still contain 'rebar.config' and even can have the %%
%% proper OTP directory layout, but they won't be compiled. %% 'raw' dependencies can still contain 'rebar.config' and
%% %% even can have the proper OTP directory layout, but they
%% Only a subset of rebar commands will be executed on the 'raw' subdirectories: %% won't be compiled.
%% get-deps, update-deps, check-deps, list-deps and delete-deps. %%
%% Only a subset of rebar commands will be executed on the
%% 'raw' subdirectories: get-deps, update-deps, check-deps,
%% list-deps and delete-deps.
{application_name, "", {application_name, "",
{git, "git://github.com/basho/rebar.git", {branch, "master"}}, {git, "git://github.com/basho/rebar.git", {branch, "master"}},
[raw]}]}. [raw]}]}.

View file

@ -117,7 +117,7 @@ clean(_Config, _AppFile) ->
test_compile(Config, Cmd, OutDir) -> test_compile(Config, Cmd, OutDir) ->
%% Obtain all the test modules for inclusion in the compile stage. %% Obtain all the test modules for inclusion in the compile stage.
%% Notice: this could also be achieved with the following %% Notice: this could also be achieved with the following
%% rebar.config option: {test_compile_opts, [{src_dirs, ["test"]}]} %% rebar.config option: {test_compile_opts, [{src_dirs, ["src", "test"]}]}
TestErls = rebar_utils:find_files("test", ".*\\.erl\$"), TestErls = rebar_utils:find_files("test", ".*\\.erl\$"),
%% Copy source files to eunit dir for cover in case they are not directly %% Copy source files to eunit dir for cover in case they are not directly