You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
3.1 KiB

7 years ago
  1. %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
  2. %% ex: ts=4 sw=4 ft=erlang et
  3. {deps, [{erlware_commons, "1.0.5"},
  4. {ssl_verify_fun, "1.1.3"},
  5. {certifi, "2.0.0"},
  6. {providers, "1.7.0"},
  7. {getopt, "1.0.1"},
  8. {bbmustache, "1.3.0"},
  9. {relx, "3.24.4"},
  10. {cf, "0.2.2"},
  11. {cth_readable, "1.3.3"},
  12. {eunit_formatters, "0.5.0"}]}.
  13. {post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
  14. escriptize,
  15. "cp \"$REBAR_BUILD_DIR/bin/rebar3\" ./rebar3"},
  16. {"win32",
  17. escriptize,
  18. "robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ rebar3* "
  19. "/njs /njh /nfl /ndl & exit /b 0"} % silence things
  20. ]}.
  21. {escript_name, rebar3}.
  22. {escript_emu_args, "%%! +sbtu +A0\n"}.
  23. %% escript_incl_extra is for internal rebar-private use only.
  24. %% Do not use outside rebar. Config interface is not stable.
  25. {escript_incl_extra, [{"relx/priv/templates/*", "_build/default/lib/"},
  26. {"rebar/priv/templates/*", "_build/default/lib/"}]}.
  27. {erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
  28. {platform_define, "^(19|2)", rand_only},
  29. {platform_define, "^2", unicode_str},
  30. warnings_as_errors]}.
  31. %% Use OTP 18+ when dialyzing rebar3
  32. {dialyzer, [{warnings, [unknown]}]}.
  33. %% Profiles
  34. {profiles, [{test, [
  35. {deps, [{meck, "0.8.7"}]},
  36. {erl_opts, [debug_info, nowarn_export_all]}
  37. ]
  38. },
  39. {systest, [
  40. {erl_opts, [debug_info, nowarn_export_all]},
  41. {ct_opts, [{dir, "systest"}]}
  42. ]},
  43. {bootstrap, []},
  44. {prod, [
  45. {overrides, [
  46. {override, erlware_commons, [
  47. {erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
  48. {platform_define, "^R1[4|5]", deprecated_crypto},
  49. {platform_define, "^((1[8|9])|2)", rand_module},
  50. {platform_define, "^2", unicode_str},
  51. no_debug_info,
  52. warnings_as_errors]},
  53. {deps, []}, {plugins, []}]},
  54. {add, ssl_verify_hostname, [{erl_opts, [no_debug_info]}]},
  55. {add, certifi, [{erl_opts, [no_debug_info]}]},
  56. {add, cf, [{erl_opts, [no_debug_info]}]},
  57. {add, cth_readable, [{erl_opts, [no_debug_info]}]},
  58. {add, eunit_formatters, [{erl_opts, [no_debug_info]}]},
  59. {override, bbmustache, [
  60. {erl_opts, [no_debug_info, {platform_define, "^[0-9]+", namespaced_types}]},
  61. {deps, []}, {plugins, []}]},
  62. {add, getopt, [{erl_opts, [no_debug_info]}]},
  63. {add, providers, [{erl_opts, [no_debug_info]}]},
  64. {add, relx, [{erl_opts, [no_debug_info]}]}]}
  65. ]}
  66. ]}.