diff options
| author | Eric Mittelette <ericmitt@corp.microsoft.com> | 2017-01-26 16:27:52 -0800 |
|---|---|---|
| committer | Eric Mittelette <ericmitt@corp.microsoft.com> | 2017-01-26 16:27:52 -0800 |
| commit | 8bc3c1f06267bd49119a0fa1bfea8b9bfdde194f (patch) | |
| tree | 66000793ab7f74340522dd63fd4e318b4f3bb6c7 | |
| parent | 4be93bac78aaba43ea562b454dc14ca5a391e570 (diff) | |
| download | vcpkg-8bc3c1f06267bd49119a0fa1bfea8b9bfdde194f.tar.gz vcpkg-8bc3c1f06267bd49119a0fa1bfea8b9bfdde194f.zip | |
add xercesc
| -rw-r--r-- | ports/xercesc/CONTROL | 3 | ||||
| -rw-r--r-- | ports/xercesc/portfile.cmake | 40 |
2 files changed, 43 insertions, 0 deletions
diff --git a/ports/xercesc/CONTROL b/ports/xercesc/CONTROL new file mode 100644 index 000000000..497ef66c3 --- /dev/null +++ b/ports/xercesc/CONTROL @@ -0,0 +1,3 @@ +Source: xercesc +Version: 3.1.4 +Description: Xerces-C++ is a XML parser, for parsing, generating, manipulating, and validating XML documents using the DOM, SAX, and SAX2 APIs. diff --git a/ports/xercesc/portfile.cmake b/ports/xercesc/portfile.cmake new file mode 100644 index 000000000..bf2a2ee59 --- /dev/null +++ b/ports/xercesc/portfile.cmake @@ -0,0 +1,40 @@ +# Common Ambient Variables: +# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg> +# TARGET_TRIPLET is the current triplet (x86-windows, etc) +# PORT is the current port name (zlib, etc) +# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT} +# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET} +# + +include(vcpkg_common_functions) + +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/xerces-c-3.1.4) + +vcpkg_download_distfile(ARCHIVE + URLS "http://www-us.apache.org/dist//xerces/c/3/sources/xerces-c-3.1.4.zip" + FILENAME "xerces-c-3.1.4.zip" + SHA512 3ba1bf38875bda8a294990dba73143cfd6dbfa158b17f4db1fd0ee9a08a078af969103200eaf8957756f8363c8a661983cc95124b4978eb2162dc0344a85fff8 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +if (TRIPLET_SYSTEM_ARCH MATCHES "x86") + set(BUILD_ARCH "Win32") +else() + set(BUILD_ARCH ${TRIPLET_SYSTEM_ARCH}) +endif() + + +vcpkg_build_msbuild( + #PROJECT_PATH ${SOURCE_PATH}/projects/Win32/VC14/xerces-all/xerces-all.sln + PROJECT_PATH ${SOURCE_PATH}/projects/Win32/VC14/xerces-all/xercesLib/xercesLib.vcxproj + PLATFORM ${BUILD_ARCH}) + + +file(COPY ${SOURCE_PATH}/src/xercesc DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN *.hpp) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xercesc/NLS) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xercesc/util/MsgLoaders/ICU/resources) + +# Handle copyright +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/xerces) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/xerces/LICENSE ${CURRENT_PACKAGES_DIR}/share/xerces/copyright) |
