From c70da3bc3aecb56c7b10d26e9d6417330a128451 Mon Sep 17 00:00:00 2001 From: Jackie Ng Date: Sat, 22 Apr 2017 02:37:28 +1000 Subject: [xalan-c] Need to build XalanMsgLib so that LocalMsgIndex.hpp is generated and to make sure this header is copied to /include/xalanc/PlatformSupport --- ports/xalan-c/portfile.cmake | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ports/xalan-c/portfile.cmake b/ports/xalan-c/portfile.cmake index bc92562b5..ac076475e 100644 --- a/ports/xalan-c/portfile.cmake +++ b/ports/xalan-c/portfile.cmake @@ -39,6 +39,13 @@ vcpkg_build_msbuild( # Need this for it to pick up xerces-c port: https://github.com/Microsoft/vcpkg/issues/891 OPTIONS /p:ForceImportBeforeCppTargets=${VCPKG_ROOT_DIR}/scripts/buildsystems/msbuild/vcpkg.targets) +# This is needed to generate the required LocalMsgIndex.hpp header +vcpkg_build_msbuild( + PROJECT_PATH ${SOURCE_PATH}/c/projects/Win32/VC10/Utils/XalanMsgLib/XalanMsgLib.vcxproj + PLATFORM ${BUILD_ARCH} + # Need this for it to pick up xerces-c port: https://github.com/Microsoft/vcpkg/issues/891 + OPTIONS /p:ForceImportBeforeCppTargets=${VCPKG_ROOT_DIR}/scripts/buildsystems/msbuild/vcpkg.targets) + file(COPY ${SOURCE_PATH}/c/Build/${OUTPUT_DIR}/VC10/Debug/XalanMessages_1_11D.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) file(COPY ${SOURCE_PATH}/c/Build/${OUTPUT_DIR}/VC10/Debug/Xalan-C_1_11D.dll DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin) file(COPY ${SOURCE_PATH}/c/Build/${OUTPUT_DIR}/VC10/Debug/Xalan-C_1D.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) @@ -48,6 +55,10 @@ file(COPY ${SOURCE_PATH}/c/Build/${OUTPUT_DIR}/VC10/Release/Xalan-C_1.lib DESTIN file(COPY ${SOURCE_PATH}/c/src/xalanc DESTINATION ${CURRENT_PACKAGES_DIR}/include FILES_MATCHING PATTERN *.hpp) +# LocalMsgIndex.hpp is here +file(COPY ${SOURCE_PATH}/c/Build/${OUTPUT_DIR}/VC10/Release/Nls/Include/LocalMsgIndex.hpp + DESTINATION ${CURRENT_PACKAGES_DIR}/include/xalanc/PlatformSupport) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xalanc/NLS) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xalanc/util/MsgLoaders/ICU/resources) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/include/xalanc/TestXSLT) -- cgit v1.2.3