mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 09:29:07 +08:00
426e442205
Fixes https://github.com/microsoft/vcpkg/issues/39305 All features passed with following triplets: x86-windows x64-windows x64-windows-static
51 lines
1.3 KiB
CMake
51 lines
1.3 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO Chlumsky/msdfgen
|
|
REF "v${VERSION}"
|
|
SHA512 285bb81418de6c5ad0207e579c9cc3f3d81759008fd9c1c2b62b77e2b4258ca7a3a6ec69d6bed65e1d6408636c3c5473b9ee4f9d18fe5f63da23803ca949c903
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
openmp MSDFGEN_USE_OPENMP
|
|
geometry-preprocessing MSDFGEN_USE_SKIA
|
|
tools MSDFGEN_BUILD_STANDALONE
|
|
INVERTED_FEATURES
|
|
extensions MSDFGEN_CORE_ONLY
|
|
)
|
|
|
|
if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
|
set(MSDFGEN_DYNAMIC_RUNTIME ON)
|
|
else()
|
|
set(MSDFGEN_DYNAMIC_RUNTIME OFF)
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DMSDFGEN_USE_VCPKG=ON
|
|
-DMSDFGEN_VCPKG_FEATURES_SET=ON
|
|
-DMSDFGEN_INSTALL=ON
|
|
-DMSDFGEN_DYNAMIC_RUNTIME="${MSDFGEN_DYNAMIC_RUNTIME}"
|
|
${FEATURE_OPTIONS}
|
|
MAYBE_UNUSED_VARIABLES
|
|
MSDFGEN_VCPKG_FEATURES_SET
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/msdfgen)
|
|
|
|
# move exe to tools
|
|
if("tools" IN_LIST FEATURES)
|
|
vcpkg_copy_tools(TOOL_NAMES msdfgen AUTO_CLEAN)
|
|
endif()
|
|
|
|
# cleanup
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
# license
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|