2021-07-01 19:25:42 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mikke89/RmlUi
|
2021-08-25 00:47:00 +02:00
|
|
|
REF 4.2
|
|
|
|
SHA512 848515d554d6a56bc5ba962c8a3db27801491236f17092ea6c658b35d6cb8b3330dff197d71fc65aaa061476a383a467fcc481571cdf3777f06024819bf9267c
|
2021-07-01 19:25:42 +02:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
add-robin-hood.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
lua BUILD_LUA_BINDINGS
|
|
|
|
INVERTED_FEATURES
|
|
|
|
freetype NO_FONT_INTERFACE_DEFAULT
|
|
|
|
)
|
|
|
|
|
|
|
|
# Remove built-in header, instead we use vcpkg version (from robin-hood-hashing port)
|
|
|
|
file(REMOVE ${SOURCE_PATH}/Include/RmlUi/Core/Containers/robin_hood.h)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
CONFIG_PATH lib/RmlUi/cmake
|
|
|
|
)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
|
|
|
${CURRENT_PACKAGES_DIR}/debug/lib/RmlUi
|
|
|
|
${CURRENT_PACKAGES_DIR}/lib/RmlUi
|
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/RmlUi/Core/Header.h
|
|
|
|
"#if !defined RMLUI_STATIC_LIB"
|
|
|
|
"#if 0"
|
|
|
|
)
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/RmlUi/Debugger/Header.h
|
|
|
|
"#if !defined RMLUI_STATIC_LIB"
|
|
|
|
"#if 0"
|
|
|
|
)
|
|
|
|
if ("lua" IN_LIST FEATURES)
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/RmlUi/Lua/Header.h
|
|
|
|
"#if !defined RMLUI_STATIC_LIB"
|
|
|
|
"#if 0"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|