選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

86 行
3.6 KiB

7年前
7年前
7年前
  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.6.1"},
  10. {relx, "3.32.1"},
  11. {cf, "0.2.2"},
  12. {cth_readable, "1.4.4"},
  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. %% Use OTP 18+ when dialyzing rebar3
  35. {dialyzer, [
  36. {warnings, [unknown]},
  37. {exclude_mods, [rebar_prv_alias]}
  38. ]}.
  39. %% Profiles
  40. {profiles, [{test, [
  41. {deps, [{meck, "0.8.13"}]},
  42. {erl_opts, [debug_info, nowarn_export_all]}
  43. ]
  44. },
  45. {systest, [
  46. {erl_opts, [debug_info, nowarn_export_all]},
  47. {ct_opts, [{dir, "systest"}]}
  48. ]},
  49. {bootstrap, []},
  50. {prod, [
  51. {escript_incl_extra, [
  52. {"relx/priv/templates/*", "_build/prod/lib/"},
  53. {"rebar/priv/templates/*", "_build/prod/lib/"}
  54. ]},
  55. {erl_opts, [no_debug_info]},
  56. {overrides, [
  57. {override, erlware_commons, [
  58. {erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
  59. {platform_define, "^R1[4|5]", deprecated_crypto},
  60. {platform_define, "^((1[8|9])|2)", rand_module},
  61. {platform_define, "^2", unicode_str},
  62. {platform_define, "^(R|1|20)", fun_stacktrace},
  63. no_debug_info,
  64. warnings_as_errors]},
  65. {deps, []}, {plugins, []}]},
  66. {add, ssl_verify_hostname, [{erl_opts, [no_debug_info]}]},
  67. {add, certifi, [{erl_opts, [no_debug_info]}]},
  68. {add, cf, [{erl_opts, [no_debug_info]}]},
  69. {add, cth_readable, [{erl_opts, [no_debug_info]}]},
  70. {add, eunit_formatters, [{erl_opts, [no_debug_info]}]},
  71. {override, bbmustache, [
  72. {erl_opts, [no_debug_info, {platform_define, "^[0-9]+", namespaced_types}]},
  73. {deps, []}, {plugins, []}]},
  74. {add, getopt, [{erl_opts, [no_debug_info]}]},
  75. {add, providers, [{erl_opts, [no_debug_info]}]},
  76. {add, relx, [{erl_opts, [no_debug_info]}]}]}
  77. ]}
  78. ]}.