rebar.config 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. %% This config file is the very basic config to compile emqx
  2. %% This allows emqx to be used as a dependency for other applications
  3. %% such as emqx module/plugin develpments and tests.
  4. %% With the help of EMQ's rebar3 fork, the config is extended
  5. %% with rebar.config.erl module. Final result is written to
  6. %% rebar.config.rendered if environment DEBUG is set.
  7. {edoc_opts, [{preprocess,true}]}.
  8. {erl_opts, [warn_unused_vars,warn_shadow_vars,warn_unused_import,
  9. warn_obsolete_guard,compressed]}.
  10. {extra_src_dirs, [{"etc", [{recursive,true}]}]}.
  11. {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
  12. deprecated_function_calls,warnings_as_errors,deprecated_functions]}.
  13. {dialyzer, [
  14. {warnings, [unmatched_returns, error_handling, race_conditions]},
  15. {plt_location, "."},
  16. {plt_prefix, "emqx_dialyzer"},
  17. {plt_apps, all_apps},
  18. {statistics, true}
  19. ]
  20. }.
  21. {cover_enabled, true}.
  22. {cover_opts, [verbose]}.
  23. {cover_export_enabled, true}.
  24. {cover_excl_mods, [emqx_exproto_pb, emqx_exhook_pb]}.
  25. {provider_hooks,[{pre,[{release,{relup_helper,gen_appups}}]}
  26. ]}.
  27. {post_hooks,[]}.
  28. {erl_first_files, ["src/emqx_logger.erl", "src/emqx_rule_actions_trans.erl"]}.
  29. {deps,
  30. [ {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
  31. , {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
  32. , {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.8.2"}}}
  33. , {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.8.0"}}}
  34. , {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.8.0"}}}
  35. , {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.5.0"}}}
  36. , {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v3.1.0"}}}
  37. , {minirest, {git, "https://github.com/emqx/minirest", {tag, "0.3.3"}}}
  38. , {ecpool, {git, "https://github.com/emqx/ecpool", {tag, "0.5.0"}}}
  39. , {replayq, {git, "https://github.com/emqx/replayq", {tag, "0.3.2"}}}
  40. , {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {branch, "2.0.4"}}}
  41. , {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.2.3"}}}
  42. , {rulesql, {git, "https://github.com/emqx/rulesql", {tag, "0.1.2"}}}
  43. , {recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}}
  44. , {getopt, "1.0.1"}
  45. ]}.
  46. {xref_ignores,
  47. [ %% schema registry is for enterprise
  48. {emqx_schema_registry,get_all_schemas,0},
  49. {emqx_schema_api,format_schema,1},
  50. {emqx_schema_api,make_schema_params,1},
  51. {emqx_schema_parser,decode,3},
  52. {emqx_schema_parser,encode,3},
  53. {emqx_schema_registry,add_schema,1},
  54. emqx_exhook_pb, % generated code for protobuf
  55. emqx_exproto_pb % generated code for protobuf
  56. ]}.