forked from erlang/rebar3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rebar.config
66 lines (61 loc) · 2.59 KB
/
rebar.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et
%% Vendoring deps
{project_app_dirs, ["apps/*","lib/*",".","vendor/*"]}.
{project_plugin_dirs, ["plugins/*","vendor_plugins/*"]}.
%% Duplicated from apps/rebar3:
%% - we want people who rely on rebar3 as a dependency to still be able
%% to fetch it with git_subdir and have it work
{escript_main_app, rebar}.
{escript_name, rebar3}.
{escript_wrappers_windows, ["cmd", "powershell"]}.
{escript_comment, "%%Rebar3 3.23.0\n"}.
{escript_emu_args, "%%! +sbtu +A1\n"}.
%% escript_incl_priv is for internal rebar-private use only.
%% Do not use outside rebar. Config interface is not stable.
{escript_incl_priv, [{relx, "templates/*"},
{rebar, "templates/*"}]}.
{overrides, [{add, relx, [{erl_opts, [{d, 'RLX_LOG', rebar_log}]}]}]}.
{profiles, [
%% Only works at the top-level
{systest, [
{erl_opts, [debug_info, nowarn_export_all]},
{ct_opts, [{dir, "systest"}]}
]},
%% Don't check these vendored deps
{dialyzer, [
{erl_opts, [debug_info, nowarn_export_all]},
%% Ignore deps known to generate warnings
{dialyzer, [{warnings, [no_unknown]},
{exclude_apps, [cth_readable, erlware_commons, relx]}]}
]},
%% Duplicated from apps/rebar3:
%% - we don't want the test profile applied to our vendored deps.
%% - we want people who rely on rebar3 as a dependency to still be able
%% to fetch it with git_subdir and have it work
{test, [
{deps, [{meck, "0.8.13"}]},
{erl_opts, [debug_info, nowarn_export_all]}
]},
{prod, [
{erl_opts, [no_debug_info]},
{overrides, [
{override, erlware_commons, [
{erl_opts, [no_debug_info,
warnings_as_errors]},
{deps, []}, {plugins, []}]},
{add, ssl_verify_hostname, [{erl_opts, [no_debug_info]}]},
{add, certifi, [{erl_opts, [no_debug_info]}]},
{add, cf, [{erl_opts, [no_debug_info]}]},
{add, cth_readable, [{erl_opts, [no_debug_info]}]},
{add, eunit_formatters, [{erl_opts, [no_debug_info]}]},
{override, bbmustache, [
{erl_opts, [no_debug_info, {platform_define, "^[0-9]+", namespaced_types}]},
{deps, []}, {plugins, []}]},
{add, getopt, [{erl_opts, [no_debug_info]}]},
{add, providers, [{erl_opts, [no_debug_info]}]},
{add, relx, [{erl_opts, [no_debug_info]}]}]}
]}
]}.
{compiler_error_format, rich}.
%% The rest of the config is in apps/rebar/