hcparse icon indicating copy to clipboard operation
hcparse copied to clipboard

using nim as a part of c/cxx project

Open haxscramper opened this issue 4 years ago • 3 comments

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 avatar Oct 17 '21 08:10 haxscramper

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

haxscramper avatar Oct 27 '21 05:10 haxscramper

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 avatar Nov 18 '21 14:11 haxscramper

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

haxscramper avatar Jul 06 '22 08:07 haxscramper