[sword-svn] r2542 - trunk/cmake
greg.hellings at crosswire.org
greg.hellings at crosswire.org
Wed Aug 25 05:26:59 MST 2010
Author: greg.hellings
Date: 2010-08-25 05:26:59 -0700 (Wed, 25 Aug 2010)
New Revision: 2542
Modified:
trunk/cmake/bindings.cmake
Log:
Merging patch from Dmitrijs Ledkovs which corrects linking paths so that he
can build the Python bindings into a Debian package.
Modified: trunk/cmake/bindings.cmake
===================================================================
--- trunk/cmake/bindings.cmake 2010-08-23 04:58:55 UTC (rev 2541)
+++ trunk/cmake/bindings.cmake 2010-08-25 12:26:59 UTC (rev 2542)
@@ -1,9 +1,9 @@
#####################################################################################################
#
# A system to, hopefully, build the Sword bindings which are asked for. Currently I only know and
-# therefore only support the Python bindings. YMMV for it, please submit patches or suggestions.
+# therefore only support Python & Perl bindings. YMMV for it, please submit patches or suggestions.
# I will try to get them integrated into the system if I can. If there are bindings that you need
-# other than the Python/Swig bindings, then you should probably speak up now.
+# other than the Python|Perl/Swig bindings, then you should probably speak up now.
#####################################################################################################
# SWIG
@@ -63,6 +63,7 @@
COMMAND echo " include_dirs=['${SWORD_SWIG_SOURCE}', '${CMAKE_CURRENT_SOURCE_DIR}/include', '${SWORD_SWIG_SOURCE}/..', '${SWORD_SWIG_SOURCE}/../..']," >> ${SWORD_SWIG_BINARY}/python/setup.py
COMMAND echo " ext_modules = [Extension(\"_Sword\", [\"Sword.cxx\"]," >> ${SWORD_SWIG_BINARY}/python/setup.py
COMMAND echo " libraries=[('sword')], " >> ${SWORD_SWIG_BINARY}/python/setup.py
+ COMMAND echo " library_dirs=[('${CMAKE_CURRENT_BINARY_DIR}')], " >> ${SWORD_SWIG_BINARY}/python/setup.py
COMMAND echo " )], " >> ${SWORD_SWIG_BINARY}/python/setup.py
COMMAND echo ")" >> ${SWORD_SWIG_BINARY}/python/setup.py
COMMAND echo "Python bindings built, to install change into ${SWORD_SWIG_BINARY}/python and type 'python setup.py install'"
More information about the sword-cvs
mailing list