vcpkg/ports/tinyfiledialogs/portfile.cmake

32 lines
967 B
CMake
Raw Normal View History

vcpkg_fail_port_install(ON_TARGET "uwp")
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_git(
OUT_SOURCE_PATH SOURCE_PATH
FETCH_REF master
HEAD_REF master
URL https://git.code.sf.net/p/tinyfiledialogs/code
REF e11f94cd7887b101d64f74892d769f0139b5e166
)
[tinyfiledialogs] 3.6.3 -> 3.8.8 (#17343) * [tinyfiledialogs] 3.6.3 -> 3.8.7 * x-add-version * [tinyfiledialogs] Use git rather than explicit snapshot * x-add-version * [tinyfiledialogs] Put header in include dir one level down from before * x-add-version * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [tinyfiledialogs] 3.8.8 * vcpkg x-add-version --all * Update versions/t-/tinyfiledialogs.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Update versions/t-/tinyfiledialogs.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2021-05-18 14:43:26 +08:00
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_cmake_configure(
[tinyfiledialogs] 3.6.3 -> 3.8.8 (#17343) * [tinyfiledialogs] 3.6.3 -> 3.8.7 * x-add-version * [tinyfiledialogs] Use git rather than explicit snapshot * x-add-version * [tinyfiledialogs] Put header in include dir one level down from before * x-add-version * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [tinyfiledialogs] 3.8.8 * vcpkg x-add-version --all * Update versions/t-/tinyfiledialogs.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Update versions/t-/tinyfiledialogs.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2021-05-18 14:43:26 +08:00
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
[tinyfiledialogs] 3.6.3 -> 3.8.8 (#17343) * [tinyfiledialogs] 3.6.3 -> 3.8.7 * x-add-version * [tinyfiledialogs] Use git rather than explicit snapshot * x-add-version * [tinyfiledialogs] Put header in include dir one level down from before * x-add-version * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [tinyfiledialogs] 3.8.8 * vcpkg x-add-version --all * Update versions/t-/tinyfiledialogs.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Update versions/t-/tinyfiledialogs.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2021-05-18 14:43:26 +08:00
file(READ "${CURRENT_PACKAGES_DIR}/include/tinyfiledialogs/tinyfiledialogs.h" _contents)
# reads between the line "- License -" and a closing "*/"
if (NOT _contents MATCHES [[- License -(([^*]|\*[^/])*)\*/]])
message(FATAL_ERROR "Failed to parse license from tinyfiledialogs.h")
[tinyfiledialogs] 3.6.3 -> 3.8.8 (#17343) * [tinyfiledialogs] 3.6.3 -> 3.8.7 * x-add-version * [tinyfiledialogs] Use git rather than explicit snapshot * x-add-version * [tinyfiledialogs] Put header in include dir one level down from before * x-add-version * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [tinyfiledialogs] 3.8.8 * vcpkg x-add-version --all * Update versions/t-/tinyfiledialogs.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Update ports/tinyfiledialogs/portfile.cmake Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com> * Update versions/t-/tinyfiledialogs.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2021-05-18 14:43:26 +08:00
endif()
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "${CMAKE_MATCH_1}")