#inglued <>
: hiding c++ dependencies.First we only support header-only dependencies, any other kind of libraries have to disappear.
As a library author you want your library to be used easily.
The problem is that your users might get an hard time to consume your C++ library, if you do depend on some other library yourself.
Dependency management is hard in C++ because there are :
Your library will be consumed by two different kind of users :
#inglued <>
deps as well by #include
scanningDefinitely not, this is only glue to ease the shipping of your header-only library. The goal of this tool is to hide dependencies to users who doesn't care.
It automates and ease the version upgrade of your dependencies, but application code author shouldn't bother, they will just reuse.
No, we give you access to any github.com repo which is the largest dependency store out there.
inglued cmake
allows you to automagically generate a correct CMakeLists.txt for your lib but you don't have to.
Read more about CMAKE Support
Here is a solution to provide your library easily to your users, without needing your users to install yet another tool.
It simply provides you with a way to package dependencies inside your git repository.
And the best, is that it doesn't use the cumbersome submodules, but the marvelous subtree.
Users just need to include your library folder. The rest is done by you using #inglued <>
.
deps/inglued
: {
"nlohmann/json" : { "@" : "v2.1.1", "-I" : "src/" }
, "boostorg/preprocessor" : { "@" : "boost-1.62.0", "-I" : "include/" }
, "boostorg/fusion" : { "@" : "boost-1.62.0", "-I" : "include/" }
}
inglued seal
, and :boom: you can tag your lib & let users download it via Github Releases.Library example-dependency depends on :
The users of example-dependency have to tediously install all these transitive dependencies and the other dependencies they also bring ?
We've created #inglued <>
to solve this. :wink:
inglued seal
: see diffinglued cmake header-only example-dependency example-dependency
: see diffThanks to these three commands we satisfy :
the user who doesn't care and just want to code :
copy/paste
your lib in it's projectthe user who wants to integrate your lib in it's sysroot :
cmake . && make install
the user who wants to take it's own version of your dependencies
cmake . -DINGLUED=OFF && make install
See our ROADMAP
You don't bother as what this tool do will not have impact on your code, but in case : Boost Software License.
Please give copyright notice for this project if you find it good.
Copyright (c) 2017 Damien Buhl alias daminetreg (damien.buhl@lecbna.org)
Give them copyrights too !