aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPradeep Venkatasubbarao2014-01-06 03:03:01 -0600
committerPradeep Venkatasubbarao2014-07-16 22:19:52 -0500
commit90e1c9a144eb372bc359cb3a1a6748a509505961 (patch)
treef29744e80a4dde74cd611445abb0030c767b7ecb
parentb27bd8a7eb9232ff6fe88eb095470a285125189c (diff)
downloadrepo-libdce-90e1c9a144eb372bc359cb3a1a6748a509505961.tar.gz
repo-libdce-90e1c9a144eb372bc359cb3a1a6748a509505961.tar.xz
repo-libdce-90e1c9a144eb372bc359cb3a1a6748a509505961.zip
[Linux] Add automatic search path for IPC headers
Adds the automatic search header mechanism using pkg-config for libmmrpc. Change-Id: If4aa61cb598567455a1342be358338e4adfcc3e0 Signed-off-by: Pradeep Venkatasubbarao <pradeepv@ti.com>
-rw-r--r--Makefile.am6
-rw-r--r--README2
-rw-r--r--configure.ac16
3 files changed, 12 insertions, 12 deletions
diff --git a/Makefile.am b/Makefile.am
index dfac4f5..abf9424 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -17,7 +17,7 @@ CE_CFLAGS = \
17 -I$(top_srcdir)/packages/xdais \ 17 -I$(top_srcdir)/packages/xdais \
18 -I$(top_srcdir)/packages/xdctools \ 18 -I$(top_srcdir)/packages/xdctools \
19 -I$(top_srcdir)/packages/framework_components \ 19 -I$(top_srcdir)/packages/framework_components \
20 -I$(IPC_HEADERS)/ \ 20 `pkg-config --cflags libmmrpc` \
21 -DBUILDOS_LINUX=1 -DDCE_DEBUG_LEVEL=1 \ 21 -DBUILDOS_LINUX=1 -DDCE_DEBUG_LEVEL=1 \
22 -DDCE_DEBUG_ENABLE=1 \ 22 -DDCE_DEBUG_ENABLE=1 \
23 -Wno-pointer-to-int-cast 23 -Wno-pointer-to-int-cast
@@ -25,8 +25,8 @@ CE_CFLAGS = \
25 25
26libdce_la_SOURCES = libdce.c memplugin_linux.c libdce_linux.c 26libdce_la_SOURCES = libdce.c memplugin_linux.c libdce_linux.c
27libdce_la_CFLAGS = $(WARN_CFLAGS) $(CE_CFLAGS) $(DRM_CFLAGS) 27libdce_la_CFLAGS = $(WARN_CFLAGS) $(CE_CFLAGS) $(DRM_CFLAGS)
28libdce_la_LDFLAGS = -no-undefined -version-info 1:0:0 28libdce_la_LDFLAGS = -no-undefined -version-info 1:0:0 `pkg-config --libs libmmrpc`
29libdce_la_LIBADD = $(DRM_LIBS) -lmmrpc 29libdce_la_LIBADD = $(DRM_LIBS)
30 30
31libdce_la_includedir = $(includedir)/dce 31libdce_la_includedir = $(includedir)/dce
32libdce_la_include_HEADERS = libdce.h 32libdce_la_include_HEADERS = libdce.h
diff --git a/README b/README
index 1559ed4..8b67c07 100644
--- a/README
+++ b/README
@@ -77,7 +77,7 @@ INSTALL_ROOT/armle-v7/bin/dce_enc_test
77########################## For Linux ########################## 77########################## For Linux ##########################
78 78
79Exporting LIBDCE variables: 79Exporting LIBDCE variables:
80export IPC_HEADERS=<path to IPC Headers> (MmRpc.h) 80None
81 81
82Building: 82Building:
83 83
diff --git a/configure.ac b/configure.ac
index 98c0c33..742ad53 100644
--- a/configure.ac
+++ b/configure.ac
@@ -69,14 +69,14 @@ dnl *** checks for dependancy libraries ***
69 69
70dnl *** set variables based on configure arguments *** 70dnl *** set variables based on configure arguments ***
71 71
72if test "$IPC_HEADERS" != "" ; then 72#if test "$IPC_HEADERS" != "" ; then
73 if test "$cross_compiling" != "yes" ; then 73# if test "$cross_compiling" != "yes" ; then
74 AC_CHECK_FILES(["$IPC_HEADERS"],,[AC_MSG_ERROR(["$IPC_HEADERS" not found, Set path variable IPC_HEADERS])]) 74# AC_CHECK_FILES(["$IPC_HEADERS"],,[AC_MSG_ERROR(["$IPC_HEADERS" not found, Set path variable IPC_HEADERS])])
75 fi 75# fi
76 AC_SUBST(IPC_HEADERS) 76# AC_SUBST(IPC_HEADERS)
77else 77#else
78 AC_MSG_ERROR([Set path variable IPC_HEADERS]) 78# AC_MSG_ERROR([Set path variable IPC_HEADERS])
79fi 79#fi
80 80
81AC_CONFIG_FILES([ 81AC_CONFIG_FILES([
82libdce.pc 82libdce.pc