1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-25 10:50:08 +03:00

cmake: Stop using win32config.h

Move this file to the win32 subdirectory.
This commit is contained in:
Nick Wellnhofer 2024-06-22 02:34:36 +02:00
parent 84a4f84c1c
commit 4b6e68282b
4 changed files with 3 additions and 7 deletions

View File

@ -587,11 +587,7 @@ install(
COMPONENT development
)
if(MSVC)
configure_file(include/win32config.h config.h COPYONLY)
else()
configure_file(config.h.cmake.in config.h)
endif()
configure_file(config.h.cmake.in config.h)
configure_file(include/libxml/xmlversion.h.in libxml/xmlversion.h)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libxml/xmlversion.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libxml2/libxml COMPONENT development)

View File

@ -1,5 +1,5 @@
## Process this file with automake to produce Makefile.in
SUBDIRS=libxml private
EXTRA_DIST = win32config.h wsockcompat.h meson.build
EXTRA_DIST = wsockcompat.h meson.build

View File

@ -605,7 +605,7 @@ if (f) {
fso.CopyFile(makefile, new_makefile, true);
WScript.Echo("Created Makefile.");
// Create the config.h.
var confighsrc = "..\\include\\win32config.h";
var confighsrc = "win32config.h";
var configh = "..\\config.h";
var f = fso.FileExists(configh);
if (f) {