summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 49fe26f)
raw | patch | inline | side by side (parent: 49fe26f)
author | Arnie Reynoso <arnier@ti.com> | |
Thu, 16 Jan 2014 17:05:52 +0000 (09:05 -0800) | ||
committer | Chris Ring <cring@ti.com> | |
Mon, 20 Jan 2014 18:04:14 +0000 (10:04 -0800) |
This patch adds the libmmrpc.pc to package config.
This aides in identifying the correct CFLAGS for any user or mmrpc
as below.
pkg-config --cflags libmmrpc
Using the above command, the applications using libmmrpc can
find the cflags automatically using pkg-config thus avoiding to
explicitly set the path to MmRpc.h
This aides in identifying the correct CFLAGS for any user or mmrpc
as below.
pkg-config --cflags libmmrpc
Using the above command, the applications using libmmrpc can
find the cflags automatically using pkg-config thus avoiding to
explicitly set the path to MmRpc.h
configure.ac | patch | blob | history | |
linux/src/mm/Makefile.am | patch | blob | history | |
linux/src/mm/libmmrpc.pc.in | [new file with mode: 0644] | patch | blob |
diff --git a/configure.ac b/configure.ac
index ba749ab8946f64acc1f93eb4907d65be3e3aa435..c1dc1193ef21cb2c3b39d4f65ecdc88d66666caf 100644 (file)
--- a/configure.ac
+++ b/configure.ac
#
-# Copyright (c) 2013, Texas Instruments Incorporated
+# Copyright (c) 2013-2014, Texas Instruments Incorporated
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
AC_CONFIG_FILES([linux/src/utils/Makefile])
AC_CONFIG_FILES([linux/src/api/Makefile])
AC_CONFIG_FILES([linux/src/mm/Makefile])
+AC_CONFIG_FILES([linux/src/mm/libmmrpc.pc])
AC_CONFIG_FILES([linux/src/daemon/Makefile])
AC_CONFIG_FILES([linux/src/tests/Makefile])
AC_OUTPUT
index 96dfa17e072dd1009ddfce7ee1672a7479011fb9..59aa3128b054cf78c423339384957113c42b3202 100644 (file)
--- a/linux/src/mm/Makefile.am
+++ b/linux/src/mm/Makefile.am
##
-## Copyright (c) 2013, Texas Instruments Incorporated
+## Copyright (c) 2013-2014, Texas Instruments Incorporated
##
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions
# Add version info to the shared library
libmmrpc_la_LDFLAGS = -version-info 1:0:0
+pkgconfig_DATA = libmmrpc.pc
+pkgconfigdir = $(libdir)/pkgconfig
+
+
###############################################################################
diff --git a/linux/src/mm/libmmrpc.pc.in b/linux/src/mm/libmmrpc.pc.in
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libmmrpc
+Description: MmRpc library for IPC
+Version: @VERSION@
+Requires:
+Libs: -L${libdir} -lmmrpc
+Cflags: -I${includedir}/ti/ipc/mm