Skip to content

Conversation

@blaadje
Copy link

@blaadje blaadje commented Dec 20, 2025

Summary

  • Add with_svg option for rmlui/4.4 to enable the SVG plugin (lunasvg).
  • Wire CMake ENABLE_SVG_PLUGIN and link against lunasvg::lunasvg via CMakeDeps.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


alexandre-charlot_qonto seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Comment on lines +7 to +12
- find_package(lunasvg REQUIRED)
-
- list(APPEND CORE_LINK_LIBS ${LUNASVG_LIBRARIES})
- list(APPEND CORE_INCLUDE_DIRS ${LUNASVG_INCLUDE_DIR})
+ find_package(lunasvg REQUIRED CONFIG)
+ list(APPEND CORE_LINK_LIBS lunasvg::lunasvg)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this patch necessary? Are there errors if this patch is not included?
Conan already configures the build to prefer CONFIG, and LUNASVG_LIBRARIES should be defined to contain lunasvg::lunasvg - however if it isn't, we prefer to do it via the recipe rather than patches:

deps.set_property("lunasvg", "cmake_additional_variables_prefixes", ["LUNASVG"])

(in the generate() method, on the CMakeDeps object)

check_min_cppstd(self, self._minimum_cpp_standard)

if self.options.with_svg and Version(self.version) < "4.4":
raise ConanInvalidConfiguration(f"{self.ref} with_svg option is only available for versions >= 4.4")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the option is not existent in earlier versions, we just delete the option in the config_options() method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants