From f77622067b80bd0e75400f7f5e4b1ae5f6884e8d Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Wed, 11 Mar 2015 14:14:28 +0100 Subject: Add packaging support for contributed modules This is a preliminary version that is tested to work with the packaging branch of ejabberd-modules repository This version lacks automatic configuration include at runtime --- include/jlib.hrl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/jlib.hrl b/include/jlib.hrl index e4c7ca641..73b83b1c2 100644 --- a/include/jlib.hrl +++ b/include/jlib.hrl @@ -19,7 +19,11 @@ %%%---------------------------------------------------------------------- -include("ns.hrl"). +-ifdef(NO_EXT_LIB). +-include("xml.hrl"). +-else. -include_lib("p1_xml/include/xml.hrl"). +-endif. -define(STANZA_ERROR(Code, Type, Condition), #xmlel{name = <<"error">>, -- cgit v1.2.3