Skip to content
12 changes: 12 additions & 0 deletions ports/rmlui/fix-uwp.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7280464e..e03f667c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -297,6 +297,7 @@ macro(add_common_target_options NAME)
endif()
elseif(MSVC)
target_compile_options(${NAME} PRIVATE /MP /W4 /w44062 /permissive-)
+ target_compile_definitions(${NAME} PRIVATE _CRT_SECURE_NO_WARNINGS)

if(WARNINGS_AS_ERRORS)
target_compile_options(${NAME} PRIVATE /WX)
37 changes: 37 additions & 0 deletions ports/rmlui/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mikke89/RmlUi
REF 4.0
SHA512 b1c8dc48ce3c1ef8e53c7e8d0aa830eec5b968bb3ff7cd778067627de649b45c1a72adfcd168d0ca36018455b6b2a740324cec63304ec4e66dd859ef9d64f674
HEAD_REF master
PATCHES
fix-uwp.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
lua BUILD_LUA_BINDINGS
INVERTED_FEATURES
freetype NO_FONT_INTERFACE_DEFAULT
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
${FEATURE_OPTIONS}
)

vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(
CONFIG_PATH lib/RmlUi/cmake
)
vcpkg_copy_pdbs()
Comment thread
mikke89 marked this conversation as resolved.
Outdated

file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
${CURRENT_PACKAGES_DIR}/debug/lib/RmlUi
${CURRENT_PACKAGES_DIR}/lib/RmlUi
Comment thread
mikke89 marked this conversation as resolved.
)

file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
26 changes: 26 additions & 0 deletions ports/rmlui/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "rmlui",
"version": "4.0",
"maintainers": "Michael R. P. Ragazzon <mikke89@users.noreply.github.com>",
"description": "RmlUi is the C++ user interface library based on the HTML and CSS standards, designed as a complete solution for any project's interface needs.",
"homepage": "https://github.com/mikke89/RmlUi",
"documentation": "https://mikke89.github.io/RmlUiDoc/",
Comment thread
mikke89 marked this conversation as resolved.
"license": "MIT",
"default-features": [
"freetype"
],
"features": {
"freetype": {
"description": "Include font engine based on FreeType",
"dependencies": [
"freetype"
]
},
"lua": {
"description": "Build Lua bindings",
"dependencies": [
"lua"
]
}
}
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5516,6 +5516,10 @@
"baseline": "0.3.0",
"port-version": 0
},
"rmlui": {
"baseline": "4.0",
"port-version": 0
},
"roaring": {
"baseline": "2019-03-05-2",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/r-/rmlui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "81009f0952c6bc37ce0246d2ff7e67fcbed76a13",
"version": "4.0",
"port-version": 0
}
]
}