Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribute C++ port as a library #138

Open
vityaman opened this issue Jul 31, 2024 · 1 comment
Open

Distribute C++ port as a library #138

vityaman opened this issue Jul 31, 2024 · 1 comment

Comments

@vityaman
Copy link
Contributor

vityaman commented Jul 31, 2024

Proposed feature

Distribute C++ port of the library. The library can be included into other CMake project via ExternalProject or FetchContent. Sources can be received by cloning the repository (we actually want to clone only ports/cpp directory) or by downloading the distribution archive (then we need to set up a pipeline for it). So the task is not ready yet and needs to be studied.

Also, we wish to have

distribution channel which would allow to see interest by watching download numbers

Requirements

We already prepared some basement during #132, adding CMake build and GitHub Workflow checks.
I think, before this, we need to fix found bugs and finish refactorings.

Motivation

Currently, the C++ port of the library can only be used by other projects by manually copying the source files. This is not very convenient and not modern. While it is possible to automate the copying process with a script, each user will likely create their own unique solution, which makes the build process more difficult to understand and maintain.

It would be beneficial to have a more efficient way to include the library as a dependency, so that users can easily integrate it into their projects without having to manually copy files.

@mike-lischke
Copy link
Owner

I'm not aware of a way to export a lib like this (or actually only a part of that), similar to what we have with NPM.

vityaman added a commit to vityaman/antlr4-c3 that referenced this issue Aug 6, 2024
vityaman added a commit to vityaman/antlr4-c3 that referenced this issue Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants