haxscramper / hcparse

High-level nim bindings for parsing C/C++ code
https://haxscramper.github.io/hcparse-doc/src/hcparse/libclang.html
Apache License 2.0
37 stars 2 forks source link

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

Open haxscramper opened 2 years ago

haxscramper commented 2 years ago

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 commented 2 years ago

https://github.com/xmake-io/xmake/issues/1756#issuecomment-952513334

haxscramper commented 2 years ago

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 commented 2 years ago

https://github.com/nim-lang/RFCs/issues/463