Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Sautret <jerome.sautret@process-one.net>2014-08-26 18:12:57 +0400
committerJerome Sautret <jerome.sautret@process-one.net>2014-10-30 17:21:25 +0300
commitfad0d867fc28a702f869b4e64f08820024d9f3b2 (patch)
treef68da5a4a12ab371d66d89647f5af7f60e466afc /rebar.config.script
parent56dab7ddbe46910fb0f5ab3b93188454e3a41b7b (diff)
Add xref Makefile target.
Conflicts: rebar.config.script
Diffstat (limited to 'rebar.config.script')
-rw-r--r--rebar.config.script30
1 files changed, 30 insertions, 0 deletions
diff --git a/rebar.config.script b/rebar.config.script
index 4e2d347ff..0082ad186 100644
--- a/rebar.config.script
+++ b/rebar.config.script
@@ -116,6 +116,30 @@ CfgPostHooks = lists:flatmap(
[]
end, Cfg),
+CfgXrefs = lists:flatmap(
+ fun({mysql, false}) ->
+ ["(\".*mysql.*\":_/_)"];
+ ({pgsql, false}) ->
+ ["(\".*pgsql.*\":_/_)"];
+ ({pam, false}) ->
+ ["(\"epam\":_/_)"];
+ ({riak, false}) ->
+ ["(\"riak.*\":_/_)"];
+ ({json, false}) ->
+ ["(\"jiffy\":_/_)"];
+ ({p1db, false}) ->
+ ["(\"p1db.*\":_/_)"];
+ ({zlib, false}) ->
+ ["(\"ezlib\":_/_)"];
+ ({http, false}) ->
+ ["(\"lhttpc\":_/_)"];
+ ({iconv, false}) ->
+ ["(\"iconv\":_/_)"];
+ (_) ->
+ []
+ end, Cfg),
+
+
{ok, Cwd} = file:get_cwd(),
Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++
@@ -124,6 +148,12 @@ Config = [{erl_opts, Macros ++ HiPE ++ DebugInfo ++
{keep_build_info, true},
{ct_extra_params, "-include "
++ filename:join([Cwd, "tools"])},
+ {xref_warnings, false},
+ {xref_checks, []},
+ {xref_queries,
+ [{"(XC - UC) || (XU - X - B - "
+ ++ string:join(["(\"gen_transport\":_/_) - (\"eprof\":_/_)"]
+ ++ CfgXrefs, " - ") ++ ")", []}]},
{post_hooks, PostHooks ++ CfgPostHooks},
{deps, Deps ++ CfgDeps}],
%%io:format("ejabberd configuration:~n ~p~n", [Config]),