2021-05-18 14:54:48 +08:00
|
|
|
%% This config file is the very basic config to compile emqx
|
|
|
|
%% This allows emqx to be used as a dependency for other applications
|
|
|
|
%% such as emqx module/plugin develpments and tests.
|
2021-02-23 13:49:34 +08:00
|
|
|
|
2021-05-18 14:54:48 +08:00
|
|
|
%% With the help of EMQ's rebar3 fork, the config is extended
|
|
|
|
%% with rebar.config.erl module. Final result is written to
|
|
|
|
%% rebar.config.rendered if environment DEBUG is set.
|
2021-02-23 13:49:34 +08:00
|
|
|
|
2021-05-26 18:34:24 +08:00
|
|
|
{edoc_opts, [{preprocess, true}]}.
|
|
|
|
{erl_opts, [warn_unused_vars, warn_shadow_vars, warn_unused_import,
|
|
|
|
warn_obsolete_guard, compressed]}.
|
2021-05-18 14:54:48 +08:00
|
|
|
|
2021-05-26 18:34:24 +08:00
|
|
|
{extra_src_dirs, [{"etc", [{recursive, true}]}]}.
|
2021-05-14 07:28:48 +08:00
|
|
|
|
2021-05-26 18:34:24 +08:00
|
|
|
{xref_checks, [undefined_function_calls, undefined_functions, locals_not_used,
|
|
|
|
deprecated_function_calls]}.
|
2021-05-18 14:54:48 +08:00
|
|
|
|
|
|
|
{dialyzer, [
|
|
|
|
{warnings, [unmatched_returns, error_handling, race_conditions]},
|
|
|
|
{plt_location, "."},
|
|
|
|
{plt_prefix, "emqx_dialyzer"},
|
|
|
|
{plt_apps, all_apps},
|
|
|
|
{statistics, true}
|
2021-05-26 18:34:24 +08:00
|
|
|
]
|
2021-05-18 14:54:48 +08:00
|
|
|
}.
|
2021-02-23 13:49:34 +08:00
|
|
|
|
|
|
|
{cover_opts, [verbose]}.
|
|
|
|
{cover_export_enabled, true}.
|
2021-05-18 14:54:48 +08:00
|
|
|
{cover_excl_mods, [emqx_exproto_pb, emqx_exhook_pb]}.
|
|
|
|
|
|
|
|
{provider_hooks, [{pre, [{release, {relup_helper, gen_appups}}]}]}.
|
2021-02-23 13:49:34 +08:00
|
|
|
|
2021-05-26 18:34:24 +08:00
|
|
|
{post_hooks, []}.
|
2021-02-23 13:49:34 +08:00
|
|
|
|
2021-05-18 14:54:48 +08:00
|
|
|
{erl_first_files, ["src/emqx_logger.erl", "src/emqx_rule_actions_trans.erl"]}.
|
2021-02-23 13:49:34 +08:00
|
|
|
|
2021-05-18 14:54:48 +08:00
|
|
|
{deps,
|
2021-05-28 11:01:03 +08:00
|
|
|
[
|
|
|
|
{grpc_plugin, {git, "https://github.com.cnpmjs.org/fastdgiot/grpc_plugin.git", {tag, "v0.10.3"}}}
|
|
|
|
, {gpb, {git, "https://github.com.cnpmjs.org/fastdgiot/gpb", {tag, "4.17.6"}}}
|
2021-05-30 13:11:43 +08:00
|
|
|
, {getopt, {git, "https://github.com.cnpmjs.org/fastdgiot/getopt", {tag, "v1.0.2"}}}
|
2021-05-28 11:01:03 +08:00
|
|
|
, {cuttlefish, {git, "https://github.com.cnpmjs.org/fastdgiot/cuttlefish", {tag, "v3.3.4"}}}
|
2021-05-30 15:51:21 +08:00
|
|
|
, {cowboy, {git, "https://github.com.cnpmjs.org/fastdgiot/cowboy", {tag, "2.8.3"}}}
|
2021-05-28 11:01:03 +08:00
|
|
|
, {minirest, {git, "https://github.com.cnpmjs.org/fastdgiot/minirest", {tag, "0.3.5"}}}
|
|
|
|
, {ecpool, {git, "https://github.com.cnpmjs.org/fastdgiot/ecpool", {tag, "0.5.1"}}}
|
|
|
|
, {replayq, {git, "https://github.com.cnpmjs.org/fastdgiot/replayq", {tag, "0.3.2"}}}
|
|
|
|
, {pbkdf2, {git, "https://github.com.cnpmjs.org/fastdgiot/erlang-pbkdf2.git", {branch, "2.0.4"}}}
|
|
|
|
, {emqtt, {git, "https://github.com.cnpmjs.org/fastdgiot/emqtt", {tag, "1.2.3"}}}
|
|
|
|
, {rulesql, {git, "https://github.com.cnpmjs.org/fastdgiot/rulesql", {tag, "0.1.2"}}}
|
|
|
|
, {recon, {git, "https://github.com.cnpmjs.org/fastdgiot/recon", {tag, "2.5.1"}}}
|
|
|
|
, {gproc, {git, "https://github.com.cnpmjs.org/fastdgiot/gproc", {tag, "0.8.0"}}}
|
|
|
|
, {gen_rpc, {git, "https://github.com.cnpmjs.org/fastdgiot/gen_rpc", {tag, "2.5.1"}}}
|
|
|
|
, {jiffy, {git, "https://github.com.cnpmjs.org/fastdgiot/jiffy", {tag, "1.0.5"}}}
|
|
|
|
, {esockd, {git, "https://github.com.cnpmjs.org/fastdgiot/esockd", {tag, "5.8.0"}}}
|
|
|
|
, {ekka, {git, "https://github.com.cnpmjs.org/fastdgiot/ekka", {tag, "0.8.1"}}}
|
|
|
|
, {ehttpc, {git, "https://github.com.cnpmjs.org/fastdgiot/ehttpc", {tag, "0.1.5"}}}
|
2021-05-28 14:30:04 +08:00
|
|
|
, {erlport, {git, "https://github.com.cnpmjs.org/fastdgiot/erlport", {tag, "v1.2.2"}}}
|
2021-05-28 11:01:03 +08:00
|
|
|
, {websocket_client, {git, "https://github.com.cnpmjs.org/fastdgiot/websocket_client", {tag, "v0.7"}}}
|
2021-05-26 18:34:24 +08:00
|
|
|
, {observer_cli, "1.6.1"} % NOTE: depends on recon 2.5.1
|
2021-05-30 13:11:43 +08:00
|
|
|
, {ejdbc, {git, "https://github.com.cnpmjs.org/fastdgiot/ejdbc", {tag, "1.0.1"}}}
|
2021-05-28 11:01:03 +08:00
|
|
|
, {snabbkaffe, {git, "https://github.com.cnpmjs.org/fastdgiot/snabbkaffe.git", {tag, "0.12.0"}}}
|
2021-05-18 14:54:48 +08:00
|
|
|
]}.
|
|
|
|
|
|
|
|
{xref_ignores,
|
2021-05-26 18:34:24 +08:00
|
|
|
[
|
|
|
|
]}.
|