From 23f144a7b78a4e7579fdefb1e6f7d2d71fb4d712 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 5 Oct 2020 18:44:59 +0200 Subject: [PATCH] pugixml: use pugixml in headeronly mode. --- code/CMakeLists.txt | 2 +- contrib/pugixml/src/pugiconfig.hpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 87af316bb..5bae6a3ff 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -869,7 +869,7 @@ ELSE() SET( Pugixml_SRCS ../contrib/pugixml/src/pugiconfig.hpp ../contrib/pugixml/src/pugixml.hpp - ../contrib/pugixml/src/pugixml.cpp + #../contrib/pugixml/src/pugixml.cpp ) SOURCE_GROUP( Contrib\\Pugixml FILES ${Pugixml_SRCS}) ENDIF() diff --git a/contrib/pugixml/src/pugiconfig.hpp b/contrib/pugixml/src/pugiconfig.hpp index 920dfbc54..065b3c8bb 100644 --- a/contrib/pugixml/src/pugiconfig.hpp +++ b/contrib/pugixml/src/pugiconfig.hpp @@ -30,10 +30,10 @@ // #define PUGIXML_NO_EXCEPTIONS // Set this to control attributes for public classes/functions, i.e.: -#ifdef _WIN32 -#define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL -#define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL -#endif +//#ifdef _WIN32 +//#define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL +//#define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL +//#endif // #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 @@ -43,10 +43,10 @@ // #define PUGIXML_MEMORY_XPATH_PAGE_SIZE 4096 // Uncomment this to switch to header-only version -// #define PUGIXML_HEADER_ONLY +#define PUGIXML_HEADER_ONLY // Uncomment this to enable long long support -// #define PUGIXML_HAS_LONG_LONG +//#define PUGIXML_HAS_LONG_LONG #endif