[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
This commit is contained in:
Johnny Willemsen 2019-03-08 18:18:01 +00:00 committed by Phil Christensen
parent c7ca58ba36
commit c297b43896
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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()