vcpkg/ports/ftxui/portfile.cmake
Neel Raiyani c3dfd6ade0
[ftxui] update to 0.11 (#22293)
* update ftxui version

* update sha512

* update port vcpkg.json version-string

* remove redundant version string

* fix git-tree sha in version\ftxui.json

* Remove unnecessary port-version.

Co-authored-by: Billy O'Neal <bion@microsoft.com>
2022-01-03 14:13:03 -08:00

29 lines
900 B
CMake

vcpkg_fail_port_install(ON_TARGET "uwp")
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ArthurSonzogni/FTXUI
REF 4188ee2c046ced00cd3accba4cde2318587f8c8a #0.11
SHA512 c32d5abbd42b776935c851ca8510201f4856335ea5510ef5e126795a6be405a82ee4dc4526c60acebc1dc4a4e17c58d5027f219bc86628733e86d0e38885f99d
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DFTXUI_BUILD_EXAMPLES=OFF
-DFTXUI_ENABLE_INSTALL=ON
-DFTXUI_BUILD_TESTS=OFF
-DFTXUI_BUILD_DOCS=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)