aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackie Ng <jumpinjackie@gmail.com>2017-04-22 02:37:28 +1000
committerJackie Ng <jumpinjackie@gmail.com>2017-04-22 02:37:28 +1000
commitc70da3bc3aecb56c7b10d26e9d6417330a128451 (patch)
tree1f9e03005c682f0f93e8f33c30bd9c46a925214f
parent735bc7045e8b35b7cb64179e9d4742cbf04ee1d1 (diff)
downloadvcpkg-c70da3bc3aecb56c7b10d26e9d6417330a128451.tar.gz
vcpkg-c70da3bc3aecb56c7b10d26e9d6417330a128451.zip
[xalan-c] Need to build XalanMsgLib so that LocalMsgIndex.hpp is generated and to make sure this header is copied to /include/xalanc/PlatformSupport
-rw-r--r--ports/xalan-c/portfile.cmake11
1 files changed, 11 insertions, 0 deletions
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)