no message

This commit is contained in:
jez_higgins 2002-09-02 10:36:06 +00:00
parent 52d4555fac
commit 09d0ca7c89
2 changed files with 95 additions and 0 deletions

71
SAX/ParserConfig.tpl Normal file
View file

@ -0,0 +1,71 @@
#define pasty(m, n) m##n
#define include pasty(#, include)
#define ifdef pasty(#, ifdef)
#define ifndef pasty(#, ifndef)
#define endif pasty(#, endif)
#define define pasty(#, define)
#define message pasty(#, pragma message)
#define undef pasty(#, undef)
#define error pasty(#, error)
#define else pasty(#, else)
#define comment pasty(#, pragma comment)
ifndef ParserConfig_h
define ParserConfig_h
#ifdef USE_LIBXML2
message("Including libxml2")
include <SAX/wrappers/saxlibxml2.h>
undef DEF_SAX_P
define DEF_SAX_P libxml2_wrapper
#ifdef _MSC_VER
comment(lib, "libxml2.lib")
#endif
#endif
#ifdef USE_MSXML
message("Including MSXML")
include <SAX/wrappers/saxmsxml2.h>
undef DEF_SAX_P
define DEF_SAX_P msxml2_wrapper
#endif
#ifdef USE_XERCES
pragma message("Including Xerces")
include <SAX/wrappers/saxxerces.h>
undef DEF_SAX_P
define DEF_SAX_P xerces_wrapper
#ifdef _MSC_VER
comment(lib, "xerces-c_1.lib")
#endif
#endif
#ifdef USE_GARDEN
message("Including Garden")
include <SAX/parsers/saxgarden.h>
undef DEF_SAX_P
define DEF_SAX_P Garden
#endif
#ifdef USE_EXPAT
message("Including Expat")
include <SAX/wrappers/saxexpat.h>
undef DEF_SAX_P
define DEF_SAX_P expat_wrapper
#ifdef _MSC_VER
comment(lib, "expat.lib")
#endif
#endif
ifndef NO_DEFAULT_PARSER
ifdef DEF_SAX_P
namespace SAX
{
template<class string_type>
class XMLReader : public DEF_SAX_P<string_type> { };
} // namespace SAX
else
error "No default parser defined."
endif
endif
undef DEF_P
endif // ParserConfig_h

View file

@ -129,6 +129,10 @@ SOURCE=.\Parser.h
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\ParserConfig.h
# End Source File
# Begin Source File
SOURCE=.\SAXException.h SOURCE=.\SAXException.h
# End Source File # End Source File
# Begin Source File # Begin Source File
@ -313,6 +317,26 @@ SOURCE=.\parsers\saxgarden.h
# End Group # End Group
# Begin Source File # Begin Source File
SOURCE=.\ParserConfig.tpl
!IF "$(CFG)" == "SAXlib - Win32 Release"
!ELSEIF "$(CFG)" == "SAXlib - Win32 Debug"
# PROP Ignore_Default_Tool 1
# Begin Custom Build
InputPath=.\ParserConfig.tpl
"ParserConfig.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /TC /D USE_EXPAT /EP ParserConfig.tpl > ParserConfig.h
# End Custom Build
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\saxlib.cpp SOURCE=.\saxlib.cpp
# End Source File # End Source File
# End Target # End Target