diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-26 13:25:58 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-11-26 13:25:58 -0800 |
| commit | e761b5ac0a74b8808810e853d12593e60d3fa642 (patch) | |
| tree | 3649bca8c038a8e238100a26b5607075d76a3952 | |
| parent | 8e0918ace47c4e7b2548bbef589c39fcb1efc256 (diff) | |
| parent | 469b819fdfa91bb81b3c0ec6081e43df36883528 (diff) | |
| download | vcpkg-e761b5ac0a74b8808810e853d12593e60d3fa642.tar.gz vcpkg-e761b5ac0a74b8808810e853d12593e60d3fa642.zip | |
Merge branch 'master' of https://github.com/ClockworkOrigins/vcpkg into ClockworkOrigins-master
| -rw-r--r-- | ports/clockutils/CONTROL | 3 | ||||
| -rw-r--r-- | ports/clockutils/portfile.cmake | 34 |
2 files changed, 37 insertions, 0 deletions
diff --git a/ports/clockutils/CONTROL b/ports/clockutils/CONTROL new file mode 100644 index 000000000..4ade8d5f0 --- /dev/null +++ b/ports/clockutils/CONTROL @@ -0,0 +1,3 @@ +Source: clockutils +Version: 1.1.1 +Description: A lightweight c++ library for commonly needed tasks. Optimized for simplicity and speed. diff --git a/ports/clockutils/portfile.cmake b/ports/clockutils/portfile.cmake new file mode 100644 index 000000000..c40d73328 --- /dev/null +++ b/ports/clockutils/portfile.cmake @@ -0,0 +1,34 @@ +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/clockUtils-1.1.1) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/ClockworkOrigins/clockUtils/archive/1.1.1.tar.gz" + FILENAME "clockUtils-1.1.1.tar.gz" + SHA512 6b0c57862baf04c0c5529549ba13983e53445172d9a272571aa20968ba6dba15f1cf480096ca100d450218fef090805366d0564c77a4aa4721a4fe694a0481c9 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +if (VCPKG_CRT_LINKAGE STREQUAL dynamic) + SET(SHARED_FLAG ON) +else() + SET(SHARED_FLAG OFF) +endif() + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DWITH_LIBRARY_ARGPARSER=ON + -DWITH_LIBRARY_COMPRESSION=ON + -DWITH_LIBRARY_CONTAINER=ON + -DWITH_LIBRARY_INIPARSER=ON + -DWITH_LIBRARY_SOCKETS=ON + -DWITH_TESTING=OFF + -DCLOCKUTILS_BUILD_SHARED=${SHARED_FLAG} +) + +vcpkg_build_cmake() +vcpkg_install_cmake() + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/clockUtils) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/clockUtils/LICENSE ${CURRENT_PACKAGES_DIR}/share/clockUtils/copyright)
\ No newline at end of file |
