[sword-svn] r2593 - trunk/cmake
greg.hellings at crosswire.org
greg.hellings at crosswire.org
Tue Dec 7 07:33:19 MST 2010
Author: greg.hellings
Date: 2010-12-07 07:33:19 -0700 (Tue, 07 Dec 2010)
New Revision: 2593
Added:
trunk/cmake/build-debug.sh
trunk/cmake/build-release.sh
Log:
Merging a pair of sample CMake invocation scripts.
Added: trunk/cmake/build-debug.sh
===================================================================
--- trunk/cmake/build-debug.sh (rev 0)
+++ trunk/cmake/build-debug.sh 2010-12-07 14:33:19 UTC (rev 2593)
@@ -0,0 +1,27 @@
+#!/bin/bash
+#
+# A sample script showing how to build most of the options available to this system.
+# Invoke it from the top directory of SWORD by calling $ cmake/build-debug.sh
+#
+
+mkdir -p build
+cd build
+# Configure with Python and Perl bindings, examples, tests and a debug build into
+# a shared library
+cmake -DSWORD_BINDINGS="Python Perl" \
+ -DSWORD_BUILD_EXAMPLES="Yes" \
+ -DSWORD_BUILD_TESTS="Yes" \
+ -DLIBSWORD_LIBRARY_TYPE="Shared" \
+ -DCMAKE_BUILD_TYPE="Debug" ..
+make -j5
+cd bindings/swig/perl
+make
+cd ../python
+python setup.py build
+
+echo "Now the library has been built, along with the Perl and Python bindings. \
+ If you would like to install, you may now do so by changing into the build \
+ directory and typing \"sudo make install\". Python bindings may be installed \
+ by then changing into tye build/bindings/swig/python diretory and typing \"sudo python \
+ setup.py install\" and Perl bindings may be installed by changing into the \
+ build/bindings/swig/perl directory and issuing the command \"sudo make install\"."
Property changes on: trunk/cmake/build-debug.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: trunk/cmake/build-release.sh
===================================================================
--- trunk/cmake/build-release.sh (rev 0)
+++ trunk/cmake/build-release.sh 2010-12-07 14:33:19 UTC (rev 2593)
@@ -0,0 +1,29 @@
+#!/bin/bash
+#
+# A sample script showing how to build most of the options available to this system.
+# Invoke it from the top directory of SWORD by calling $ cmake/build-release.sh
+#
+
+mkdir -p build
+cd build
+# Configure with Python and Perl bindings, examples, tests and a debug build into
+# a shared library, plus static option as well. They will be installed to the
+# /opt/sword directory
+cmake -DSWORD_BINDINGS="Python Perl" \
+ -DSWORD_BUILD_EXAMPLES="Yes" \
+ -DSWORD_BUILD_TESTS="Yes" \
+ -DLIBSWORD_LIBRARY_TYPE="Shared Static" \
+ -DCMAKE_BUILD_TYPE="Release" \
+ -DCMAKE_INSTALL_PREFIX="/opt/sword" ..
+make -j5
+cd bindings/swig/perl
+make
+cd ../python
+python setup.py build
+
+echo "Now the library has been built, along with the Perl and Python bindings. \
+ If you would like to install, you may now do so by changing into the build \
+ directory and typing \"sudo make install\". Python bindings may be installed \
+ by then changing into tye build/bindings/swig/python diretory and typing \"sudo python \
+ setup.py install\" and Perl bindings may be installed by changing into the \
+ build/bindings/swig/perl directory and issuing the command \"sudo make install\"."
Property changes on: trunk/cmake/build-release.sh
___________________________________________________________________
Added: svn:executable
+ *
More information about the sword-cvs
mailing list