diff options
Diffstat (limited to 'rebar.config')
-rw-r--r-- | rebar.config | 61 |
1 files changed, 31 insertions, 30 deletions
diff --git a/rebar.config b/rebar.config index 83da0e5..5eaf6de 100644 --- a/rebar.config +++ b/rebar.config @@ -8,63 +8,64 @@ {providers, "", {git, "https://github.com/tsloughter/providers.git", {tag, "v1.3.1"}}}, - {erlydtl, "", - {git, "https://github.com/erlydtl/erlydtl.git", - {branch, "master"}}}, {relx, "", {git, "https://github.com/erlware/relx.git", - {branch, "master"}}}, + {tag, "v2.0.0"}}}, + {mustache, ".*", + {git, "https://github.com/soranoba/mustache.git", + {tag, "v0.3.0"}}}, {getopt, "", {git, "https://github.com/jcomellas/getopt.git", {branch, "master"}}}]}. {escript_incl_apps, - [getopt, merl, erlydtl, erlware_commons, relx, providers, rebar]}. + [getopt, erlware_commons, relx, providers, rebar]}. {escript_top_level_app, rebar}. {escript_name, rebar3}. {escript_emu_args, "%%! +sbtu +A0\n"}. %% escript_incl_extra is for internal rebar-private use only. %% Do not use outside rebar. Config interface is not stable. -{escript_incl_extra, [{"priv/templates/*", "."}, {"rebar/include/*", "."}]}. +{escript_incl_extra, [{"_build/default/lib/relx/priv/templates/*", "."}, + {"priv/templates/*", "."}, + {"rebar/include/*", "."}]}. {erl_opts, [{platform_define, "R14", no_callback_support}, {platform_define, "^[0-9]+", namespaced_types}, {platform_define, "^R1[4|5]", deprecated_crypto}, - debug_info, + no_debug_info, warnings_as_errors]}. -{erlydtl_opts, [{doc_root, "priv/templates"}, - {compiler_options, [report, return, debug_info]}]}. - -{dialyzer_plt_apps, [common_test, dialyzer, erlydtl, eunit, snmp]}. - -{provider_hooks, [{post, [{compile, {erlydtl, compile}}]}]}. +{dialyzer_plt_apps, [common_test, dialyzer, eunit, snmp]}. %% Profiles {profiles, [{test, [{deps, [ {meck, "", {git, "https://github.com/eproxus/meck.git", {tag, "0.8.2"}}} - ]} - ] - }, + ]}, + {erl_opts, [debug_info]} + ]}, %% We don't want erlydtl to attempt to run on the first compile pass to bootstrap - {bootstrap, [{overrides, [{override, relx, [{provider_hooks, [{post, []}]}]}]}, - {provider_hooks, [{post, []}]}]} + {bootstrap, []} ]}. %% Overrides -{overrides, [{override, erlware_commons, [{plugins, []}]}, - {override, merl, [{pre_hooks, [{"(linux|darwin|solaris)", compile, "make -C \"$REBAR_DEPS_DIR/merl\" all -W test"}, - {"(freebsd|netbsd|openbsd)", compile, "gmake -C \"$REBAR_DEPS_DIR/merl\" all"}, - {"win32", compile, "make -C \"%REBAR_DEPS_DIR%/merl\" all -W test"}, - {eunit, - "erlc -I include/erlydtl_preparser.hrl -o test" - " test/erlydtl_extension_testparser.yrl"}, - {"(linux|darwin|solaris)", eunit, "make -C \"$REBAR_DEPS_DIR/merl\" test"}, - {"(freebsd|netbsd|openbsd)", eunit, "gmake -C \"$REBAR_DEPS_DIR/merl\" test"}, - {"win32", eunit, "make -C \"%REBAR_DEPS_DIR%/merl\" test"} - ]}]}, - {override, erlydtl, [{pre_hooks, []}]} +{overrides, [{override, erlware_commons, [ + {erl_opts, [{platform_define, "^[0-9]+", namespaced_types}, + {platform_define, "^R1[4|5]", deprecated_crypto}, + no_debug_info, + warnings_as_errors]}, + {deps, []}, {plugins, []} + ]}, + {override, mustache, [ + {erl_opts, [{platform_define, "^[0-9]+", namespaced_types}, + no_debug_info]}, + {deps, []}, {plugins, []}]}, + {override, getopt, [{erl_opts, [no_debug_info]}]}, + {override, providers, [{erl_opts, [no_debug_info]}]}, + {override, relx, [{erl_opts, [{platform_define, "^[0-9]+", namespaced_types}, + {platform_define, "^R1[4|5]", deprecated_crypto}, + no_debug_info, + warnings_as_errors]}]} ]}. |