%%%----------------------------------------------------------------------
-include("ns.hrl").
--ifdef(NO_EXT_LIB).
-include("fxml.hrl").
--else.
--include_lib("fast_xml/include/fxml.hrl").
--endif.
-define(STANZA_ERROR(Code, Type, Condition),
#xmlel{name = <<"error">>,
-include("ns.hrl").
-include("jid.hrl").
-include("xmpp_codec.hrl").
--ifdef(NO_EXT_LIB).
-include("fxml.hrl").
--else.
--include_lib("fast_xml/include/fxml.hrl").
--endif.
-type iq_type() :: get | set | result | error.
-type message_type() :: chat | error | groupchat | headline | normal.
-%%%-------------------------------------------------------------------
+%-------------------------------------------------------------------
%%% @author Evgeniy Khramtsov <ekhramtsov@process-one.net>
%%% @copyright (C) 2013-2016, Evgeniy Khramtsov
%%% @doc
{erl_first_files, ["src/ejabberd_config.erl", "src/gen_mod.erl"]}.
{erl_opts, [nowarn_deprecated_function,
+ {i, "include"}, {i, "deps/fast_xml/include"},
{if_var_false, debug, no_debug_info},
{if_var_true, debug, debug_info},
{if_var_true, roster_gateway_workaround, {d, 'ROSTER_GATWAY_WORKAROUND'}},
filelib:ensure_dir(filename:join(Ebin, ".")),
EjabBin = filename:dirname(code:which(ejabberd)),
EjabInc = filename:join(filename:dirname(EjabBin), "include"),
- XmlHrl = filename:join(EjabInc, "fxml.hrl"),
- ExtLib = [{d, 'NO_EXT_LIB'} || filelib:is_file(XmlHrl)],
Options = [{outdir, Ebin}, {i, "include"}, {i, EjabInc},
- verbose, report_errors, report_warnings]
- ++ ExtLib,
+ verbose, report_errors, report_warnings],
[file:copy(App, Ebin) || App <- filelib:wildcard("src/*.app")],
%% Compile erlang files