Skip to content

use the utf-8 C++ library as an external (header-only) library#124

Closed
robUx4 wants to merge 1 commit intomasterfrom
utf8-interface
Closed

use the utf-8 C++ library as an external (header-only) library#124
robUx4 wants to merge 1 commit intomasterfrom
utf8-interface

Conversation

@robUx4
Copy link
Contributor

@robUx4 robUx4 commented Oct 15, 2022

It might be used as an external package someday. For it's a CMake interface since it's a header only piece of code.

It might be used as an external package someday. For it's a CMake interface
since it's a header only piece of code.
Copy link
Contributor

@mbunkus mbunkus left a comment

Choose a reason for hiding this comment

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

My initial idea of bundling this was that to avoid having a new external dependency. However, I've changed my mind since then, and I'd really prefer to convert this into a proper dependency & to remove the bundled copy. The usual Linux distros all carry it as a package anyway, and it would cut down on the amount of testing we'd have to do (e.g. only verify using the external one works, not also having to verify the bundled one can still be used).

The bundled copy wasn't modified anyway.

@neheb
Copy link
Contributor

neheb commented Oct 15, 2022

External library sounds better.

@robUx4
Copy link
Contributor Author

robUx4 commented Oct 15, 2022

What happens with an external dependency when I build with MSVC (rather VSCode) and I don't have it on my system ? Or on mac which normally don't have packages ?

@neheb
Copy link
Contributor

neheb commented Oct 15, 2022

add some kind of subproject (no idea how to do that with cmake) and link it statically I guess.

@robUx4
Copy link
Contributor Author

robUx4 commented Oct 15, 2022

There's nothing to link, it's just a bunch of headers.

Also, there's the CI that is a bare environment with no dependencies installed.

@neheb
Copy link
Contributor

neheb commented Oct 15, 2022

right. then I guess add it as a git submodule that gets cloned when host utf8-cpp is missing.

@mbunkus
Copy link
Contributor

mbunkus commented Oct 16, 2022

I don't know anything about MSVC packaging. Maybe you could check how VLC does it?

In the end I don't really care either way, to be honest. The one thing I'd like to see wrt. to utf8cpp changes is the ability to optionally build against a system-provided utf8cpp if found, fixing #54. I'm fine carrying our bundled copy. Dropping it is a slight preference at most.

@robUx4
Copy link
Contributor Author

robUx4 commented May 11, 2025

Superseeded by #319 and #320

@robUx4 robUx4 closed this May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants