diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-10-14 16:52:38 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-10-14 16:52:38 -0700 |
| commit | f52268db1add49377ff10c7bdf8a21878372fc3c (patch) | |
| tree | 26b74c30c89d2bda05fe07e544b64d5077645871 /ports/spdlog | |
| parent | eb1cea1f4396677317eda5c8163203aff3054776 (diff) | |
| parent | 9517eeadbba6e0f491a2961cd359c4c4892ef93f (diff) | |
| download | vcpkg-f52268db1add49377ff10c7bdf8a21878372fc3c.tar.gz vcpkg-f52268db1add49377ff10c7bdf8a21878372fc3c.zip | |
Merge branch 'master' of https://github.com/Microsoft/vcpkg
Diffstat (limited to 'ports/spdlog')
| -rw-r--r-- | ports/spdlog/CONTROL | 3 | ||||
| -rw-r--r-- | ports/spdlog/portfile.cmake | 28 |
2 files changed, 31 insertions, 0 deletions
diff --git a/ports/spdlog/CONTROL b/ports/spdlog/CONTROL new file mode 100644 index 000000000..dea187f2e --- /dev/null +++ b/ports/spdlog/CONTROL @@ -0,0 +1,3 @@ +Source: spdlog +Version: 0.11.0 +Description: Very fast, header only, C++ logging library diff --git a/ports/spdlog/portfile.cmake b/ports/spdlog/portfile.cmake new file mode 100644 index 000000000..849bd8feb --- /dev/null +++ b/ports/spdlog/portfile.cmake @@ -0,0 +1,28 @@ +include(${CMAKE_TRIPLET_FILE}) +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/spdlog-0.11.0) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/gabime/spdlog/archive/v0.11.0.zip" + FILENAME "v0.11.0.zip" + SHA512 4e759b8a18d0e3f256d974920260ebb6c6792885651290637a8a7210731e1d24a6f662d7dc7d3ae165a78c6e738229bd4b6922f36df26581bf43c8bca7c90314 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} +) + +vcpkg_install_cmake() + +file(MAKE_DIRECTORY + ${CURRENT_PACKAGES_DIR}/share +) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cmake/spdlog/ ${CURRENT_PACKAGES_DIR}/share/spdlog/) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/cmake) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake) + +# Handle copyright +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/spdlog) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/spdlog/LICENSE ${CURRENT_PACKAGES_DIR}/share/spdlog/copyright) |
