Skip to content

Commit

Permalink
Move pugixml.rc to scripts/
Browse files Browse the repository at this point in the history
This keeps src/ folder clean of auxiliary files only required for
special builds; note that CMakeLists.txt already depends on scripts/
(specifically for pkgconfig setup).
  • Loading branch information
zeux committed Sep 21, 2019
1 parent 6fb765c commit 6934b12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ mark_as_advanced(CLEAR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_INCLUDEDIR)

set(HEADERS src/pugixml.hpp src/pugiconfig.hpp)
set(SOURCES src/pugixml.cpp)

if(BUILD_SHARED_LIBS AND MSVC)
set(PUGIXML_WINDLL_SRCS src/win32/pugixml.rc)
set(PUGIXML_WINDLL_SRCS scripts/pugixml_dll.rc)
endif()

if(DEFINED BUILD_DEFINES)
Expand Down
12 changes: 5 additions & 7 deletions src/win32/pugixml.rc → scripts/pugixml_dll.rc
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#include <winver.h>
//#include "../pugixml.hpp"
// TODO these defines should be moved to ../pugixml.hpp
// but when included pugixml.hpp(131): error RC2104: undefined keyword or key name: typedef
# define PUGIXML_VERSION_MAJOR 1
# define PUGIXML_VERSION_MINOR 10
# define PUGIXML_VERSION_PATCH 0
# define PUGIXML_VERSION_NUMBER "1.10.0\0"

#define PUGIXML_VERSION_MAJOR 1
#define PUGIXML_VERSION_MINOR 10
#define PUGIXML_VERSION_PATCH 0
#define PUGIXML_VERSION_NUMBER "1.10.0\0"

#ifdef GCC_WINDRES
VS_VERSION_INFO VERSIONINFO
Expand Down

0 comments on commit 6934b12

Please sign in to comment.