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

Generate pkg-config files under CMake #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daddesio
Copy link

@daddesio daddesio commented Jul 6, 2022

configure_pkg_config_file helper function copied from the ogg repository.

The generated .pc files have two differences (presumably minor) compared to autotools:

  • Paths: Autotools outputs exec_prefix=${prefix}, libdir=${exec_prefix}/lib, etc. while the CMake output is expanded out (similar to what ogg does currently)
  • Version string: Autotools outputs 0.12-38-gcf218fb-dirty if a modified repository is detected, while CMake ignores this and outputs 0.12-38-gcf218fb

opusfile.pc output:

# opusfile installed pkg-config file

prefix=/home/build/opus-git-optimized/prefix
exec_prefix=/home/build/opus-git-optimized/prefix/bin
libdir=/home/build/opus-git-optimized/prefix/lib64
includedir=/home/build/opus-git-optimized/prefix/include

Name: opusfile
Description: High-level Opus decoding library
Version: 0.12-38-gcf218fb
Requires.private: ogg >= 1.3 opus >= 1.0.1
Conflicts:
Libs: -L${libdir} -lopusfile
Libs.private: -lm
Cflags: -I${includedir}/opus

opusurl.pc output:

# opusurl installed pkg-config file

prefix=/home/build/opus-git-optimized/prefix
exec_prefix=/home/build/opus-git-optimized/prefix/bin
libdir=/home/build/opus-git-optimized/prefix/lib64
includedir=/home/build/opus-git-optimized/prefix/include

Name: opusurl
Description: High-level Opus decoding library, URL support
Version: 0.12-38-gcf218fb
Requires: opusfile
Requires.private: openssl
Conflicts:
Libs: -L${libdir} -lopusurl

configure_pkg_config_file helper function copied from the ogg
repository.
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.

None yet

1 participant