pugixml: use pugixml in headeronly mode.

pull/2966/head
Kim Kulling 2020-10-05 18:44:59 +02:00
parent 9303fb31f6
commit 23f144a7b7
2 changed files with 7 additions and 7 deletions

View File

@ -869,7 +869,7 @@ ELSE()
SET( Pugixml_SRCS SET( Pugixml_SRCS
../contrib/pugixml/src/pugiconfig.hpp ../contrib/pugixml/src/pugiconfig.hpp
../contrib/pugixml/src/pugixml.hpp ../contrib/pugixml/src/pugixml.hpp
../contrib/pugixml/src/pugixml.cpp #../contrib/pugixml/src/pugixml.cpp
) )
SOURCE_GROUP( Contrib\\Pugixml FILES ${Pugixml_SRCS}) SOURCE_GROUP( Contrib\\Pugixml FILES ${Pugixml_SRCS})
ENDIF() ENDIF()

View File

@ -30,10 +30,10 @@
// #define PUGIXML_NO_EXCEPTIONS // #define PUGIXML_NO_EXCEPTIONS
// Set this to control attributes for public classes/functions, i.e.: // Set this to control attributes for public classes/functions, i.e.:
#ifdef _WIN32 //#ifdef _WIN32
#define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL //#define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL
#define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL //#define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL
#endif //#endif
// #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall // #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall
// In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead // In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead
@ -43,10 +43,10 @@
// #define PUGIXML_MEMORY_XPATH_PAGE_SIZE 4096 // #define PUGIXML_MEMORY_XPATH_PAGE_SIZE 4096
// Uncomment this to switch to header-only version // Uncomment this to switch to header-only version
// #define PUGIXML_HEADER_ONLY #define PUGIXML_HEADER_ONLY
// Uncomment this to enable long long support // Uncomment this to enable long long support
// #define PUGIXML_HAS_LONG_LONG //#define PUGIXML_HAS_LONG_LONG
#endif #endif