Skip to content

build: Add pkg-config support for QMI Framework#15

Open
Jairaj-quic wants to merge 1 commit intoquic:developmentfrom
Jairaj-quic:add-pkgconfig-support
Open

build: Add pkg-config support for QMI Framework#15
Jairaj-quic wants to merge 1 commit intoquic:developmentfrom
Jairaj-quic:add-pkgconfig-support

Conversation

@Jairaj-quic
Copy link

Add unified pkg-config file to simplify library discovery and linking for applications using the QMI Framework.

Changes:

  • Add qmi-framework.pc.in template with all four libraries (libqcci, libqcsi, libqencdec, libqmi_common)
  • Update configure.ac to generate qmi-framework.pc from template
  • Update Makefile.am to install .pc file to pkgconfig directory
  • Update .gitignore to exclude generated qmi-framework.pc file

The pkg-config file follows standard autotools conventions and allows users to easily compile applications with:
gcc app.c $(pkg-config --cflags --libs qmi-framework) -o app

This simplifies integration with build systems like CMake, Meson, and traditional Makefiles.

Add unified pkg-config file to simplify library discovery and linking
for applications using the QMI Framework.

Changes:
- Add qmi-framework.pc.in template with all four libraries
  (libqcci, libqcsi, libqencdec, libqmi_common)
- Update configure.ac to generate qmi-framework.pc from template
- Update Makefile.am to install .pc file to pkgconfig directory
- Update .gitignore to exclude generated qmi-framework.pc file

The pkg-config file follows standard autotools conventions and allows
users to easily compile applications with:
  gcc app.c $(pkg-config --cflags --libs qmi-framework) -o app

This simplifies integration with build systems like CMake, Meson, and
traditional Makefiles.

Signed-off-by: Jairaj Solanki <jsolanki@qti.qualcomm.com>
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