Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

28 linhas
1.4 KiB

15 anos atrás
15 anos atrás
  1. %% TODO: rename FAIL to ABORT once we require at least R13B04 for
  2. %% building rebar. Macros with different arity were not supported by the
  3. %% compiler before 13B04.
  4. -define(FAIL, rebar_utils:abort()).
  5. -define(ABORT(Str, Args), rebar_utils:abort(Str, Args)).
  6. -define(CONSOLE(Str, Args), io:format(Str, Args)).
  7. -define(DEBUG(Str, Args), rebar_log:log(debug, Str, Args)).
  8. -define(INFO(Str, Args), rebar_log:log(info, Str, Args)).
  9. -define(WARN(Str, Args), rebar_log:log(warn, Str, Args)).
  10. -define(ERROR(Str, Args), rebar_log:log(error, Str, Args)).
  11. -define(FMT(Str, Args), lists:flatten(io_lib:format(Str, Args))).
  12. -record(provider, {name :: atom(), % The 'user friendly' name of the task
  13. provider_impl :: atom(), % The implementation of the task, maybe fun or
  14. bare :: boolean(), % Indicates whether a build config is needed
  15. deps :: [atom()], % The list of dependencies
  16. desc :: string(), % The description for the task
  17. short_desc :: string(), % A one line short description of the task
  18. example :: string(), % An example of the task usage
  19. opts :: list()}). % The list of options that the task requires/understands
  20. -define(DEFAULT_LIB_DIRS, ["apps", "libs", "."]).
  21. -define(DEFAULT_DEPS_DIRS, ["deps"]).
  22. -define(DEFAULT_CONFIG_FILE, "rebar.config").
  23. -define(LOCK_FILE, "rebar.lock").