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

CMake: detect C++ library for pkgconf file #994

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

kmilos
Copy link
Contributor

@kmilos kmilos commented Oct 17, 2023

One option of addressing #943 (comment)

@pszemus Please test

@pszemus
Copy link
Contributor

pszemus commented Oct 17, 2023

@kmilos GraphicsMagick builds OK. The built libheif.pc looks like this:

prefix=/home/pszemus/projects/imageresizer-worker/libs
exec_prefix=${prefix}
libdir=${exec_prefix}/lib64
includedir=${prefix}/include

# Contrary to older versions of libheif (<= 1.14.2), the available-codec-variables are now all set to 'yes'
# as since 1.14.0, codecs can be dynamically loaded at runtime and it is not possible anymore to determine
# the available codecs at compile-time. You'll get an unknown codec error at runtime if you try to use an
# unavailable codec.
builtin_h265_decoder=yes
builtin_h265_encoder=yes
builtin_avif_decoder=yes
builtin_avif_encoder=yes

Name: libheif
Description: HEIF image codec.
URL: https://github.com/strukturag/libheif
Version: 1.17.0
Requires:
Requires.private: dav1d libsharpyuv
Libs: -L${libdir} -lheif
Libs.private: -lstdc++
Cflags: -I${includedir}

@farindk farindk merged commit 28f61b1 into strukturag:master Oct 17, 2023
7 of 30 checks passed
@farindk
Copy link
Contributor

farindk commented Oct 17, 2023

Great. Thank you.

@kmilos kmilos deleted the kmilos/cmake_libcpp branch October 17, 2023 13:08
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.

3 participants