From 19f2fae9af00ff03ee4e6aadc3cda0da4e5de29b Mon Sep 17 00:00:00 2001 From: fangyunzhong Date: Sat, 11 Feb 2023 07:56:29 +0000 Subject: [PATCH] =?UTF-8?q?libxml2=E7=BC=96=E8=AF=91=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=8C=87=E5=90=91thirdparty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangyunzhong --- BUILD.gn | 7 +- build/libxml2/BUILD.gn | 136 ------ build/libxml2/CMakeLists.txt | 3 +- build/libxml2/config.h.cmake.in | 288 ------------- build/libxml2/win32/include/config.h | 288 ------------- .../libxml2/win32/include/libxml/xmlversion.h | 404 ------------------ 6 files changed, 3 insertions(+), 1123 deletions(-) delete mode 100644 build/libxml2/BUILD.gn delete mode 100644 build/libxml2/config.h.cmake.in delete mode 100644 build/libxml2/win32/include/config.h delete mode 100644 build/libxml2/win32/include/libxml/xmlversion.h diff --git a/BUILD.gn b/BUILD.gn index b452b1a..3b78419 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -54,13 +54,8 @@ ohos_executable("restool") { ] include_dirs = [] - if (is_mingw) { - include_dirs += - [ "//developtools/global_resource_tool/build/libxml2/win32/include" ] - } include_dirs += [ "include", - "//third_party/libxml2/include", "//third_party/jsoncpp/include", "//third_party/sqlite/include", "//third_party/bounds_checking_function/include", @@ -69,8 +64,8 @@ ohos_executable("restool") { deps = [ "//developtools/global_resource_tool/build/bounds_checking_function:restool_bounds_checking_function", "//developtools/global_resource_tool/build/jsoncpp:restool_jsoncpp", - "//developtools/global_resource_tool/build/libxml2:restool_libxml2", "//developtools/global_resource_tool/build/sqlite3:restool_sqlite", + "//third_party/libxml2:static_libxml2", ] cflags = [ "-std=c++17" ] diff --git a/build/libxml2/BUILD.gn b/build/libxml2/BUILD.gn deleted file mode 100644 index 4ced9a4..0000000 --- a/build/libxml2/BUILD.gn +++ /dev/null @@ -1,136 +0,0 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -import("//build/ohos.gni") -LIBXML_PATH = "//third_party/libxml2" - -config("restool_libxml2_config") { - include_dirs = [] - if (is_mingw) { - include_dirs += - [ "//developtools/global_resource_tool/build/libxml2/win32/include" ] - defines = [ "LIBXML_STATIC" ] - } else if (is_mac) { - defines = [ "LIBXML_THREAD_ENABLED" ] - } - - include_dirs += [ "${LIBXML_PATH}/include" ] - - cflags_cc = [ "-std=c++17" ] - - cflags_c = [ - "-Wno-implicit-fallthrough", - "-Wno-implicit-function-declaration", - "-Wno-int-conversion", - ] -} - -ohos_static_library("restool_libxml2") { - sources = [ - "${LIBXML_PATH}/DOCBparser.c", - "${LIBXML_PATH}/HTMLparser.c", - "${LIBXML_PATH}/HTMLtree.c", - "${LIBXML_PATH}/SAX.c", - "${LIBXML_PATH}/SAX2.c", - "${LIBXML_PATH}/buf.c", - "${LIBXML_PATH}/c14n.c", - "${LIBXML_PATH}/catalog.c", - "${LIBXML_PATH}/chvalid.c", - "${LIBXML_PATH}/debugXML.c", - "${LIBXML_PATH}/dict.c", - "${LIBXML_PATH}/encoding.c", - "${LIBXML_PATH}/entities.c", - "${LIBXML_PATH}/error.c", - "${LIBXML_PATH}/globals.c", - "${LIBXML_PATH}/hash.c", - "${LIBXML_PATH}/include/libxml/DOCBparser.h", - "${LIBXML_PATH}/include/libxml/HTMLparser.h", - "${LIBXML_PATH}/include/libxml/HTMLtree.h", - "${LIBXML_PATH}/include/libxml/SAX.h", - "${LIBXML_PATH}/include/libxml/SAX2.h", - "${LIBXML_PATH}/include/libxml/c14n.h", - "${LIBXML_PATH}/include/libxml/catalog.h", - "${LIBXML_PATH}/include/libxml/chvalid.h", - "${LIBXML_PATH}/include/libxml/debugXML.h", - "${LIBXML_PATH}/include/libxml/dict.h", - "${LIBXML_PATH}/include/libxml/encoding.h", - "${LIBXML_PATH}/include/libxml/entities.h", - "${LIBXML_PATH}/include/libxml/globals.h", - "${LIBXML_PATH}/include/libxml/hash.h", - "${LIBXML_PATH}/include/libxml/list.h", - "${LIBXML_PATH}/include/libxml/nanoftp.h", - "${LIBXML_PATH}/include/libxml/nanohttp.h", - "${LIBXML_PATH}/include/libxml/parser.h", - "${LIBXML_PATH}/include/libxml/parserInternals.h", - "${LIBXML_PATH}/include/libxml/pattern.h", - "${LIBXML_PATH}/include/libxml/relaxng.h", - "${LIBXML_PATH}/include/libxml/schemasInternals.h", - "${LIBXML_PATH}/include/libxml/schematron.h", - "${LIBXML_PATH}/include/libxml/threads.h", - "${LIBXML_PATH}/include/libxml/tree.h", - "${LIBXML_PATH}/include/libxml/uri.h", - "${LIBXML_PATH}/include/libxml/valid.h", - "${LIBXML_PATH}/include/libxml/xinclude.h", - "${LIBXML_PATH}/include/libxml/xlink.h", - "${LIBXML_PATH}/include/libxml/xmlIO.h", - "${LIBXML_PATH}/include/libxml/xmlautomata.h", - "${LIBXML_PATH}/include/libxml/xmlerror.h", - "${LIBXML_PATH}/include/libxml/xmlexports.h", - "${LIBXML_PATH}/include/libxml/xmlmemory.h", - "${LIBXML_PATH}/include/libxml/xmlmodule.h", - "${LIBXML_PATH}/include/libxml/xmlreader.h", - "${LIBXML_PATH}/include/libxml/xmlregexp.h", - "${LIBXML_PATH}/include/libxml/xmlsave.h", - "${LIBXML_PATH}/include/libxml/xmlschemas.h", - "${LIBXML_PATH}/include/libxml/xmlschemastypes.h", - "${LIBXML_PATH}/include/libxml/xmlstring.h", - "${LIBXML_PATH}/include/libxml/xmlunicode.h", - "${LIBXML_PATH}/include/libxml/xmlwriter.h", - "${LIBXML_PATH}/include/libxml/xpath.h", - "${LIBXML_PATH}/include/libxml/xpathInternals.h", - "${LIBXML_PATH}/include/libxml/xpointer.h", - "${LIBXML_PATH}/legacy.c", - "${LIBXML_PATH}/list.c", - "${LIBXML_PATH}/nanoftp.c", - "${LIBXML_PATH}/nanohttp.c", - "${LIBXML_PATH}/parser.c", - "${LIBXML_PATH}/parserInternals.c", - "${LIBXML_PATH}/pattern.c", - "${LIBXML_PATH}/relaxng.c", - "${LIBXML_PATH}/schematron.c", - "${LIBXML_PATH}/threads.c", - "${LIBXML_PATH}/tree.c", - "${LIBXML_PATH}/uri.c", - "${LIBXML_PATH}/valid.c", - "${LIBXML_PATH}/xinclude.c", - "${LIBXML_PATH}/xlink.c", - "${LIBXML_PATH}/xmlIO.c", - "${LIBXML_PATH}/xmlmemory.c", - "${LIBXML_PATH}/xmlmodule.c", - "${LIBXML_PATH}/xmlreader.c", - "${LIBXML_PATH}/xmlregexp.c", - "${LIBXML_PATH}/xmlsave.c", - "${LIBXML_PATH}/xmlschemas.c", - "${LIBXML_PATH}/xmlschemastypes.c", - "${LIBXML_PATH}/xmlstring.c", - "${LIBXML_PATH}/xmlunicode.c", - "${LIBXML_PATH}/xmlwriter.c", - "${LIBXML_PATH}/xpath.c", - "${LIBXML_PATH}/xpointer.c", - "${LIBXML_PATH}/xzlib.c", - ] - - public_configs = [ ":restool_libxml2_config" ] - - subsystem_name = "developtools" - part_name = "global_resource_tool" -} diff --git a/build/libxml2/CMakeLists.txt b/build/libxml2/CMakeLists.txt index f54e26e..6f3b819 100644 --- a/build/libxml2/CMakeLists.txt +++ b/build/libxml2/CMakeLists.txt @@ -243,7 +243,8 @@ endif() file(COPY ${libxml2_dir} DESTINATION ./) set(libxml2_original ${CMAKE_CURRENT_BINARY_DIR}/libxml2) include_directories(${libxml2_original}/include) -configure_file(config.h.cmake.in ${libxml2_original}/config.h) +set(third_party_libxml2 ${CMAKE_CURRENT_BINARY_DIR}/../../../../third_party/libxml2) +configure_file(${third_party_libxml2}/config.h.cmake.in ${third_party_libxml2}/include/config.h) set(libxml2_original_header ${libxml2_original}/include/libxml/c14n.h ${libxml2_original}/include/libxml/catalog.h diff --git a/build/libxml2/config.h.cmake.in b/build/libxml2/config.h.cmake.in deleted file mode 100644 index 22b3c92..0000000 --- a/build/libxml2/config.h.cmake.in +++ /dev/null @@ -1,288 +0,0 @@ -/* config.h. Generated from config.h.in by configure. */ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define if __attribute__((destructor)) is accepted */ -#cmakedefine ATTRIBUTE_DESTRUCTOR 1 - -/* Type cast for the gethostbyname() argument */ -#cmakedefine GETHOSTBYNAME_ARG_CAST @GETHOSTBYNAME_ARG_CAST@ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_ARPA_INET_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_ARPA_NAMESER_H 1 - -/* Whether struct sockaddr::__ss_family exists */ -#cmakedefine HAVE_BROKEN_SS_FAMILY 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_CTYPE_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_DIRENT_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_DLFCN_H 1 - -/* Have dlopen based dso */ -#cmakedefine HAVE_DLOPEN 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_DL_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_ERRNO_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_FCNTL_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_FLOAT_H 1 - -/* Define to 1 if you have the `fprintf' function. */ -#cmakedefine HAVE_FPRINTF 1 - -/* Define to 1 if you have the `ftime' function. */ -#cmakedefine HAVE_FTIME 1 - -/* Define if getaddrinfo is there */ -#cmakedefine HAVE_GETADDRINFO 1 - -/* Define to 1 if you have the `gettimeofday' function. */ -#cmakedefine HAVE_GETTIMEOFDAY 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_INTTYPES_H 1 - -/* Define to 1 if you have the `isascii' function. */ -#cmakedefine HAVE_ISASCII 1 - -/* Define if isinf is there */ -#cmakedefine HAVE_ISINF 1 - -/* Define if isnan is there */ -#cmakedefine HAVE_ISNAN 1 - -/* Define if history library is there (-lhistory) */ -#cmakedefine HAVE_LIBHISTORY 1 - -/* Define if pthread library is there (-lpthread) */ -#cmakedefine HAVE_LIBPTHREAD 1 - -/* Define if readline library is there (-lreadline) */ -#cmakedefine HAVE_LIBREADLINE 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_LIMITS_H 1 - -/* Define to 1 if you have the `localtime' function. */ -#cmakedefine HAVE_LOCALTIME 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_LZMA_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_MALLOC_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_MATH_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_MEMORY_H 1 - -/* Define to 1 if you have the `mmap' function. */ -#cmakedefine HAVE_MMAP 1 - -/* Define to 1 if you have the `munmap' function. */ -#cmakedefine HAVE_MUNMAP 1 - -/* mmap() is no good without munmap() */ -#if defined(HAVE_MMAP) && !defined(HAVE_MUNMAP) -# undef /**/ HAVE_MMAP -#endif - -/* Define to 1 if you have the header file, and it defines `DIR'. */ -#cmakedefine HAVE_NDIR_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_NETDB_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_NETINET_IN_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_POLL_H 1 - -/* Define to 1 if you have the `printf' function. */ -#cmakedefine HAVE_PRINTF 1 - -/* Define if is there */ -#cmakedefine HAVE_PTHREAD_H 1 - -/* Define to 1 if you have the `putenv' function. */ -#cmakedefine HAVE_PUTENV 1 - -/* Define to 1 if you have the `rand' function. */ -#cmakedefine HAVE_RAND 1 - -/* Define to 1 if you have the `rand_r' function. */ -#cmakedefine HAVE_RAND_R 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_RESOLV_H 1 - -/* Have shl_load based dso */ -#cmakedefine HAVE_SHLLOAD 1 - -/* Define to 1 if you have the `signal' function. */ -#cmakedefine HAVE_SIGNAL 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SIGNAL_H 1 - -/* Define to 1 if you have the `snprintf' function. */ -#cmakedefine HAVE_SNPRINTF 1 - -/* Define to 1 if you have the `sprintf' function. */ -#cmakedefine HAVE_SPRINTF 1 - -/* Define to 1 if you have the `srand' function. */ -#cmakedefine HAVE_SRAND 1 - -/* Define to 1 if you have the `sscanf' function. */ -#cmakedefine HAVE_SSCANF 1 - -/* Define to 1 if you have the `stat' function. */ -#cmakedefine HAVE_STAT 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDARG_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDINT_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDLIB_H 1 - -/* Define to 1 if you have the `strftime' function. */ -#cmakedefine HAVE_STRFTIME 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STRINGS_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STRING_H 1 - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -#cmakedefine HAVE_SYS_DIR_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_MMAN_H 1 - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -#cmakedefine HAVE_SYS_NDIR_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_SELECT_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_SOCKET_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_STAT_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_TIMEB_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_TIME_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have the `time' function. */ -#cmakedefine HAVE_TIME 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_TIME_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_UNISTD_H 1 - -/* Whether va_copy() is available */ -#cmakedefine HAVE_VA_COPY 1 - -/* Define to 1 if you have the `vfprintf' function. */ -#cmakedefine HAVE_VFPRINTF 1 - -/* Define to 1 if you have the `vsnprintf' function. */ -#cmakedefine HAVE_VSNPRINTF 1 - -/* Define to 1 if you have the `vsprintf' function. */ -#cmakedefine HAVE_VSPRINTF 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_ZLIB_H 1 - -/* Whether __va_copy() is available */ -#cmakedefine HAVE___VA_COPY 1 - -/* Define as const if the declaration of iconv() needs const. */ -#define ICONV_CONST @ICONV_CONST@ - -/* Define to the sub-directory where libtool stores uninstalled libraries. */ -#cmakedefine LT_OBJDIR "@LT_OBJDIR@" - -/* Name of package */ -#define PACKAGE "@PACKAGE@" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "@PACKAGE_NAME@" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "@PACKAGE_STRING@" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "@PACKAGE_TARNAME@" - -/* Define to the home page for this package. */ -#define PACKAGE_URL "@PACKAGE_URL@" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "@PACKAGE_VERSION@" - -/* Type cast for the send() function 2nd arg */ -#cmakedefine SEND_ARG2_CAST @SEND_ARG2_CAST@ - -/* Define to 1 if you have the ANSI C header files. */ -#cmakedefine STDC_HEADERS 1 - -/* Support for IPv6 */ -#cmakedefine SUPPORT_IP6 1 - -/* Define if va_list is an array type */ -#cmakedefine VA_LIST_IS_ARRAY 1 - -/* Version number of package */ -#cmakedefine VERSION "@VERSION@" - -/* Determine what socket length (socklen_t) data type is */ -#cmakedefine XML_SOCKLEN_T @XML_SOCKLEN_T@ - -/* Define for Solaris 2.5.1 so the uint32_t typedef from , - , or is not used. If the typedef were allowed, the - #define below would cause a syntax error. */ -#cmakedefine _UINT32_T @_UINT32_T@ - -/* ss_family is not defined here, use __ss_family instead */ -#cmakedefine ss_family @ss_family@ - -/* Define to the type of an unsigned integer type of width exactly 32 bits if - such a type exists and the standard includes do not define it. */ -#cmakedefine uint32_t @uint32_t@ diff --git a/build/libxml2/win32/include/config.h b/build/libxml2/win32/include/config.h deleted file mode 100644 index 5611fd8..0000000 --- a/build/libxml2/win32/include/config.h +++ /dev/null @@ -1,288 +0,0 @@ -/* config.h. Generated from config.h.in by configure. */ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define if __attribute__((destructor)) is accepted */ -#define ATTRIBUTE_DESTRUCTOR 1 - -/* Type cast for the gethostbyname() argument */ -#define GETHOSTBYNAME_ARG_CAST (char *) - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_ARPA_INET_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_ARPA_NAMESER_H */ - -/* Whether struct sockaddr::__ss_family exists */ -/* #undef HAVE_BROKEN_SS_FAMILY */ - -/* Define to 1 if you have the header file. */ -#define HAVE_CTYPE_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_DIRENT_H 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_DLFCN_H */ - -/* Have dlopen based dso */ -/* #undef HAVE_DLOPEN */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_DL_H */ - -/* Define to 1 if you have the header file. */ -#define HAVE_ERRNO_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_FCNTL_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_FLOAT_H 1 - -/* Define to 1 if you have the `fprintf' function. */ -#define HAVE_FPRINTF 1 - -/* Define to 1 if you have the `ftime' function. */ -#define HAVE_FTIME 1 - -/* Define if getaddrinfo is there */ -/* #undef HAVE_GETADDRINFO */ - -/* Define to 1 if you have the `gettimeofday' function. */ -#define HAVE_GETTIMEOFDAY 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_INTTYPES_H 1 - -/* Define to 1 if you have the `isascii' function. */ -#define HAVE_ISASCII 1 - -/* Define if isinf is there */ -/* #undef HAVE_ISINF */ - -/* Define if isnan is there */ -#define HAVE_ISNAN 1 - -/* Define if history library is there (-lhistory) */ -/* #undef HAVE_LIBHISTORY */ - -/* Define if pthread library is there (-lpthread) */ -#define HAVE_LIBPTHREAD 1 - -/* Define if readline library is there (-lreadline) */ -/* #undef HAVE_LIBREADLINE */ - -/* Define to 1 if you have the header file. */ -#define HAVE_LIMITS_H 1 - -/* Define to 1 if you have the `localtime' function. */ -#define HAVE_LOCALTIME 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_LZMA_H */ - -/* Define to 1 if you have the header file. */ -#define HAVE_MALLOC_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_MATH_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_MEMORY_H 1 - -/* Define to 1 if you have the `mmap' function. */ -/* #undef HAVE_MMAP */ - -/* Define to 1 if you have the `munmap' function. */ -/* #undef HAVE_MUNMAP */ - -/* mmap() is no good without munmap() */ -#if defined(HAVE_MMAP) && !defined(HAVE_MUNMAP) -# undef /**/ HAVE_MMAP -#endif - -/* Define to 1 if you have the header file, and it defines `DIR'. */ -/* #undef HAVE_NDIR_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_NETDB_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_NETINET_IN_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_POLL_H */ - -/* Define to 1 if you have the `printf' function. */ -#define HAVE_PRINTF 1 - -/* Define if is there */ -#define HAVE_PTHREAD_H 1 - -/* Define to 1 if you have the `putenv' function. */ -#define HAVE_PUTENV 1 - -/* Define to 1 if you have the `rand' function. */ -#define HAVE_RAND 1 - -/* Define to 1 if you have the `rand_r' function. */ -/* #undef HAVE_RAND_R */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_RESOLV_H */ - -/* Have shl_load based dso */ -/* #undef HAVE_SHLLOAD */ - -/* Define to 1 if you have the `signal' function. */ -#define HAVE_SIGNAL 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SIGNAL_H 1 - -/* Define to 1 if you have the `snprintf' function. */ -#define HAVE_SNPRINTF 1 - -/* Define to 1 if you have the `sprintf' function. */ -#define HAVE_SPRINTF 1 - -/* Define to 1 if you have the `srand' function. */ -#define HAVE_SRAND 1 - -/* Define to 1 if you have the `sscanf' function. */ -#define HAVE_SSCANF 1 - -/* Define to 1 if you have the `stat' function. */ -#define HAVE_STAT 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDARG_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDINT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STDLIB_H 1 - -/* Define to 1 if you have the `strftime' function. */ -#define HAVE_STRFTIME 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRINGS_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_STRING_H 1 - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -/* #undef HAVE_SYS_DIR_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_MMAN_H */ - -/* Define to 1 if you have the header file, and it defines `DIR'. - */ -/* #undef HAVE_SYS_NDIR_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_SELECT_H */ - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_SOCKET_H */ - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_STAT_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TIMEB_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TIME_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have the `time' function. */ -#define HAVE_TIME 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_TIME_H 1 - -/* Define to 1 if you have the header file. */ -#define HAVE_UNISTD_H 1 - -/* Whether va_copy() is available */ -/* #undef HAVE_VA_COPY */ - -/* Define to 1 if you have the `vfprintf' function. */ -#define HAVE_VFPRINTF 1 - -/* Define to 1 if you have the `vsnprintf' function. */ -#define HAVE_VSNPRINTF 1 - -/* Define to 1 if you have the `vsprintf' function. */ -#define HAVE_VSPRINTF 1 - -/* Define to 1 if you have the header file. */ -/* #undef HAVE_ZLIB_H */ - -/* Whether __va_copy() is available */ -/* #undef HAVE___VA_COPY */ - -/* Define as const if the declaration of iconv() needs const. */ -#define ICONV_CONST const - -/* Define to the sub-directory where libtool stores uninstalled libraries. */ -#define LT_OBJDIR ".libs/" - -/* Name of package */ -#define PACKAGE "" - -/* Define to the address where bug reports for this package should be sent. */ -#define PACKAGE_BUGREPORT "" - -/* Define to the full name of this package. */ -#define PACKAGE_NAME "" - -/* Define to the full name and version of this package. */ -#define PACKAGE_STRING "" - -/* Define to the one symbol short name of this package. */ -#define PACKAGE_TARNAME "" - -/* Define to the home page for this package. */ -#define PACKAGE_URL "" - -/* Define to the version of this package. */ -#define PACKAGE_VERSION "" - -/* Type cast for the send() function 2nd arg */ -#define SEND_ARG2_CAST (char *) - -/* Define to 1 if you have the ANSI C header files. */ -#define STDC_HEADERS 1 - -/* Support for IPv6 */ -/* #undef SUPPORT_IP6 */ - -/* Define if va_list is an array type */ -/* #undef VA_LIST_IS_ARRAY */ - -/* Version number of package */ -#define VERSION "2.9.10" - -/* Determine what socket length (socklen_t) data type is */ -#define XML_SOCKLEN_T int - -/* Define for Solaris 2.5.1 so the uint32_t typedef from , - , or is not used. If the typedef were allowed, the - #define below would cause a syntax error. */ -/* #undef _UINT32_T */ - -/* ss_family is not defined here, use __ss_family instead */ -/* #undef ss_family */ - -/* Define to the type of an unsigned integer type of width exactly 32 bits if - such a type exists and the standard includes do not define it. */ -/* #undef uint32_t */ diff --git a/build/libxml2/win32/include/libxml/xmlversion.h b/build/libxml2/win32/include/libxml/xmlversion.h deleted file mode 100644 index 0457647..0000000 --- a/build/libxml2/win32/include/libxml/xmlversion.h +++ /dev/null @@ -1,404 +0,0 @@ -/* - * Summary: compile-time version informations - * Description: compile-time version informations for the XML library - * - * Copy: See Copyright for the status of this software. - * - * Author: Daniel Veillard - */ - -#ifndef __XML_VERSION_H__ -#define __XML_VERSION_H__ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * use those to be sure nothing nasty will happen if - * your library and includes mismatch - */ -#ifndef LIBXML2_COMPILING_MSCCDEF -XMLPUBFUN void XMLCALL xmlCheckVersion(int version); -#endif /* LIBXML2_COMPILING_MSCCDEF */ - -/** - * LIBXML_DOTTED_VERSION: - * - * the version string like "1.2.3" - */ -#define LIBXML_DOTTED_VERSION "2.9.10" - -/** - * LIBXML_VERSION: - * - * the version number: 1.2.3 value is 10203 - */ -#define LIBXML_VERSION 209010 - -/** - * LIBXML_VERSION_STRING: - * - * the version number string, 1.2.3 value is "10203" - */ -#define LIBXML_VERSION_STRING "209010" - -/** - * LIBXML_VERSION_EXTRA: - * - * extra version information, used to show a CVS compilation - */ -#define LIBXML_VERSION_EXTRA "" - -/** - * LIBXML_TEST_VERSION: - * - * Macro to check that the libxml version in use is compatible with - * the version the software has been compiled against - */ -#define LIBXML_TEST_VERSION xmlCheckVersion(209010); - -#ifndef VMS -#if 1 -/** - * WITHOUT_TRIO: - * - * defined if the trio support should not be configured in - */ -#define WITHOUT_TRIO -#endif -#else /* VMS */ -/** - * WITH_TRIO: - * - * defined if the trio support need to be configured in - */ -#define WITH_TRIO 1 -#endif /* VMS */ - -/** - * LIBXML_THREAD_ENABLED: - * - * Whether the thread support is configured in - */ -#if 1 -#define LIBXML_THREAD_ENABLED -#endif - -/** - * LIBXML_TREE_ENABLED: - * - * Whether the DOM like tree manipulation API support is configured in - */ -#if 1 -#define LIBXML_TREE_ENABLED -#endif - -/** - * LIBXML_OUTPUT_ENABLED: - * - * Whether the serialization/saving support is configured in - */ -#if 1 -#define LIBXML_OUTPUT_ENABLED -#endif - -/** - * LIBXML_PUSH_ENABLED: - * - * Whether the push parsing interfaces are configured in - */ -#if 1 -#define LIBXML_PUSH_ENABLED -#endif - -/** - * LIBXML_READER_ENABLED: - * - * Whether the xmlReader parsing interface is configured in - */ -#if 1 -#define LIBXML_READER_ENABLED -#endif - -/** - * LIBXML_PATTERN_ENABLED: - * - * Whether the xmlPattern node selection interface is configured in - */ -#if 1 -#define LIBXML_PATTERN_ENABLED -#endif - -/** - * LIBXML_WRITER_ENABLED: - * - * Whether the xmlWriter saving interface is configured in - */ -#if 1 -#define LIBXML_WRITER_ENABLED -#endif - -/** - * LIBXML_SAX1_ENABLED: - * - * Whether the older SAX1 interface is configured in - */ -#if 1 -#define LIBXML_SAX1_ENABLED -#endif - -/** - * LIBXML_FTP_ENABLED: - * - * Whether the FTP support is configured in - */ -#if 1 -#define LIBXML_FTP_ENABLED -#endif - -/** - * LIBXML_HTTP_ENABLED: - * - * Whether the HTTP support is configured in - */ -#if 1 -#define LIBXML_HTTP_ENABLED -#endif - -/** - * LIBXML_VALID_ENABLED: - * - * Whether the DTD validation support is configured in - */ -#if 1 -#define LIBXML_VALID_ENABLED -#endif - -/** - * LIBXML_HTML_ENABLED: - * - * Whether the HTML support is configured in - */ -#if 1 -#define LIBXML_HTML_ENABLED -#endif - -/** - * LIBXML_LEGACY_ENABLED: - * - * Whether the deprecated APIs are compiled in for compatibility - */ -#if 1 -#define LIBXML_LEGACY_ENABLED -#endif - -/** - * LIBXML_C14N_ENABLED: - * - * Whether the Canonicalization support is configured in - */ -#if 1 -#define LIBXML_C14N_ENABLED -#endif - -/** - * LIBXML_CATALOG_ENABLED: - * - * Whether the Catalog support is configured in - */ -#if 1 -#define LIBXML_CATALOG_ENABLED -#endif - -/** - * LIBXML_DOCB_ENABLED: - * - * Whether the SGML Docbook support is configured in - */ -#if 1 -#define LIBXML_DOCB_ENABLED -#endif - -/** - * LIBXML_XPATH_ENABLED: - * - * Whether XPath is configured in - */ -#if 1 -#define LIBXML_XPATH_ENABLED -#endif - -/** - * LIBXML_XPTR_ENABLED: - * - * Whether XPointer is configured in - */ -#if 1 -#define LIBXML_XPTR_ENABLED -#endif - -/** - * LIBXML_XINCLUDE_ENABLED: - * - * Whether XInclude is configured in - */ -#if 1 -#define LIBXML_XINCLUDE_ENABLED -#endif - -/** - * LIBXML_ISO8859X_ENABLED: - * - * Whether ISO-8859-* support is made available in case iconv is not - */ -#if 1 -#define LIBXML_ISO8859X_ENABLED -#endif - -/** - * LIBXML_DEBUG_ENABLED: - * - * Whether Debugging module is configured in - */ -#if 1 -#define LIBXML_DEBUG_ENABLED -#endif - -/** - * LIBXML_UNICODE_ENABLED: - * - * Whether the Unicode related interfaces are compiled in - */ -#if 1 -#define LIBXML_UNICODE_ENABLED -#endif - -/** - * LIBXML_REGEXP_ENABLED: - * - * Whether the regular expressions interfaces are compiled in - */ -#if 1 -#define LIBXML_REGEXP_ENABLED -#endif - -/** - * LIBXML_AUTOMATA_ENABLED: - * - * Whether the automata interfaces are compiled in - */ -#if 1 -#define LIBXML_AUTOMATA_ENABLED -#endif - -/** - * LIBXML_SCHEMAS_ENABLED: - * - * Whether the Schemas validation interfaces are compiled in - */ -#if 1 -#define LIBXML_SCHEMAS_ENABLED -#endif - -/** - * LIBXML_SCHEMATRON_ENABLED: - * - * Whether the Schematron validation interfaces are compiled in - */ -#if 1 -#define LIBXML_SCHEMATRON_ENABLED -#endif - -/** - * LIBXML_MODULES_ENABLED: - * - * Whether the module interfaces are compiled in - */ -#if 1 -#define LIBXML_MODULES_ENABLED -/** - * LIBXML_MODULE_EXTENSION: - * - * the string suffix used by dynamic modules (usually shared libraries) - */ -#define LIBXML_MODULE_EXTENSION "" -#endif - -#ifdef __GNUC__ - -/** - * ATTRIBUTE_UNUSED: - * - * Macro used to signal to GCC unused function parameters - */ - -#ifndef ATTRIBUTE_UNUSED -# if ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7))) -# define ATTRIBUTE_UNUSED __attribute__((unused)) -# else -# define ATTRIBUTE_UNUSED -# endif -#endif - -/** - * LIBXML_ATTR_ALLOC_SIZE: - * - * Macro used to indicate to GCC this is an allocator function - */ - -#ifndef LIBXML_ATTR_ALLOC_SIZE -# if (!defined(__clang__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))) -# define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x))) -# else -# define LIBXML_ATTR_ALLOC_SIZE(x) -# endif -#else -# define LIBXML_ATTR_ALLOC_SIZE(x) -#endif - -/** - * LIBXML_ATTR_FORMAT: - * - * Macro used to indicate to GCC the parameter are printf like - */ - -#ifndef LIBXML_ATTR_FORMAT -# if ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3))) -# define LIBXML_ATTR_FORMAT(fmt,args) __attribute__((__format__(__printf__,fmt,args))) -# else -# define LIBXML_ATTR_FORMAT(fmt,args) -# endif -#else -# define LIBXML_ATTR_FORMAT(fmt,args) -#endif - -#else /* ! __GNUC__ */ -/** - * ATTRIBUTE_UNUSED: - * - * Macro used to signal to GCC unused function parameters - */ -#define ATTRIBUTE_UNUSED -/** - * LIBXML_ATTR_ALLOC_SIZE: - * - * Macro used to indicate to GCC this is an allocator function - */ -#define LIBXML_ATTR_ALLOC_SIZE(x) -/** - * LIBXML_ATTR_FORMAT: - * - * Macro used to indicate to GCC the parameter are printf like - */ -#define LIBXML_ATTR_FORMAT(fmt,args) -#endif /* __GNUC__ */ - -#ifdef __cplusplus -} -#endif /* __cplusplus */ -#endif - -