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.

80 rivejä
3.9 KiB

9 vuotta sitten
9 vuotta sitten
10 vuotta sitten
9 vuotta sitten
7 vuotta sitten
9 vuotta sitten
10 vuotta sitten
10 vuotta sitten
  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.4"},
  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.2"},
  10. {cf, "0.2.2"},
  11. {cth_readable, "1.3.1"},
  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. no_debug_info,
  31. warnings_as_errors]}.
  32. %% Use OTP 18+ when dialyzing rebar3
  33. {dialyzer, [{warnings, [unknown]}]}.
  34. %% Profiles
  35. {profiles, [{test, [
  36. {deps, [{meck, "0.8.7"}]},
  37. {erl_opts, [debug_info, nowarn_export_all]}
  38. ]
  39. },
  40. {bootstrap, []},
  41. {dialyze, [{overrides, [{add, erlware_commons, [{erl_opts, [debug_info]}]},
  42. {add, ssl_verify_fun, [{erl_opts, [debug_info]}]},
  43. {add, certifi, [{erl_opts, [debug_info]}]},
  44. {add, providers, [{erl_opts, [debug_info]}]},
  45. {add, getopt, [{erl_opts, [debug_info]}]},
  46. {add, bbmustache, [{erl_opts, [debug_info]}]},
  47. {add, relx, [{erl_opts, [debug_info]}]},
  48. {add, cf, [{erl_opts, [debug_info]}]},
  49. {add, cth_readable, [{erl_opts, [debug_info]}]},
  50. {add, eunit_formatters, [{erl_opts, [debug_info]}]}]},
  51. {erl_opts, [debug_info]}]}
  52. ]}.
  53. %% Overrides
  54. {overrides, [{override, erlware_commons, [{erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
  55. {platform_define, "^R1[4|5]", deprecated_crypto},
  56. {platform_define, "^((1[8|9])|2)", rand_module},
  57. {platform_define, "^2", unicode_str},
  58. no_debug_info,
  59. warnings_as_errors]},
  60. {deps, []}, {plugins, []}]},
  61. {add, ssl_verify_hostname, [{erl_opts, [no_debug_info]}]},
  62. {add, certifi, [{erl_opts, [no_debug_info]}]},
  63. {add, cf, [{erl_opts, [no_debug_info]}]},
  64. {add, cth_readable, [{erl_opts, [no_debug_info]}]},
  65. {add, eunit_formatters, [{erl_opts, [no_debug_info]}]},
  66. {override, bbmustache, [{erl_opts, [no_debug_info,
  67. {platform_define, "^[0-9]+", namespaced_types}]},
  68. {deps, []}, {plugins, []}]},
  69. {add, getopt, [{erl_opts, [no_debug_info]}]},
  70. {add, providers, [{erl_opts, [no_debug_info]}]},
  71. {add, relx, [{erl_opts, [no_debug_info]}]}]}.