build: Add stack and logger pathes to pkg-config
authorPhilippe Coval <philippe.coval@osg.samsung.com>
Fri, 10 Mar 2017 18:07:29 +0000 (19:07 +0100)
committerAshok Babu Channa <ashok.channa@samsung.com>
Mon, 20 Mar 2017 06:15:15 +0000 (06:15 +0000)
This will prevent errors, like:

/usr/include/iotivity/resource/octypes.h:32:27: \
 fatal error: ocstackconfig.h: No such file or directory

It was tested on Debian

Bug: https://jira.iotivity.org/browse/IOT-1745
Change-Id: I8a4f06cd05158e8659628a654dfdbe7e1784e4bc
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17845
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Mats Wichmann <mats@linux.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
iotivity.pc.in

index ccd2cfe..d3d88a1 100644 (file)
@@ -13,6 +13,8 @@ URL: https://www.iotivity.org
 Requires:
 Libs: -L${libdir} -loc -loc_logger -loc_logger_core -loctbstack -lconnectivity_abstraction @LIBS@
 Cflags: -I${includedir}/resource \
+                       -I${includedir}/resource/stack \
+                       -I${includedir}/resource/oc_logger \
                        -I${includedir}/c_common \
                        -I${svcincludedir}/easy-setup \
                        -I${svcincludedir}/notification \