blob: e8811bd9fe05ecbbc0e892a639c6581c9cac7fdb [file] [log] [blame]
Alexander Afanasyeva87e0a82014-10-21 14:09:19 -04001#!/usr/bin/env bash
2set -x
3
4# Cleanup
5sudo ./waf distclean -j1 --color=yes
6
7COVERAGE=$( python -c "print '--with-coverage' if 'code-coverage' in '$JOB_NAME' else ''" )
8
9sudo rm -Rf /usr/local/include/ndn-cxx
10sudo rm -f /usr/local/lib/libndn-cxx*
11sudo rm -f /usr/local/lib/pkgconfig/libndn-cxx*
12
13# Configure
14CXXFLAGS="-std=c++03 -pedantic -Wall -Wno-long-long -O2 -g -Werror" \
15 ./waf -j1 configure --color=yes --with-tests --without-pch $COVERAGE
16
17# Build
18./waf --color=yes -j1
19
20# Install
21sudo ./waf -j1 --color=yes install
22sudo ldconfig || true