diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/lexbor | |
Diffstat (limited to 'vcpkg/ports/lexbor')
| -rw-r--r-- | vcpkg/ports/lexbor/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/lexbor/vcpkg.json | 23 |
2 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/lexbor/portfile.cmake b/vcpkg/ports/lexbor/portfile.cmake new file mode 100644 index 0000000..6c2dc4f --- /dev/null +++ b/vcpkg/ports/lexbor/portfile.cmake @@ -0,0 +1,32 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO lexbor/lexbor + REF v${VERSION} + SHA512 5fb5c0f31b873ba669b784f914cf4e688d80e5fdbe06797add19334dcf54a9ffd76923f38600913df6bdd9a40475a27368a09a847515c7929353c25ace5048d4 +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + perf LEXBOR_WITH_PERF +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC) +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DLEXBOR_BUILD_SHARED=${BUILD_SHARED} + -DLEXBOR_BUILD_STATIC=${BUILD_STATIC} +) +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/include/lexbor/html/tree/insertion_mode" + "${CURRENT_PACKAGES_DIR}/debug/include/lexbor/html/tree/insertion_mode" +) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/lexbor/vcpkg.json b/vcpkg/ports/lexbor/vcpkg.json new file mode 100644 index 0000000..0ba8a73 --- /dev/null +++ b/vcpkg/ports/lexbor/vcpkg.json @@ -0,0 +1,23 @@ +{ + "name": "lexbor", + "version": "2.6.0", + "description": "Lexbor is development of an open source HTML Renderer library.", + "homepage": "https://github.com/lexbor/lexbor", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "perf": { + "description": "Enables support for rdtsc", + "supports": "!arm" + } + } +} |