]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/commitdiff
Linux: Add package config information to mmrpc
authorArnie Reynoso <arnier@ti.com>
Thu, 16 Jan 2014 17:05:52 +0000 (09:05 -0800)
committerChris 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

configure.ac
linux/src/mm/Makefile.am
linux/src/mm/libmmrpc.pc.in [new file with mode: 0644]

index ba749ab8946f64acc1f93eb4907d65be3e3aa435..c1dc1193ef21cb2c3b39d4f65ecdc88d66666caf 100644 (file)
@@ -1,5 +1,5 @@
 #
-#   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
@@ -121,6 +121,7 @@ AC_CONFIG_FILES([linux/etc/Makefile])
 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)
@@ -1,5 +1,5 @@
 ##
-##  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
@@ -73,4 +73,8 @@ libmmrpc_la_SOURCES = \
 # 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
new file mode 100644 (file)
index 0000000..8f9eae8
--- /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