]> granicus.if.org Git - ejabberd/commitdiff
Remove useless NO_EXT_LIB flag
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 18 Nov 2016 11:25:01 +0000 (12:25 +0100)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 18 Nov 2016 11:25:01 +0000 (12:25 +0100)
include/jlib.hrl
include/xmpp.hrl
rebar.config
src/ext_mod.erl

index 50a031334d07a572f30342db912cb260d25466fa..5a3c1634ee3b0cd67b3e9c634077b5fa9545e514 100644 (file)
 %%%----------------------------------------------------------------------
 
 -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">>,
index e1bdaeed06efbf363b6d8e80fc154d9b184e3425..f8a61590f555a9d84e49c75efd022033f69a0125 100644 (file)
@@ -9,11 +9,7 @@
 -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.
index fca8d19e2d0642f88fc0e0d0d2d9be4af9b92851..966b746c1f54d6d6575e794307a27f7aee4d5fd7 100644 (file)
@@ -1,4 +1,4 @@
-%%%-------------------------------------------------------------------
+%-------------------------------------------------------------------
 %%% @author Evgeniy Khramtsov <ekhramtsov@process-one.net>
 %%% @copyright (C) 2013-2016, Evgeniy Khramtsov
 %%% @doc
@@ -65,6 +65,7 @@
 {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'}},
index a2109e569abf6077ff12bfda05d063dc401b1abc..071fb827c3c6d277c9c4d36a3b80b2d580dcc87e 100644 (file)
@@ -520,11 +520,8 @@ compile(_Module, _Spec, DestDir) ->
     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