diff --git a/.gitignore b/.gitignore index 2ba8a87..a4c1c09 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ ltmain.sh stamp-h1 config.sub *subs.sh +qmi-framework.pc # Ignore specific binaries tests/qcci_test @@ -35,4 +36,3 @@ tests/qcsi_test # Ignore directories autom4te.cache/ m4/ - diff --git a/Makefile.am b/Makefile.am index b8fb5ab..a332c93 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,4 +12,8 @@ pkginclude_HEADERS = \ include/qmi_client.h \ include/qmi_idl_lib.h \ include/qmi_idl_lib_internal.h + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = qmi-framework.pc + SUBDIRS = common qencdec qcci qcsi tests diff --git a/configure.ac b/configure.ac index c672236..564249e 100644 --- a/configure.ac +++ b/configure.ac @@ -44,6 +44,7 @@ AC_CONFIG_FILES([ qencdec/Makefile \ qcci/Makefile \ qcsi/Makefile \ - tests/Makefile + tests/Makefile \ + qmi-framework.pc ]) AC_OUTPUT diff --git a/qmi-framework.pc.in b/qmi-framework.pc.in new file mode 100644 index 0000000..ec439ed --- /dev/null +++ b/qmi-framework.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: qmi-framework +Description: QMI Framework - Qualcomm Messaging Interface +Version: @VERSION@ +Requires: +Libs: -L${libdir} -lqcci -lqcsi -lqencdec -lqmi_common +Cflags: -I${includedir}