File: build-release.sh

package info (click to toggle)
sword 1.8.1%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 13,976 kB
  • sloc: cpp: 45,938; sh: 11,833; ansic: 7,976; objc: 1,801; java: 1,724; makefile: 1,300; cs: 1,007; perl: 784; xml: 736; pascal: 681; tcl: 350; python: 79
file content (24 lines) | stat: -rwxr-xr-x 895 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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 -j10
cd ..

echo "Now the library has been built, along with the Perl and Python bindings. \
If you now execute 'make install' from the build directory you will \
install the library to /opt/sword if you have privileges to write there \
with the account you execute the install from."