From 134993109b00dac3ed92a66a57fbffb7f89e4a02 Mon Sep 17 00:00:00 2001 From: Mattias Cibien Date: Tue, 6 Dec 2016 11:17:25 +0100 Subject: [PATCH] Anax support for shared libs --- ports/anax/Add-bin-output.patch | 10 ++++++++++ ports/anax/portfile.cmake | 11 +++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 ports/anax/Add-bin-output.patch diff --git a/ports/anax/Add-bin-output.patch b/ports/anax/Add-bin-output.patch new file mode 100644 index 0000000000..333a92fdc5 --- /dev/null +++ b/ports/anax/Add-bin-output.patch @@ -0,0 +1,10 @@ +--- a/CMakeLists.txt Tue Oct 13 13:47:40 2015 ++++ b/CMakeLists.txt Tue Dec 06 11:13:23 2016 +@@ -161,6 +161,7 @@ + # Library files + install( + TARGETS ${ANAX_LIBRARY_NAME} ++ RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + ) diff --git a/ports/anax/portfile.cmake b/ports/anax/portfile.cmake index ae22332cfd..ef14f72648 100644 --- a/ports/anax/portfile.cmake +++ b/ports/anax/portfile.cmake @@ -6,10 +6,6 @@ # CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET} # -if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) - message(STATUS "Warning: Dynamic building not supported yet. Building static.") - set(VCPKG_LIBRARY_LINKAGE static) -endif() include(vcpkg_common_functions) set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/anax-2.1.0) @@ -20,8 +16,15 @@ vcpkg_download_distfile(ARCHIVE ) vcpkg_extract_source_archive(${ARCHIVE}) +vcpkg_apply_patches( + SOURCE_PATH ${SOURCE_PATH} + PATCHES ${CMAKE_CURRENT_LIST_DIR}/Add-bin-output.patch +) + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=ON ) vcpkg_install_cmake()