Skip to content

build: use pkg-config for qmi-framework discovery#11

Merged
Jairaj-quic merged 1 commit into
mainfrom
development
Apr 10, 2026
Merged

build: use pkg-config for qmi-framework discovery#11
Jairaj-quic merged 1 commit into
mainfrom
development

Conversation

@Jairaj-quic
Copy link
Copy Markdown
Contributor

Replace the hardcoded qmi path handling with pkg-config as the primary mechanism for locating qmi-framework.

The qmi-framework.pc file exposes Cflags as -I${includedir}, which resolves to /usr/include and can be filtered by pkgconf as a default system include path. Derive the required include path from the pkg-config prefix as ${prefix}/include/qmi_framework, while keeping --with-qmi-prefix as a fallback when pkg-config cannot find the\npackage.

Also update the automake variables to consume substituted QMI flags, and stop installing time-daemon.service through make install so Debian packaging can handle the service file separately.

Replace the hardcoded qmi path handling with pkg-config as the
primary mechanism for locating qmi-framework.

The qmi-framework.pc file exposes Cflags as -I${includedir}, which
resolves to /usr/include and can be filtered by pkgconf as a default
system include path. Derive the required include path from the
pkg-config prefix as ${prefix}/include/qmi_framework, while keeping
--with-qmi-prefix as a fallback when pkg-config cannot find the\npackage.

Also update the automake variables to consume substituted QMI flags,
and stop installing time-daemon.service through make install so Debian
packaging can handle the service file separately.

Signed-off-by: Jairaj Solanki <jsolanki@qti.qualcomm.com>
@Jairaj-quic Jairaj-quic merged commit 63e334b into main Apr 10, 2026
7 checks passed
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