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

using nim as a part of c/cxx project #20

Open
haxscramper opened this issue Oct 17, 2021 · 3 comments
Open

using nim as a part of c/cxx project #20

haxscramper opened this issue Oct 17, 2021 · 3 comments

Comments

@haxscramper
Copy link
Owner

haxscramper commented Oct 17, 2021

While main goal of hcparse is to provide wrappers for cxx libraries that could be used in the Nim code, it is also important to consider integration of the nim in the cxx vuild toolchains. For example #19 might require using cmake as a build system, because I need to be able to to Find_Package(LLVM REQUIRED), and I clearly not enthusiastic about reimplementing this functionality in nim macros or anything else.

Alternative to this wouls be an nim build system that allows to somehow get necessary information from cmake, but for now this idea really feels like ywt another "standardized" solution that nobody would ever use.

Related - #17 via conan, vcpkg and other cxx package management solutions.

@haxscramper
Copy link
Owner Author

@haxscramper
Copy link
Owner Author

Xmake seems really promising, it has support for multiple languages, including nim, can interface with CMake, conan and nimble (I would have at least one way of managing dependencies, even though I much rather prefer to use nimph for that matter).

It seems like I would have to build hcparse using something else than nimble (because nimble "build system" is just a exec "<insert your commands here>" anyway).

@haxscramper
Copy link
Owner Author

nim-lang/RFCs#463

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

1 participant