Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

88 строки
3.7 KiB

5 лет назад
5 лет назад
10 лет назад
10 лет назад
9 лет назад
9 лет назад
10 лет назад
7 лет назад
7 лет назад
7 лет назад
10 лет назад
  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.3.1"},
  4. {ssl_verify_fun, "1.1.5"},
  5. {certifi, "2.5.1"},
  6. {parse_trans, "3.3.0"}, % force otp-21 compat
  7. {providers, "1.8.1"},
  8. {getopt, "1.0.1"},
  9. {bbmustache, "1.8.0"},
  10. {relx, "3.33.0"},
  11. {cf, "0.2.2"},
  12. {cth_readable, "1.4.6"},
  13. {eunit_formatters, "0.5.0"}]}.
  14. {post_hooks, [{"(linux|darwin|solaris|freebsd|netbsd|openbsd)",
  15. escriptize,
  16. "cp \"$REBAR_BUILD_DIR/bin/rebar3\" ./rebar3"},
  17. {"win32",
  18. escriptize,
  19. "robocopy \"%REBAR_BUILD_DIR%/bin/\" ./ rebar3* "
  20. "/njs /njh /nfl /ndl & exit /b 0"} % silence things
  21. ]}.
  22. {escript_name, rebar3}.
  23. {escript_emu_args, "%%! +sbtu +A1\n"}.
  24. %% escript_incl_extra is for internal rebar-private use only.
  25. %% Do not use outside rebar. Config interface is not stable.
  26. {escript_incl_extra, [{"relx/priv/templates/*", "_build/default/lib/"},
  27. {"rebar/priv/templates/*", "_build/default/lib/"}]}.
  28. {erl_opts, [{platform_define, "^(19|2)", rand_only},
  29. {platform_define, "^2", unicode_str},
  30. {platform_define, "^(2[1-9])|(20\\\\.3)", filelib_find_source},
  31. {platform_define, "^(R|1|20)", fun_stacktrace},
  32. warnings_as_errors
  33. ]}.
  34. {edoc_opts, [preprocess]}.
  35. %% Use OTP 18+ when dialyzing rebar3
  36. {dialyzer, [
  37. {warnings, [unknown]},
  38. {exclude_mods, [rebar_prv_alias]}
  39. ]}.
  40. %% Profiles
  41. {profiles, [{test, [
  42. {deps, [{meck, "0.8.13"}]},
  43. {erl_opts, [debug_info, nowarn_export_all]}
  44. ]
  45. },
  46. {systest, [
  47. {erl_opts, [debug_info, nowarn_export_all]},
  48. {ct_opts, [{dir, "systest"}]}
  49. ]},
  50. {bootstrap, []},
  51. {prod, [
  52. {escript_incl_extra, [
  53. {"relx/priv/templates/*", "_build/prod/lib/"},
  54. {"rebar/priv/templates/*", "_build/prod/lib/"}
  55. ]},
  56. {erl_opts, [no_debug_info]},
  57. {overrides, [
  58. {override, erlware_commons, [
  59. {erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
  60. {platform_define, "^R1[4|5]", deprecated_crypto},
  61. {platform_define, "^((1[8|9])|2)", rand_module},
  62. {platform_define, "^2", unicode_str},
  63. {platform_define, "^(R|1|20)", fun_stacktrace},
  64. no_debug_info,
  65. warnings_as_errors]},
  66. {deps, []}, {plugins, []}]},
  67. {add, ssl_verify_hostname, [{erl_opts, [no_debug_info]}]},
  68. {add, certifi, [{erl_opts, [no_debug_info]}]},
  69. {add, cf, [{erl_opts, [no_debug_info]}]},
  70. {add, cth_readable, [{erl_opts, [no_debug_info]}]},
  71. {add, eunit_formatters, [{erl_opts, [no_debug_info]}]},
  72. {override, bbmustache, [
  73. {erl_opts, [no_debug_info, {platform_define, "^[0-9]+", namespaced_types}]},
  74. {deps, []}, {plugins, []}]},
  75. {add, getopt, [{erl_opts, [no_debug_info]}]},
  76. {add, providers, [{erl_opts, [no_debug_info]}]},
  77. {add, relx, [{erl_opts, [no_debug_info]}]}]}
  78. ]}
  79. ]}.