aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahoo-inc.com>2017-08-17 10:58:17 +0200
committerGeir Storli <geirst@yahoo-inc.com>2017-08-17 10:58:17 +0200
commita0d6cef6e791fc7d2b0bc4eeaccc48aebb913486 (patch)
tree1ed0b9e1db6bb4a11a2b8bb23535677f53f793a9 /README.md
parent058e91c3edd6fcf69d66945f2e3ea5949df32621 (diff)
Add script to bootstrap cpp build.
Diffstat (limited to 'README.md')
-rw-r--r--README.md22
1 files changed, 7 insertions, 15 deletions
diff --git a/README.md b/README.md
index 7c71edec6d8..5988bad6787 100644
--- a/README.md
+++ b/README.md
@@ -34,21 +34,13 @@ Java modules can be built on any environment having Java and Maven:
mvn install
### Build C++ modules
-`<builddir>` should be replaced with the name of the directory in which you'd like to build Vespa. `<sourcedir>` should be replaced with the directory in which you've cloned/unpacked the source tree.
-
- source /opt/rh/devtoolset-6/enable
- sh bootstrap.sh full
- mkdir <builddir>
- cd <builddir>
- cmake3 -DCMAKE_INSTALL_PREFIX=/opt/vespa \
- -DJAVA_HOME=/usr/lib/jvm/java-openjdk \
- -DEXTRA_LINK_DIRECTORY="/opt/vespa-boost/lib;/opt/vespa-libtorrent/lib;/opt/vespa-zookeeper-c-client/lib;/opt/vespa-cppunit/lib;/usr/lib64/llvm3.9/lib" \
- -DEXTRA_INCLUDE_DIRECTORY="/opt/vespa-boost/include;/opt/vespa-libtorrent/include;/opt/vespa-zookeeper-c-client/include;/opt/vespa-cppunit/include;/usr/include/llvm3.9" \
- -DCMAKE_INSTALL_RPATH="/opt/vespa/lib64;/opt/vespa-boost/lib;/opt/vespa-libtorrent/lib;/opt/vespa-zookeeper-c-client/lib;/opt/vespa-cppunit/lib;/usr/lib/jvm/java-1.8.0/jre/lib/amd64/server;/usr/include/llvm3.9" \
- -DCMAKE_BUILD_RPATH=/opt/vespa/lib64 \
- <sourcedir>
- make
- ctest3
+Replace `<build-dir>` with the name of the directory in which you'd like to build Vespa.
+Replace `<source-dir>` with the directory in which you've cloned/unpacked the source tree.
+
+ sh bootstrap-cpp.sh <source-dir> <build-dir>
+ cd <build-dir>
+ make -j <num-threads>
+ ctest3 -j <num-threads>
### Create RPM packages
sh dist.sh VERSION && rpmbuild -ba ~/rpmbuild/SPECS/vespa-VERSION.spec