From c297b43896edfcaad7b8b81e6a7994e5c13c1146 Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 8 Mar 2019 18:18:01 +0000 Subject: [PATCH] [xerces-c] Add support for xmlch_wchar feature (#5602) * Add feature for wchar * ports/xerces-c/portfile.cmake: * Document new feature * ports/xerces-c/CONTROL: * [xerces-c] bump control version number --- ports/xerces-c/CONTROL | 6 +++++- ports/xerces-c/portfile.cmake | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ports/xerces-c/CONTROL b/ports/xerces-c/CONTROL index c5958f4a1d..63b4e9ad1f 100644 --- a/ports/xerces-c/CONTROL +++ b/ports/xerces-c/CONTROL @@ -1,7 +1,11 @@ Source: xerces-c -Version: 3.2.2-6 +Version: 3.2.2-7 Description: Xerces-C++ is a XML parser, for parsing, generating, manipulating, and validating XML documents using the DOM, SAX, and SAX2 APIs. Feature: icu Description: ICU support Build-Depends: icu + +Feature: xmlch_wchar +Description: XMLCh type uses wchar_t + diff --git a/ports/xerces-c/portfile.cmake b/ports/xerces-c/portfile.cmake index 80e56b0f6f..aa57001211 100644 --- a/ports/xerces-c/portfile.cmake +++ b/ports/xerces-c/portfile.cmake @@ -13,6 +13,9 @@ set(DISABLE_ICU ON) if("icu" IN_LIST FEATURES) set(DISABLE_ICU OFF) endif() +if ("xmlch_wchar" IN_LIST FEATURES) + set(XMLCHTYPE -Dxmlch-type=wchar_t) +endif() vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} @@ -22,6 +25,7 @@ vcpkg_configure_cmake( -DDISABLE_DOC=ON -DDISABLE_SAMPLES=ON -DCMAKE_DISABLE_FIND_PACKAGE_ICU=${DISABLE_ICU} + ${XMLCHTYPE} ) vcpkg_install_cmake()