SDOCM00103659: Add pkg-config support
authorChris Ring <cring@ti.com>
Tue, 4 Feb 2014 22:21:57 +0000 (14:21 -0800)
committerChris Ring <cring@ti.com>
Tue, 4 Feb 2014 22:21:57 +0000 (14:21 -0800)
This builds on commit 6348f9de, which added pkg-config support for
the mmrpc lib.  This commit adds pkg-config support
for the tiipc and tiipcutils libraries.

Also updates .gitignore to ignore the generated *.pc files.

.gitignore
configure.ac
linux/src/api/Makefile.am
linux/src/api/libtiipc.pc.in [new file with mode: 0644]
linux/src/utils/Makefile.am
linux/src/utils/libtiipcutils.pc.in [new file with mode: 0644]

index cd98491fa56868b47f4c336b99151dae23b41204..2310fbeebb104bdbff4a4449b1b93523b2aa5d43 100644 (file)
@@ -46,6 +46,7 @@ packages/ti/srvmgr/omx/OmxSrvMgr.h
 /linux/src/*/*.la
 /linux/src/*/.libs
 /linux/src/*/*.o
+/linux/src/*/*.pc
 /linux/src/daemon/lad_*
 /linux/src/tests/GateMPApp
 /linux/src/tests/MessageQApp
index 6bb27bcc40663f424ec9c5edde905b43d55e6f76..da8b6d51e0b47040d51c774208ca7ccc391562a3 100644 (file)
@@ -125,7 +125,9 @@ AM_CONDITIONAL([DRM], [test "x$DRM_PREFIX" != "x"])
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_FILES([linux/etc/Makefile])
 AC_CONFIG_FILES([linux/src/utils/Makefile])
+AC_CONFIG_FILES([linux/src/utils/libtiipcutils.pc])
 AC_CONFIG_FILES([linux/src/api/Makefile])
+AC_CONFIG_FILES([linux/src/api/libtiipc.pc])
 AC_CONFIG_FILES([linux/src/mm/Makefile])
 AC_CONFIG_FILES([linux/src/mm/libmmrpc.pc])
 AC_CONFIG_FILES([linux/src/daemon/Makefile])
index a0780343d98806a26132b2ff32ec11555a746552..940261523d443a6512da930d5ff34feb30afdefc 100644 (file)
@@ -87,5 +87,8 @@ endif
 
 # Add version info to the shared library
 libtiipc_la_LDFLAGS = -version-info 1:0:0
-                                               
+
+pkgconfig_DATA          = libtiipc.pc
+pkgconfigdir            = $(libdir)/pkgconfig
+
 ###############################################################################
diff --git a/linux/src/api/libtiipc.pc.in b/linux/src/api/libtiipc.pc.in
new file mode 100644 (file)
index 0000000..b05c89a
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libtiipc
+Description: TI IPC library
+Version: @VERSION@
+Requires.private: tiipcutils
+Libs: -L${libdir} -ltiipc
+Cflags: -I${includedir}
index 3c14ffc598bbab4212f3d3f5fd407739fab0e08c..b3c9c890b82ad892fbfd7defbe9eefc14541650b 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
@@ -82,4 +82,7 @@ libtiipcutils_lad_la_SOURCES =    \
 libtiipcutils_la_LDFLAGS = -version-info 1:0:0
 libtiipcutils_lad_la_LDFLAGS = -version-info 1:0:0
 
+pkgconfig_DATA          = libtiipcutils.pc
+pkgconfigdir            = $(libdir)/pkgconfig
+
 ###############################################################################
diff --git a/linux/src/utils/libtiipcutils.pc.in b/linux/src/utils/libtiipcutils.pc.in
new file mode 100644 (file)
index 0000000..1dc7f3d
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libtiipcutils
+Description: TI IPC utility library
+Version: @VERSION@
+Requires:
+Libs: -L${libdir} -ltiipcutils
+Cflags: -I${includedir}