-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add generation of registry file for pkg-config #151
Add generation of registry file for pkg-config #151
Conversation
@rherilier Thank you for your contribution. Could you please elaborate your need of this PR or point an associated issue? Do you really consume .pc files? What have you doing so far without them? |
using pkg-config in Makefile or when communicating a one-line compilation commands for test purpose helps early detection of installed dependency. Using CMake or meson (which can use CMake's registry) for such cases is either irrelevant or not possible. I admit this MR is not essential for my part. |
@rherilier Thank you for your answer. I'll take a look during the weekend to add a new validation using CMake + pkg-config, so we will be good to go. |
6d6d95f
to
769d57e
Compare
I simply fixed some typo. |
769d57e
to
063327e
Compare
sorry... I did a stupid fix |
063327e
to
5ce428b
Compare
sorry for the garbage... the installation directory is |
5ce428b
to
651570a
Compare
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. Tested locally. Thank you for your PR!
$ cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/tmp/install -DTAOCPP_JSON_BUILD_TESTS=OFF -DTAOCPP_JSON_BUILD_EXAMPLES=OFF -DTAOCPP_JSON_BUILD_PERFORMANCE=OFF
$ cmake --build build --target install
-- Install configuration: ""
-- Installing: /tmp/install/share/pegtl/cmake/pegtl-config.cmake
-- Installing: /tmp/install/share/pegtl/cmake/pegtl-config-version.cmake
-- Up-to-date: /tmp/install/include
-- Up-to-date: /tmp/install/include/tao
...
Installing: /tmp/install/share/taocpp-json/cmake/taocpp-json-config.cmake
-- Installing: /tmp/install/share/taocpp-json/cmake/taocpp-json-config-version.cmake
-- Installing: /tmp/install/share/pkgconfig/taocpp-json.pc
-- Installing: /tmp/install/share/taocpp-json/cmake/taocpp-json-targets.cmake
...
$ PKG_CONFIG_PATH=/tmp/install/share/pkgconfig pkg-config taocpp-json --cflags
-I/tmp/install/include
If I read well, the workflows for android run on Ubuntu 22.04 which includes CMake 3.22 and |
@rherilier No, it's running 3.10:
I would ask you reducing your PR to only install the .pc file and its configuration. Nothing more. The CI looks broken, so I don't want to mix your PR or even block it due that error, so let's be minimal here. Later, I'll revisit to fix the CI and re-introduce that CMake feature. Thank you. |
@rherilier Thank you for the explanation. I'll fix it. |
651570a
to
54d3441
Compare
@rherilier Merged. Thank you again! |
@uilianries you're welcome ;) |
No description provided.