diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-12-06 02:41:30 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-06 02:41:30 -0800 |
| commit | af9d82ceb34f51187ce3456b740f7c75350a139c (patch) | |
| tree | 15ebb9da968a3cb5ca993623335f2f1f552e9f76 | |
| parent | 5359a542a554668de7926a1b2c9a314db8b4d302 (diff) | |
| parent | 34f103d4209885d43e1038570d0c04b9deb5e654 (diff) | |
| download | vcpkg-af9d82ceb34f51187ce3456b740f7c75350a139c.tar.gz vcpkg-af9d82ceb34f51187ce3456b740f7c75350a139c.zip | |
Merge pull request #388 from mattiascibien/anax_shared
Anax shared lib support
| -rw-r--r-- | ports/anax/Add-bin-output.patch | 10 | ||||
| -rw-r--r-- | ports/anax/CONTROL | 2 | ||||
| -rw-r--r-- | ports/anax/portfile.cmake | 11 |
3 files changed, 18 insertions, 5 deletions
diff --git a/ports/anax/Add-bin-output.patch b/ports/anax/Add-bin-output.patch new file mode 100644 index 000000000..333a92fdc --- /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/CONTROL b/ports/anax/CONTROL index f6d285b4c..ce3da2f57 100644 --- a/ports/anax/CONTROL +++ b/ports/anax/CONTROL @@ -1,3 +1,3 @@ Source: anax -Version: 2.1.0 +Version: 2.1.0-1 Description: An open source C++ entity system. <https://github.com/miguelmartin75/anax> diff --git a/ports/anax/portfile.cmake b/ports/anax/portfile.cmake index ae22332cf..ef14f7264 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() |
