Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support generation of a pkg-config redox.pc file #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mpoquet
Copy link

@mpoquet mpoquet commented Dec 6, 2018

Hello,

This PR adds the generation of a pkg-config file for redox when calling make/ninja/etc. install.

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 redox users to link/include it without having to know internal details such as include path, the library name or the dependencies that should also be included/linked.

Some build systems support the definition of dependencies via pkg-config (e.g., this is the main way to define dependencies in Meson, CMake can use pkg-config dependencies).

The following two examples show how a pkg-config redox file could help users by compiling the example located in examples/basic.cpp — after installing the new redox version.

Makefile usage example

basic: basic.cpp
	g++ -o basic `pkg-config --cflags --libs redox` basic.cpp

Meson usage example

project('basic', 'cpp')
redox = dependency('redox')
executable('basic', 'basic.cpp', dependencies: redox)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant