blob: 244d0f81efd8d0ab549164b4509624f33bfcc914 [file] [log] [blame]
Alexander Afanasyevb2cf5c02016-03-21 11:04:28 -07001#!/usr/bin/env bash
2
3NDN_CXX_COMMIT=${NDN_CXX_COMMIT:-master}
4NFD_COMMIT=${NFD_COMMIT:-master}
5
6GIT=${GIT:-https://github.com/named-data}
7
8mkdir build 2>/dev/null || true
9path="$(pwd)"
10
11#######################################
12
Alexander Afanasyev11ae34d2016-03-21 11:55:16 -070013rm -Rf build/ndn-cxx
Alexander Afanasyevb2cf5c02016-03-21 11:04:28 -070014git clone ${GIT}/ndn-cxx build/ndn-cxx
15pushd build/ndn-cxx
16git checkout ${NDN_CXX_COMMIT}
17./waf configure --prefix="${path}/build/deps"
18./waf build
19./waf install
20popd
21
22####################################
23
Alexander Afanasyev11ae34d2016-03-21 11:55:16 -070024rm -Rf build/NFD
Alexander Afanasyevb2cf5c02016-03-21 11:04:28 -070025git clone ${GIT}/NFD build/NFD
26pushd build/NFD
27git checkout ${NFD_COMMIT}
28git submodule update --init
29PKG_CONFIG_PATH="${path}/build/deps/lib/pkgconfig:${PKG_CONFIG_PATH}" \
30 ./waf configure --prefix="${path}/build/deps"
31./waf build
32./waf install
33popd