Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
mpoquet wants to merge2 commits intodocopt:master
base:master
Choose a base branch
Loading
frommpoquet:pkgconfig-support

Conversation

mpoquet
Copy link

Hello,

This PR adds the generation of apkg-config file for docopt when callingmake/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.

tdegeus reacted with thumbs up emojitdegeus reacted with hooray emoji
dermariuszand others added2 commitsDecember 10, 2018 15:49
- libdir should now be right on Nix- includedir should now be consistent with installed files
@tdegeus
Copy link
Contributor

Would be great to have!

@tdegeustdegeus mentioned this pull requestNov 27, 2019
@jaredgrubb
Copy link
Member

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
Copy link
Contributor

tdegeus commentedNov 28, 2019
edited
Loading

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 finaldocopt.pc that reads

libdir=/Users/tdegeus/miniconda3/envs/test/libincludedir=/Users/tdegeus/miniconda3/envs/test/includeName: docopt.cppDescription: C++11 port of docoptVersion: 0.6.2Libs: -L${libdir} -ldocoptCflags: -I${includedir}

In contrast, the old implementation gives

libdir=/Users/tdegeus/miniconda3/envs/test/libincludedir=/Users/tdegeus/miniconda3/envs/test/include/docoptName: docopt.cppDescription: C++11 port of docoptVersion: 0.6.2Requires:Libs: -L${libdir} -ldocoptCflags: -I${includedir}

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?

Update

I was wrong about the CMake behaviour. With CMake one should

#include<docopt.h>

@jaredgrubb Can you clarify?

I one in fact should use#include <docopt.h> with CMake, I guess the original pkgconfig behaviour is correct, and this PR should be closed. However, this point should be clarified in the readme.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@mpoquet@tdegeus@jaredgrubb@dermariusz

[8]ページ先頭

©2009-2025 Movatter.jp