You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by aj...@apache.org on 2006/10/12 15:26:04 UTC

svn commit: r463243 - in /incubator/tuscany/cpp/sca: Makefile.am makebindist.sh

Author: ajborley
Date: Thu Oct 12 06:26:02 2006
New Revision: 463243

URL: http://svn.apache.org/viewvc?view=rev&rev=463243
Log:
Updates to Linux build files to enable python & ruby building if env variables are there

Modified:
    incubator/tuscany/cpp/sca/Makefile.am
    incubator/tuscany/cpp/sca/makebindist.sh

Modified: incubator/tuscany/cpp/sca/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/Makefile.am?view=diff&rev=463243&r1=463242&r2=463243
==============================================================================
--- incubator/tuscany/cpp/sca/Makefile.am (original)
+++ incubator/tuscany/cpp/sca/Makefile.am Thu Oct 12 06:26:02 2006
@@ -4,7 +4,7 @@
 
 data_DATA = INSTALL README LICENSE COPYING NOTICE GettingStarted.html
 nobase_data_DATA = xsd/*.*
-EXTRA_DIST = LICENSE COPYING INSTALL README NOTICE GettingStarted.html scatest.sh xsd doc
+EXTRA_DIST = LICENSE COPYING INSTALL README NOTICE GettingStarted.html xsd doc
 dist-hook:
 	rm -rf `find $(distdir)/ -type d -name .svn`
 	rm -rf `find $(distdir)/ -type d -name .deps`

Modified: incubator/tuscany/cpp/sca/makebindist.sh
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/makebindist.sh?view=diff&rev=463243&r1=463242&r2=463243
==============================================================================
--- incubator/tuscany/cpp/sca/makebindist.sh (original)
+++ incubator/tuscany/cpp/sca/makebindist.sh Thu Oct 12 06:26:02 2006
@@ -31,14 +31,34 @@
 fi
 echo "Using SDO installed at $TUSCANY_SDOCPP"
 
+if [ x$PYTHON_LIB = x ]; then
+echo "PYTHON_LIB not set. Python extension will not be built"
+elif [ x$PYTHON_INCLUDE = x ]; then
+echo "PYTHON_INCLUDE not set. Python extension will not be built"
+elif [ x$PYTHON_VERSION = x ]; then
+echo "PYTHON_VERSION not set. Python extension will not be built"
+else
+echo "Building PYTHON extension with Python $PYTHON_VERSION installed at $PYTHON_LIB, $PYTHON_INCLUDE"
+ENABLE_PYTHON=--enable-python
+fi
+
+if [ x$RUBY_LIB = x ]; then
+echo "RUBY_LIB not set. Ruby extension will not be built"
+elif [ x$RUBY_INCLUDE = x ]; then
+echo "RUBY_INCLUDE not set. Ruby extension will not be built"
+else
+echo "Building Ruby extension with Ruby installed at $RUBY_LIB, $RUBY_INCLUDE"
+ENABLE_RUBY=--enable-ruby
+fi
+
 cd $TUSCANY_SCACPP_HOME
-./configure --prefix=${TUSCANY_SCACPP_HOME}/deploy --enable-static=no
+./configure --prefix=${TUSCANY_SCACPP_HOME}/deploy --enable-static=no ${ENABLE_RUBY} ${ENABLE_PYTHON}
 make
 make install
 
 cd ${TUSCANY_SCACPP_HOME}/samples
 export TUSCANY_SCACPP=${TUSCANY_SCACPP_HOME}/deploy
-./configure --prefix=${TUSCANY_SCACPP_HOME}/deploy --enable-static=no
+./configure --prefix=${TUSCANY_SCACPP_HOME}/deploy --enable-static=no ${ENABLE_RUBY} ${ENABLE_PYTHON}
 make
 make install
 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org