2016-12-27 10:44:07 +01:00
|
|
|
%%%----------------------------------------------------------------------
|
|
|
|
%%%
|
2020-01-28 13:34:02 +01:00
|
|
|
%%% ejabberd, Copyright (C) 2002-2020 ProcessOne
|
2016-12-27 10:44:07 +01:00
|
|
|
%%%
|
|
|
|
%%% This program is free software; you can redistribute it and/or
|
|
|
|
%%% modify it under the terms of the GNU General Public License as
|
|
|
|
%%% published by the Free Software Foundation; either version 2 of the
|
|
|
|
%%% License, or (at your option) any later version.
|
|
|
|
%%%
|
|
|
|
%%% This program is distributed in the hope that it will be useful,
|
|
|
|
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
%%% General Public License for more details.
|
|
|
|
%%%
|
|
|
|
%%% You should have received a copy of the GNU General Public License along
|
|
|
|
%%% with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
%%% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
%%%
|
|
|
|
%%%----------------------------------------------------------------------
|
2017-03-20 18:28:40 +01:00
|
|
|
Vars = case file:consult(filename:join([filename:dirname(SCRIPT),"vars.config"])) of
|
2017-01-26 16:43:47 +01:00
|
|
|
{ok, Terms} ->
|
|
|
|
Terms;
|
|
|
|
_Err ->
|
|
|
|
[]
|
2017-05-31 11:30:34 +02:00
|
|
|
end ++ [{cflags, "-g -O2 -Wall"}, {cppflags, "-g -O2 -Wall"},
|
|
|
|
{ldflags, ""}, {system_deps, false}],
|
2017-01-26 16:43:47 +01:00
|
|
|
{cflags, CFlags} = lists:keyfind(cflags, 1, Vars),
|
|
|
|
{cppflags, CPPFlags} = lists:keyfind(cppflags, 1, Vars),
|
|
|
|
{ldflags, LDFlags} = lists:keyfind(ldflags, 1, Vars),
|
2017-05-31 11:30:34 +02:00
|
|
|
{system_deps, SystemDeps} = lists:keyfind(system_deps, 1, Vars),
|
2017-01-26 16:43:47 +01:00
|
|
|
|
2018-01-29 10:02:20 +01:00
|
|
|
GetCfg = fun GetCfg(Cfg, [Key | Tail], Default) ->
|
2017-01-26 16:43:47 +01:00
|
|
|
Val = case lists:keyfind(Key, 1, Cfg) of
|
|
|
|
{Key, V1} -> V1;
|
|
|
|
false -> Default
|
|
|
|
end,
|
|
|
|
case Tail of
|
|
|
|
[] ->
|
|
|
|
Val;
|
|
|
|
_ ->
|
2018-01-29 10:02:20 +01:00
|
|
|
GetCfg(Val, Tail, Default)
|
2017-01-26 16:43:47 +01:00
|
|
|
end
|
|
|
|
end,
|
2018-01-29 10:02:20 +01:00
|
|
|
ModCfg = fun ModCfg(Cfg, [Key | Tail], Op, Default) ->
|
2017-01-26 16:43:47 +01:00
|
|
|
{OldVal, PartCfg} = case lists:keytake(Key, 1, Cfg) of
|
|
|
|
{value, {_, V1}, V2} -> {V1, V2};
|
|
|
|
false -> {if Tail == [] -> Default; true -> [] end, Cfg}
|
|
|
|
end,
|
|
|
|
case Tail of
|
|
|
|
[] ->
|
|
|
|
[{Key, Op(OldVal)} | PartCfg];
|
|
|
|
_ ->
|
2018-01-29 10:02:20 +01:00
|
|
|
[{Key, ModCfg(OldVal, Tail, Op, Default)} | PartCfg]
|
2017-01-26 16:43:47 +01:00
|
|
|
end
|
|
|
|
end,
|
|
|
|
|
2018-01-29 10:02:20 +01:00
|
|
|
FilterConfig = fun FilterConfig(Cfg, [{Path, true, ModFun, Default} | Tail]) ->
|
|
|
|
FilterConfig(ModCfg(Cfg, Path, ModFun, Default), Tail);
|
|
|
|
FilterConfig(Cfg, [{Path, SourcePath, true, ModFun, Default, SourceDefault} | Tail]) ->
|
|
|
|
SourceVal = GetCfg(Cfg, SourcePath, SourceDefault),
|
2017-01-26 16:43:47 +01:00
|
|
|
ModFun2 = fun(V) -> ModFun(V, SourceVal) end,
|
2018-01-29 10:02:20 +01:00
|
|
|
FilterConfig(ModCfg(Cfg, Path, ModFun2, Default), Tail);
|
|
|
|
FilterConfig(Cfg, [_ | Tail]) ->
|
|
|
|
FilterConfig(Cfg, Tail);
|
|
|
|
FilterConfig(Cfg, []) ->
|
2017-01-26 16:43:47 +01:00
|
|
|
Cfg
|
|
|
|
end,
|
2016-03-21 12:01:20 +01:00
|
|
|
|
2016-11-24 14:07:08 +01:00
|
|
|
IsRebar3 = case application:get_key(rebar, vsn) of
|
|
|
|
{ok, VSN} ->
|
|
|
|
[VSN1 | _] = string:tokens(VSN, "-"),
|
2018-01-12 17:12:46 +01:00
|
|
|
[Maj|_] = string:tokens(VSN1, "."),
|
2016-11-24 14:07:08 +01:00
|
|
|
(list_to_integer(Maj) >= 3);
|
|
|
|
undefined ->
|
|
|
|
lists:keymember(mix, 1, application:loaded_applications())
|
|
|
|
end,
|
2017-01-26 16:43:47 +01:00
|
|
|
|
|
|
|
SysVer = erlang:system_info(otp_release),
|
2013-04-08 11:12:54 +02:00
|
|
|
|
2016-07-20 10:11:08 +02:00
|
|
|
ProcessSingleVar = fun(F, Var, Tail) ->
|
2018-01-29 10:02:20 +01:00
|
|
|
case F([Var], []) of
|
2016-07-20 10:11:08 +02:00
|
|
|
[] -> Tail;
|
|
|
|
[Val] -> [Val | Tail]
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
|
2018-01-29 10:02:20 +01:00
|
|
|
ProcessVars = fun F([], Acc) ->
|
2017-01-26 16:43:47 +01:00
|
|
|
lists:reverse(Acc);
|
2018-01-29 10:02:20 +01:00
|
|
|
F([{Type, Ver, Value} | Tail], Acc) when
|
2017-01-26 16:43:47 +01:00
|
|
|
Type == if_version_above orelse
|
|
|
|
Type == if_version_below ->
|
2016-05-31 11:29:19 +02:00
|
|
|
SysVer = erlang:system_info(otp_release),
|
|
|
|
Include = if Type == if_version_above ->
|
|
|
|
SysVer > Ver;
|
|
|
|
true ->
|
|
|
|
SysVer < Ver
|
|
|
|
end,
|
|
|
|
if Include ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, ProcessSingleVar(F, Value, Acc));
|
2016-05-31 11:29:19 +02:00
|
|
|
true ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, Acc)
|
2016-05-31 11:29:19 +02:00
|
|
|
end;
|
2018-01-29 10:02:20 +01:00
|
|
|
F([{Type, Ver, Value, ElseValue} | Tail], Acc) when
|
2017-01-26 16:43:47 +01:00
|
|
|
Type == if_version_above orelse
|
|
|
|
Type == if_version_below ->
|
2016-07-20 10:11:34 +02:00
|
|
|
Include = if Type == if_version_above ->
|
|
|
|
SysVer > Ver;
|
|
|
|
true ->
|
|
|
|
SysVer < Ver
|
|
|
|
end,
|
|
|
|
if Include ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, ProcessSingleVar(F, Value, Acc));
|
2016-07-20 10:11:34 +02:00
|
|
|
true ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, ProcessSingleVar(F, ElseValue, Acc))
|
2017-01-26 16:43:47 +01:00
|
|
|
end;
|
2018-01-29 10:02:20 +01:00
|
|
|
F([{Type, Var, Value} | Tail], Acc) when
|
2017-01-26 16:43:47 +01:00
|
|
|
Type == if_var_true orelse
|
|
|
|
Type == if_var_false ->
|
|
|
|
Flag = Type == if_var_true,
|
|
|
|
case proplists:get_bool(Var, Vars) of
|
|
|
|
V when V == Flag ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, ProcessSingleVar(F, Value, Acc));
|
2017-01-26 16:43:47 +01:00
|
|
|
_ ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, Acc)
|
2017-01-26 16:43:47 +01:00
|
|
|
end;
|
2018-01-29 10:02:20 +01:00
|
|
|
F([{Type, Value} | Tail], Acc) when
|
2017-01-26 16:43:47 +01:00
|
|
|
Type == if_rebar3 orelse
|
|
|
|
Type == if_not_rebar3 ->
|
|
|
|
Flag = Type == if_rebar3,
|
|
|
|
case IsRebar3 == Flag of
|
|
|
|
true ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, ProcessSingleVar(F, Value, Acc));
|
2017-01-26 16:43:47 +01:00
|
|
|
_ ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, Acc)
|
2017-01-26 16:43:47 +01:00
|
|
|
end;
|
2018-01-29 10:02:20 +01:00
|
|
|
F([{Type, Var, Match, Value} | Tail], Acc) when
|
2017-01-26 16:43:47 +01:00
|
|
|
Type == if_var_match orelse
|
|
|
|
Type == if_var_no_match ->
|
|
|
|
case proplists:get_value(Var, Vars) of
|
|
|
|
V when V == Match ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, ProcessSingleVar(F, Value, Acc));
|
2017-01-26 16:43:47 +01:00
|
|
|
_ ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, Acc)
|
2016-07-20 10:11:34 +02:00
|
|
|
end;
|
2018-01-29 10:02:20 +01:00
|
|
|
F([{if_have_fun, MFA, Value} | Tail], Acc) ->
|
2017-05-13 12:11:08 +02:00
|
|
|
{Mod, Fun, Arity} = MFA,
|
|
|
|
code:ensure_loaded(Mod),
|
|
|
|
case erlang:function_exported(Mod, Fun, Arity) of
|
|
|
|
true ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, ProcessSingleVar(F, Value, Acc));
|
2017-05-13 12:11:08 +02:00
|
|
|
false ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Tail, Acc)
|
2017-05-13 12:11:08 +02:00
|
|
|
end;
|
2018-01-29 10:02:20 +01:00
|
|
|
F([Other1 | Tail1], Acc) ->
|
|
|
|
F(Tail1, [F(Other1, []) | Acc]);
|
|
|
|
F(Val, Acc) when is_tuple(Val) ->
|
|
|
|
list_to_tuple(F(tuple_to_list(Val), Acc));
|
|
|
|
F(Other2, _Acc) ->
|
2017-01-26 16:43:47 +01:00
|
|
|
Other2
|
|
|
|
end,
|
|
|
|
|
|
|
|
MaybeApply = fun(Val) when is_function(Val) ->
|
|
|
|
Val();
|
|
|
|
(Val) ->
|
|
|
|
Val
|
|
|
|
end,
|
|
|
|
MaybeApply2 = fun(Val, Arg) when is_function(Val) ->
|
|
|
|
Val(Arg);
|
|
|
|
(Val, _) ->
|
|
|
|
Val
|
|
|
|
end,
|
|
|
|
|
|
|
|
AppendStr = fun(Append) ->
|
|
|
|
fun("") ->
|
|
|
|
lists:flatten(MaybeApply(Append));
|
|
|
|
(Val) ->
|
|
|
|
lists:flatten([Val, " ", MaybeApply(Append)])
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
AppendList = fun(Append) ->
|
|
|
|
fun(Val) ->
|
|
|
|
Val ++ MaybeApply(Append)
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
AppendStr2 = fun(Append) ->
|
|
|
|
fun("", Arg) ->
|
|
|
|
lists:flatten(MaybeApply2(Append, Arg));
|
|
|
|
(Val, Arg) ->
|
|
|
|
lists:flatten([Val, " ", MaybeApply2(Append, Arg)])
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
AppendList2 = fun(Append) ->
|
|
|
|
fun(Val, Arg) ->
|
|
|
|
Val ++ MaybeApply2(Append, Arg)
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
|
|
|
|
Rebar3DepsFilter =
|
2020-09-21 13:49:58 +02:00
|
|
|
fun(DepsList, GitOnlyDeps) ->
|
|
|
|
lists:map(fun({DepName, _, {git, _, {tag, Version}}} = Dep) ->
|
|
|
|
case lists:member(DepName, GitOnlyDeps) of
|
|
|
|
true ->
|
|
|
|
Dep;
|
|
|
|
_ ->
|
|
|
|
{DepName, Version}
|
|
|
|
end;
|
2017-01-26 16:43:47 +01:00
|
|
|
(Dep) ->
|
|
|
|
Dep
|
|
|
|
end, DepsList)
|
|
|
|
end,
|
|
|
|
|
2018-01-12 16:15:52 +01:00
|
|
|
DepAlts = fun("esip") -> ["esip", "p1_sip"];
|
|
|
|
("xmpp") -> ["xmpp", "p1_xmpp"];
|
|
|
|
("fast_xml") -> ["fast_xml", "p1_xml"];
|
|
|
|
(Val) -> [Val]
|
|
|
|
end,
|
|
|
|
|
2018-01-29 10:02:20 +01:00
|
|
|
LibDirInt = fun F([Dep|Rest], Suffix) ->
|
2018-01-12 16:15:52 +01:00
|
|
|
case code:lib_dir(Dep) of
|
|
|
|
{error, _} ->
|
2018-01-29 10:02:20 +01:00
|
|
|
F(Rest, Suffix);
|
2018-01-12 16:15:52 +01:00
|
|
|
V -> V ++ Suffix
|
|
|
|
end;
|
2018-01-29 10:02:20 +01:00
|
|
|
F([], _) ->
|
2018-01-12 16:15:52 +01:00
|
|
|
error
|
|
|
|
end,
|
|
|
|
|
|
|
|
LibDir = fun(Name, Suffix) ->
|
2018-01-29 10:02:20 +01:00
|
|
|
LibDirInt(DepAlts(Name), Suffix)
|
2018-01-12 16:15:52 +01:00
|
|
|
end,
|
|
|
|
|
2017-01-26 16:43:47 +01:00
|
|
|
GlobalDepsFilter =
|
|
|
|
fun(Deps) ->
|
|
|
|
DepNames = lists:map(fun({DepName, _, _}) -> DepName;
|
|
|
|
({DepName, _}) -> DepName
|
|
|
|
end, Deps),
|
|
|
|
lists:filtermap(fun(Dep) ->
|
2018-01-12 16:15:52 +01:00
|
|
|
case LibDir(atom_to_list(Dep), "") of
|
|
|
|
error ->
|
|
|
|
exit("Unable to locate dep '" ++ atom_to_list(Dep) ++ "' in system deps.");
|
2017-01-26 16:43:47 +01:00
|
|
|
_ ->
|
|
|
|
false
|
|
|
|
end
|
|
|
|
end, DepNames)
|
|
|
|
end,
|
2014-08-26 16:12:57 +02:00
|
|
|
|
2013-04-08 11:12:54 +02:00
|
|
|
{ok, Cwd} = file:get_cwd(),
|
2015-04-09 17:14:30 +02:00
|
|
|
TestConfigFile = filename:join([Cwd, "test", "config.ctc"]),
|
|
|
|
TestConfig = case file:read_file_info(TestConfigFile) of
|
2017-01-26 16:43:47 +01:00
|
|
|
{ok, _} ->
|
2017-02-14 14:34:02 +01:00
|
|
|
[" -userconfig ct_config_plain ", TestConfigFile, " "];
|
2017-01-26 16:43:47 +01:00
|
|
|
_ ->
|
|
|
|
""
|
2016-11-18 14:02:47 +01:00
|
|
|
end,
|
2015-04-09 17:14:30 +02:00
|
|
|
|
2017-10-30 13:55:10 +01:00
|
|
|
ResolveDepPath = case {SystemDeps, IsRebar3} of
|
|
|
|
{true, _} ->
|
2016-11-24 14:07:08 +01:00
|
|
|
fun("deps/" ++ Rest) ->
|
|
|
|
Slash = string:str(Rest, "/"),
|
2018-01-12 16:15:52 +01:00
|
|
|
case LibDir(string:sub_string(Rest, 1, Slash -1), string:sub_string(Rest, Slash)) of
|
|
|
|
error -> Rest;
|
|
|
|
V -> V
|
2018-01-10 16:34:01 +01:00
|
|
|
end;
|
2017-10-30 13:55:10 +01:00
|
|
|
(Path) ->
|
|
|
|
Path
|
|
|
|
end;
|
|
|
|
{_, true} ->
|
|
|
|
fun("deps/" ++ Rest) ->
|
|
|
|
Slash = string:str(Rest, "/"),
|
|
|
|
"_build/default/lib/" ++
|
|
|
|
string:sub_string(Rest, 1, Slash - 1) ++
|
|
|
|
string:sub_string(Rest, Slash);
|
2016-11-24 14:07:08 +01:00
|
|
|
(Path) ->
|
|
|
|
Path
|
|
|
|
end;
|
|
|
|
_ ->
|
|
|
|
fun(P) ->
|
2017-01-26 16:43:47 +01:00
|
|
|
P
|
2016-11-24 14:07:08 +01:00
|
|
|
end
|
|
|
|
end,
|
|
|
|
|
2017-01-26 16:43:47 +01:00
|
|
|
CtParams = fun(CompileOpts) ->
|
|
|
|
["-ct_hooks cth_surefire ",
|
|
|
|
lists:map(fun({i, IncPath}) ->
|
2018-01-12 16:15:52 +01:00
|
|
|
[" -include ", filename:absname(ResolveDepPath(IncPath), Cwd)]
|
2017-01-26 16:43:47 +01:00
|
|
|
end, CompileOpts),
|
|
|
|
TestConfig]
|
|
|
|
end,
|
2016-11-18 14:02:47 +01:00
|
|
|
|
2017-01-26 16:43:47 +01:00
|
|
|
GenDepConfigureLine =
|
|
|
|
fun(DepPath, Flags) ->
|
2017-09-26 17:32:37 +02:00
|
|
|
["sh -c 'if test ! -f config.status -o ",
|
|
|
|
"../../config.status -nt config.status; ",
|
|
|
|
"then (",
|
2017-01-26 16:43:47 +01:00
|
|
|
"CFLAGS=\"", CFlags,"\" ",
|
|
|
|
"CPPFLAGS=\"", CPPFlags, "\" "
|
|
|
|
"LDFLAGS=\"", LDFlags, "\"",
|
|
|
|
" ./configure ", string:join(Flags, " "),
|
|
|
|
"); fi'"]
|
|
|
|
end,
|
|
|
|
|
|
|
|
GenDepsConfigure =
|
|
|
|
fun(Hooks) ->
|
|
|
|
lists:map(fun({Pkg, Flags}) ->
|
|
|
|
DepPath = ResolveDepPath("deps/" ++ Pkg ++ "/"),
|
2018-01-15 12:31:47 +01:00
|
|
|
Line = lists:flatten(GenDepConfigureLine(DepPath, Flags)),
|
2019-07-12 15:00:12 +02:00
|
|
|
{add, list_to_atom(Pkg), [{pre_hooks, [{{pc, compile}, Line}, {'compile', Line}, {'configure-deps', Line}]}]}
|
2017-01-26 16:43:47 +01:00
|
|
|
end, Hooks)
|
|
|
|
end,
|
|
|
|
|
|
|
|
ProcessErlOpt = fun(Vals) ->
|
2020-03-03 11:18:07 +01:00
|
|
|
R = lists:map(
|
2017-01-26 16:43:47 +01:00
|
|
|
fun({i, Path}) ->
|
|
|
|
{i, ResolveDepPath(Path)};
|
|
|
|
(ErlOpt) ->
|
|
|
|
ErlOpt
|
2020-03-03 11:18:07 +01:00
|
|
|
end, Vals),
|
|
|
|
M = lists:filter(fun({d, M}) -> true; (_) -> false end, R),
|
|
|
|
[{d, 'ALL_DEFS', M} | R]
|
2017-01-26 16:43:47 +01:00
|
|
|
end,
|
|
|
|
|
|
|
|
ProcssXrefExclusions = fun(Items) ->
|
|
|
|
[{lists:flatten(["(XC - UC) || (XU - X - B ",
|
|
|
|
[[" - ", V] || V <- Items], ")"]),
|
|
|
|
[]}]
|
|
|
|
end,
|
|
|
|
|
|
|
|
ProcessFloatingDeps =
|
|
|
|
fun(Deps, FDeps) ->
|
|
|
|
lists:map(fun({DepName, _Ver, {git, Repo, _Commit}} = Dep) ->
|
|
|
|
case lists:member(DepName, FDeps) of
|
|
|
|
true ->
|
|
|
|
{DepName, ".*", {git, Repo}};
|
|
|
|
_ ->
|
|
|
|
Dep
|
|
|
|
end;
|
|
|
|
(Dep2) ->
|
|
|
|
Dep2
|
|
|
|
end, Deps)
|
|
|
|
end,
|
|
|
|
|
|
|
|
TravisPostHooks =
|
|
|
|
fun(true) ->
|
|
|
|
[{eunit, "echo '\n%%! -pa .eunit/ deps/coveralls/ebin\n" ++
|
|
|
|
"main(_)->{ok,F}=file:open(\"erlang.json\",[write])," ++
|
|
|
|
"io:fwrite(F,\"~s\",[coveralls:convert_file(" ++
|
|
|
|
"\".eunit/cover.coverdata\", \"" ++
|
|
|
|
os:getenv("TRAVIS_JOB_ID") ++
|
|
|
|
"\", \"travis-ci\",\"\")]).' > getcover.erl"},
|
|
|
|
{eunit, "escript ./getcover.erl"}];
|
|
|
|
(_) ->
|
|
|
|
[]
|
|
|
|
end,
|
|
|
|
|
|
|
|
Rules = [
|
|
|
|
{[provider_hooks], IsRebar3,
|
|
|
|
AppendList([{pre, [
|
|
|
|
{compile, {asn, compile}},
|
|
|
|
{clean, {asn, clean}}
|
|
|
|
]}]), []},
|
|
|
|
{[deps], os:getenv("TRAVIS") == "true",
|
2021-01-13 03:22:41 +01:00
|
|
|
AppendList([{coveralls, ".*", {git, "https://github.com/markusn/coveralls-erl", {tag, "v2.0.1"}}}]), []},
|
2017-01-26 16:43:47 +01:00
|
|
|
{[post_hooks], [cover_enabled], os:getenv("TRAVIS") == "true",
|
|
|
|
AppendList2(TravisPostHooks), [], false},
|
2017-10-30 13:55:10 +01:00
|
|
|
{[overrides], [post_hook_configure], SystemDeps == false,
|
2017-01-26 16:43:47 +01:00
|
|
|
AppendList2(GenDepsConfigure), [], []},
|
|
|
|
{[ct_extra_params], [eunit_compile_opts], true,
|
|
|
|
AppendStr2(CtParams), "", []},
|
|
|
|
{[erl_opts], true,
|
|
|
|
ProcessErlOpt, []},
|
|
|
|
{[xref_queries], [xref_exclusions], true,
|
|
|
|
AppendList2(ProcssXrefExclusions), [], []},
|
2017-01-29 12:14:32 +01:00
|
|
|
{[deps], [floating_deps], true,
|
2017-01-26 16:43:47 +01:00
|
|
|
ProcessFloatingDeps, [], []},
|
2020-09-21 13:49:58 +02:00
|
|
|
{[deps], [gitonly_deps], IsRebar3,
|
|
|
|
Rebar3DepsFilter, [], []},
|
2017-05-31 11:30:34 +02:00
|
|
|
{[deps], SystemDeps /= false,
|
2017-01-26 16:43:47 +01:00
|
|
|
GlobalDepsFilter, []}
|
|
|
|
],
|
|
|
|
|
2017-06-07 16:06:28 +02:00
|
|
|
Config = [{plugin_dir, filename:join([filename:dirname(SCRIPT),"plugins"])}]++
|
2018-01-29 10:02:20 +01:00
|
|
|
FilterConfig(ProcessVars(CONFIG, []), Rules),
|
2017-01-26 16:43:47 +01:00
|
|
|
|
|
|
|
%io:format("ejabberd configuration:~n ~p~n", [Config]),
|
2016-11-24 14:07:08 +01:00
|
|
|
|
2017-01-26 16:43:47 +01:00
|
|
|
Config.
|
2013-04-08 11:12:54 +02:00
|
|
|
|
|
|
|
%% Local Variables:
|
|
|
|
%% mode: erlang
|
|
|
|
%% End:
|
|
|
|
%% vim: set filetype=erlang tabstop=8:
|