2021-02-16 18:28:30 +01:00
|
|
|
Vars = case file:consult(filename:join([filename:dirname(SCRIPT), "..", "vars.config"])) of
|
|
|
|
{ok, Terms} ->
|
2021-03-14 22:33:30 +01:00
|
|
|
Backends = [mssql, mysql, odbc, pgsql, redis, sqlite],
|
|
|
|
EBs = lists:filter(fun(Backend) -> lists:member({Backend, true}, Terms) end, Backends),
|
2021-03-02 18:50:48 +01:00
|
|
|
[lists:keyfind(description, 1, Terms),
|
|
|
|
lists:keyfind(vsn, 1, Terms),
|
2021-03-14 22:33:30 +01:00
|
|
|
{env, [{enabled_backends, EBs}]}
|
2021-03-02 18:50:48 +01:00
|
|
|
];
|
2021-02-16 18:28:30 +01:00
|
|
|
_Err ->
|
|
|
|
[]
|
|
|
|
end,
|
|
|
|
|
|
|
|
{application, ejabberd,
|
2021-03-02 18:50:48 +01:00
|
|
|
Vars ++
|
|
|
|
[{modules, []},
|
2021-02-16 18:28:30 +01:00
|
|
|
{registered, []},
|
2022-07-27 11:47:16 +02:00
|
|
|
{applications, [kernel, sasl, ssl, stdlib, syntax_tools]},
|
2021-02-16 18:28:30 +01:00
|
|
|
{included_applications,
|
2022-02-08 12:12:49 +01:00
|
|
|
[compiler, inets, mnesia, os_mon,
|
2021-03-04 16:51:51 +01:00
|
|
|
cache_tab,
|
|
|
|
eimp,
|
|
|
|
fast_tls,
|
2021-06-25 12:32:40 +02:00
|
|
|
fast_xml,
|
2021-03-04 16:51:51 +01:00
|
|
|
fast_yaml,
|
2021-06-25 12:32:40 +02:00
|
|
|
p1_acme,
|
2021-02-16 18:28:30 +01:00
|
|
|
p1_utils,
|
|
|
|
pkix,
|
2021-06-25 12:32:40 +02:00
|
|
|
stringprep,
|
|
|
|
yconf,
|
2021-03-04 16:51:51 +01:00
|
|
|
xmpp]},
|
2021-02-16 18:28:30 +01:00
|
|
|
{mod, {ejabberd_app, []}}]}.
|
|
|
|
|
|
|
|
%% Local Variables:
|
|
|
|
%% mode: erlang
|
|
|
|
%% End:
|
|
|
|
%% vim: set filetype=erlang tabstop=8:
|