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.

42 line
1.5 KiB

10 年之前
  1. %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
  2. %% ex: ts=4 sw=4 ft=erlang et
  3. %% escript_incl_extra is for internal rebar-private use only.
  4. %% Do not use outside rebar. Config interface is not stable.
  5. {escript_incl_extra, [{"priv/templates/*", "."}, {"rebar/include/*", "."}]}.
  6. {escript_incl_apps,
  7. [getopt, erlydtl, erlware_commons, relx, providers, rebar]}.
  8. {escript_top_level_app, rebar}.
  9. {escript_name, rebar3}.
  10. {erl_opts,
  11. [{platform_define, "R14", no_callback_support},
  12. {platform_define, "^[0-9]+", namespaced_types},
  13. {platform_define, "^R1[4|5]", deprecated_crypto},
  14. debug_info,
  15. warnings_as_errors]}.
  16. %% Types dict:dict() and digraph:digraph() have been introduced in Erlang 17.
  17. %% At the same time, their counterparts dict() and digraph() are to be
  18. %% deprecated in Erlang 18. namespaced_types option is used to select proper
  19. %% type name depending on the OTP version used.
  20. {erl_opts,
  21. [
  22. {platform_define, "^[0-9]+", namespaced_types}
  23. ]}.
  24. {deps, [
  25. {erlware_commons, ".*",
  26. {git, "https://github.com/erlware/erlware_commons.git",
  27. {branch, "master"}}},
  28. {providers, "",
  29. {git, "https://github.com/tsloughter/providers.git",
  30. {branch, "format_error1"}}},
  31. {relx, "",
  32. {git, "https://github.com/tsloughter/relx.git",
  33. {branch, "format_error1"}}},
  34. {getopt, "", {git, "https://github.com/jcomellas/getopt.git", {branch, "master"}}}]}.
  35. {erlydtl_opts, [{doc_root, "priv/templates"},
  36. {compiler_options, [report, return, debug_info]}]}.