2020-03-07 02:07:49 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "uwp")
|
|
|
|
|
2018-10-09 16:20:29 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO tinyfiledialogs
|
2020-07-07 04:39:32 +08:00
|
|
|
FILENAME "frozen_versions/tinyfiledialogs-3.6.3.zip"
|
|
|
|
SHA512 42c3bd34b0287cf2477f9ede049bea29a9306304e8fab7740065957d3737f4041899f26f29a0693e801cb0a7b63844509f86441262303ff0a4030a431ffac648
|
2020-03-07 02:07:49 +08:00
|
|
|
)
|
|
|
|
|
2018-10-09 16:20:29 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2018-10-09 16:20:29 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2019-02-08 05:19:10 +08:00
|
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2018-10-09 16:20:29 +08:00
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
file(READ ${CURRENT_PACKAGES_DIR}/include/tinyfiledialogs/tinyfiledialogs.h _contents)
|
2018-10-09 16:20:29 +08:00
|
|
|
string(SUBSTRING "${_contents}" 0 1024 _contents)
|
2020-06-13 04:09:46 +08:00
|
|
|
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "${_contents}")
|