Alexander Afanasyev | b2cf5c0 | 2016-03-21 11:04:28 -0700 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | NDN_CXX_COMMIT=${NDN_CXX_COMMIT:-master} |
| 4 | NFD_COMMIT=${NFD_COMMIT:-master} |
| 5 | |
| 6 | GIT=${GIT:-https://github.com/named-data} |
| 7 | |
| 8 | mkdir build 2>/dev/null || true |
| 9 | path="$(pwd)" |
| 10 | |
| 11 | ####################################### |
| 12 | |
| 13 | # rm -Rf build/ndn-cxx |
| 14 | git clone ${GIT}/ndn-cxx build/ndn-cxx |
| 15 | pushd build/ndn-cxx |
| 16 | git checkout ${NDN_CXX_COMMIT} |
| 17 | ./waf configure --prefix="${path}/build/deps" |
| 18 | ./waf build |
| 19 | ./waf install |
| 20 | popd |
| 21 | |
| 22 | #################################### |
| 23 | |
| 24 | # rm -Rf build/NFD |
| 25 | git clone ${GIT}/NFD build/NFD |
| 26 | pushd build/NFD |
| 27 | git checkout ${NFD_COMMIT} |
| 28 | git submodule update --init |
| 29 | PKG_CONFIG_PATH="${path}/build/deps/lib/pkgconfig:${PKG_CONFIG_PATH}" \ |
| 30 | ./waf configure --prefix="${path}/build/deps" |
| 31 | ./waf build |
| 32 | ./waf install |
| 33 | popd |