-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Generation of libkiwix.pc via meson's pkgconfig module #1133
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1133 +/- ##
=======================================
Coverage 41.43% 41.43%
=======================================
Files 59 59
Lines 4245 4245
Branches 2323 2323
=======================================
Hits 1759 1759
Misses 990 990
Partials 1496 1496 ☔ View full report in Codecov by Sentry. |
feaf651
to
ccfe0bd
Compare
@veloman-yunkan Great, will do my best to check this PR. I believe we probably need to have PR at kiwix-tools and kiwix-desktop tomsupport this new naming? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo two small cosmetic changes
Generation of kiwix.pc using the previous approach still stays in place.
Also fixed capitalization in an error message
ccfe0bd
to
15c5e15
Compare
@kelson42 Here they are - kiwix/kiwix-tools#707, kiwix/kiwix-desktop#1213 |
The old version information appears to be a remnant of the initial setup of the build tree long ago with further utilization of a quick build procedure without using |
@veloman-yunkan Should we not remove |
Below are the contents of libkiwix.pc and kiwix.pc files generated using the new and old approaches, respectively, for native_dyn and native_static configurations: ``` $ cat BUILD_native_dyn/INSTALL/lib/x86_64-linux-gnu/pkgconfig/libkiwix.pc prefix=<REDACTED> includedir=${prefix}/include libdir=${prefix}/lib/x86_64-linux-gnu Name: libkiwix Description: A library that contains useful primitives that Kiwix readers have in common Version: 14.0.0 Requires.private: icu-i18n, libzim < 10.0.0, libzim >= 9.0.0, pugixml, libcurl, libmicrohttpd, zlib, xapian-core Libs: -L${prefix}/lib/x86_64-linux-gnu -lkiwix Libs.private: -pthread Cflags: -I${includedir} $ cat BUILD_native_dyn/INSTALL/lib/x86_64-linux-gnu/pkgconfig/kiwix.pc prefix=<REDACTED> libdir=${prefix}/lib64 includedir=${prefix}/include Name: libkiwix Description: A library that contains a lot of things used by used by other kiwix programs Version: 14.0.0 Requires: libzim icu-i18n pugixml libcurl libmicrohttpd xapian-core Libs: -L${libdir} -lkiwix Cflags: -I${includedir}/ $ cat BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/pkgconfig/libkiwix.pc prefix=<REDACTED> includedir=${prefix}/include libdir=${prefix}/lib/x86_64-linux-gnu Name: libkiwix Description: A library that contains useful primitives that Kiwix readers have in common Version: 14.0.0 Requires: icu-i18n, libzim < 10.0.0, libzim >= 9.0.0, pugixml, libcurl, libmicrohttpd, zlib, xapian-core Libs: -L${prefix}/lib/x86_64-linux-gnu -lkiwix -pthread Cflags: -I${includedir} -pthread $ cat BUILD_native_static/INSTALL/lib/x86_64-linux-gnu/pkgconfig/kiwix.pc prefix=<REDACTED> libdir=${prefix}/lib64 includedir=${prefix}/include Name: libkiwix Description: A library that contains a lot of things used by used by other kiwix programs Version: 14.0.0 Requires: libzim icu-i18n pugixml libcurl libmicrohttpd xapian-core Libs: -L${libdir} -lkiwix Cflags: -I${includedir}/ ``` The notable differences are: - libdir changed from `${prefix}/lib64` to `${prefix}/lib/x86_64-linux-gnu` - for native_dyn configuration Requires.private is used - pthread has appeared in Libs/Libs.private and/or Cflags - version information was added to the libzim requirement
15c5e15
to
cbfd3ec
Compare
@kelson42 Thanks for catching this. |
Fixes #1117
The name of the
libkiwix
pkgconfig file has changed fromkiwix.pc
tolibkiwix.pc
.Below are the contents of libkiwix.pc and kiwix.pc files generated using the new and old approaches, respectively, for
native_dyn
andnative_static
configurations:The notable differences are:
libdir
changed from${prefix}/lib64
to${prefix}/lib/x86_64-linux-gnu
for
native_dyn
configurationRequires.private
is usedpthread
has appeared inLibs
/Libs.private
and/orCflags
(likely inherited fromlibzim
)version information was added to the
libzim
requirement.