arabica/SAX/saxlib.cpp

62 lines
1.3 KiB
C++
Raw Normal View History

/*
* SAXlib.cpp - Pulls in the appropriate bits of the library, depending
2002-07-16 14:33:29 +02:00
* on the configured options. The required libraries built within this
* package are:
* SAXlib
* Utility
* - the selected parser(s)
*
* $Id$
*/
#ifdef _MSC_VER
// turn off the useless "template name is too long" warning
#pragma warning(disable: 4786)
#endif
#define NO_DEFAULT_PARSER
#include <SAX/XMLReader.h>
#ifdef USE_LIBXML2
#pragma message("Pulling in libxml2")
#include <SAX/wrappers/saxlibxml2.cpp>
// automagically link libxml2 if using VC++
2002-07-16 14:33:29 +02:00
#ifdef _MSC_VER
#pragma comment(lib, "libxml2.lib")
#endif
#endif
#ifdef USE_MSXML
2002-07-16 14:33:29 +02:00
#ifndef _MSC_VER
#error "USE_MSXML is only valid for VisualC++ builds"
#else
#pragma message("Nothing to pull in for MSXML")
2002-07-16 14:33:29 +02:00
#endif
// nothing extra to pull in for MSXML
#endif
#ifdef USE_XERCES
2002-07-16 14:33:29 +02:00
// automagically link Xerces if using VC++
#ifndef _MSC_VER
#pragma message("Nothing to pull in for Xerces")
2002-07-16 14:33:29 +02:00
#else
#pragma message("Pulling in Xerces")
#pragma comment(lib, "xerces-c_1.lib")
#endif
#endif
#ifdef USE_GARDEN
#pragma message("Nothing to pull in for Garden")
// nothing extra to pull in for Garden
#endif
#ifdef USE_EXPAT
#pragma message("Pulling in Expat")
#include <SAX/wrappers/saxexpat.cpp>
#ifdef _MSC_VER
// automagically link expat if using VC++
#pragma comment(lib, "expat.lib")
#endif
#endif
// end of file