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.

93 line
3.9 KiB

5 年之前
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.2"},
  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, "4.0.0-rc2"},
  11. {cf, "0.2.2"},
  12. {cth_readable, "1.4.8"},
  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_wrappers_windows, ["cmd", "powershell"]}.
  24. {escript_comment, "%%Rebar3 3.14.0-rc2\n"}.
  25. {escript_emu_args, "%%! +sbtu +A1\n"}.
  26. %% escript_incl_extra is for internal rebar-private use only.
  27. %% Do not use outside rebar. Config interface is not stable.
  28. {escript_incl_extra, [{"relx/priv/templates/*", "_build/default/lib/"},
  29. {"rebar/priv/templates/*", "_build/default/lib/"}]}.
  30. {overrides, [{add, relx, [{erl_opts, [{d, 'RLX_LOG', rebar_log}]}]}]}.
  31. {erl_opts, [{platform_define, "^(19|2)", rand_only},
  32. {platform_define, "^18", no_maps_update_with},
  33. {platform_define, "^2", unicode_str},
  34. {platform_define, "^(2[1-9])|(20\\\\.3)", filelib_find_source},
  35. {platform_define, "^(R|1|20)", fun_stacktrace},
  36. warnings_as_errors
  37. ]}.
  38. {edoc_opts, [preprocess]}.
  39. %% Use OTP 18+ when dialyzing rebar3
  40. {dialyzer, [
  41. {warnings, [unknown]},
  42. {exclude_mods, [rebar_prv_alias]}
  43. ]}.
  44. %% Profiles
  45. {profiles, [{test, [
  46. {deps, [{meck, "0.8.13"}]},
  47. {erl_opts, [debug_info, nowarn_export_all]}
  48. ]
  49. },
  50. {systest, [
  51. {erl_opts, [debug_info, nowarn_export_all]},
  52. {ct_opts, [{dir, "systest"}]}
  53. ]},
  54. {bootstrap, []},
  55. {prod, [
  56. {escript_incl_extra, [
  57. {"relx/priv/templates/*", "_build/prod/lib/"},
  58. {"rebar/priv/templates/*", "_build/prod/lib/"}
  59. ]},
  60. {erl_opts, [no_debug_info]},
  61. {overrides, [
  62. {override, erlware_commons, [
  63. {erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
  64. {platform_define, "^R1[4|5]", deprecated_crypto},
  65. {platform_define, "^((1[8|9])|2)", rand_module},
  66. {platform_define, "^2", unicode_str},
  67. {platform_define, "^(R|1|20)", fun_stacktrace},
  68. no_debug_info,
  69. warnings_as_errors]},
  70. {deps, []}, {plugins, []}]},
  71. {add, ssl_verify_hostname, [{erl_opts, [no_debug_info]}]},
  72. {add, certifi, [{erl_opts, [no_debug_info]}]},
  73. {add, cf, [{erl_opts, [no_debug_info]}]},
  74. {add, cth_readable, [{erl_opts, [no_debug_info]}]},
  75. {add, eunit_formatters, [{erl_opts, [no_debug_info]}]},
  76. {override, bbmustache, [
  77. {erl_opts, [no_debug_info, {platform_define, "^[0-9]+", namespaced_types}]},
  78. {deps, []}, {plugins, []}]},
  79. {add, getopt, [{erl_opts, [no_debug_info]}]},
  80. {add, providers, [{erl_opts, [no_debug_info]}]},
  81. {add, relx, [{erl_opts, [no_debug_info]}]}]}
  82. ]}
  83. ]}.