[openrtm-commit:00727] r2329 - trunk/OpenRTM-aist/utils/rtm-config

openrtm @ openrtm.org openrtm @ openrtm.org
2012年 2月 17日 (金) 11:28:41 JST


Author: geoff
Date: 2012-02-17 11:28:40 +0900 (Fri, 17 Feb 2012)
New Revision: 2329

Modified:
   trunk/OpenRTM-aist/utils/rtm-config/Makefile.am
   trunk/OpenRTM-aist/utils/rtm-config/rtm-config.in
Log:
Added --cflags-only-I option


Modified: trunk/OpenRTM-aist/utils/rtm-config/Makefile.am
===================================================================
--- trunk/OpenRTM-aist/utils/rtm-config/Makefile.am	2012-02-09 01:37:05 UTC (rev 2328)
+++ trunk/OpenRTM-aist/utils/rtm-config/Makefile.am	2012-02-17 02:28:40 UTC (rev 2329)
@@ -28,6 +28,7 @@
 	echo 'rtm_exec_prefix="'${exec_prefix}'"' >> $@
 	echo 'rtm_cxx="'${CXX}'"' >> $@
 	echo 'rtm_cflags="'${CXXFLAGS}' -I'${prefix}'/include -I'${coil_includedir}' -I'${rtm_includedir}' -I'${rtm_includedir}'/rtm/idl"' >> $@
+	echo 'rtm_cflags_i="-I'${prefix}'/include -I'${coil_includedir}' -I'${rtm_includedir}' -I'${rtm_includedir}'/rtm/idl"' >> $@
 	echo 'rtm_libs="'${LDFLAGS}' -L'${prefix}'/lib '${LIBS}' -lRTC -lcoil"' >> $@
 	echo 'rtm_libdir="'${rtm_libdir}'"' >> $@
 	echo 'rtm_version="'${RTM_VERSION}'"' >> $@

Modified: trunk/OpenRTM-aist/utils/rtm-config/rtm-config.in
===================================================================
--- trunk/OpenRTM-aist/utils/rtm-config/rtm-config.in	2012-02-09 01:37:05 UTC (rev 2328)
+++ trunk/OpenRTM-aist/utils/rtm-config/rtm-config.in	2012-02-17 02:28:40 UTC (rev 2329)
@@ -24,6 +24,7 @@
         [--version]
         [--cxx]
         [--cflags]
+        [--cflags-only-I]
         [--libs]
         [--libdir]
         [--orb]
@@ -70,12 +71,15 @@
     --cflags)
       echo_cflags=yes
       ;;
+    --cflags-only-I)
+      echo_cflags_i=yes
+      ;;
     --libs)
       echo_libs=yes
       ;;
     --libdir)
       echo_libdir=yes
-	  ;;
+      ;;
     --orb)
       echo_orb=yes
       ;;
@@ -108,6 +112,10 @@
       echo $rtm_cflags
 fi
 
+if test "$echo_cflags_i" = "yes"; then
+      echo $rtm_cflags_i
+fi
+
 if test "$echo_libs" = "yes"; then
       echo $rtm_libs
 fi      



openrtm-commit メーリングリストの案内