- Notifications
You must be signed in to change notification settings - Fork147
Add pkgconfig support#105
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
- libdir should now be right on Nix- includedir should now be consistent with installed files
Would be great to have! |
This branch has conflicts and would need rebased. Also, I'd like a couple people who know this technology in order to vouch for the patch (I don't know it personally) |
tdegeus commentedNov 28, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
It seems that the only different w.r.t. the current master are the first two lines libdir=@CMAKE_INSTALL_FULL_LIBDIR@includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ I've tried on my system: They new implementation gives a final
In contrast, the old implementation gives
The difference being that with the new implementation one can #include<docopt/docopt.h> As one would also do when using CMake. The old implementation would require #include<docopt.h> That being said, the readme is may not entirely clear on this point? UpdateI was wrong about the CMake behaviour. With CMake one should #include<docopt.h> @jaredgrubb Can you clarify? I one in fact should use |
Hello,
This PR adds the generation of apkg-config file for docopt when calling
make/ninja/etc. install
. Merging it shouldclose#68.In brief, pkg-config eases the utilization of software libraries by allowing the developers of a library to define how the library should be used — instead of letting end users struggling with it. It therefore allows docopt users to link/include it without having to know internal details such as include path or the library name.
Some build systems support the definition of dependencies via pkg-config (e.g., this is the main way to define dependencies inMeson, CMake can use pkg-config dependencies).
I added some fixes over849e261 (#68) to make it work on non-Debian-based systems.