| 1 | # Wedge definition for cmark
 | 
| 2 | #
 | 
| 3 | # Loaded by deps/wedge.sh.
 | 
| 4 | 
 | 
| 5 | set -o nounset
 | 
| 6 | set -o pipefail
 | 
| 7 | set -o errexit
 | 
| 8 | 
 | 
| 9 | # sourced
 | 
| 10 | WEDGE_NAME='cmark'
 | 
| 11 | WEDGE_VERSION='0.29.0'
 | 
| 12 | WEDGE_IS_ABSOLUTE=1  # TODO: try relaxing
 | 
| 13 | 
 | 
| 14 | wedge-make() {
 | 
| 15 |   local src_dir=$1
 | 
| 16 |   local build_dir=$2
 | 
| 17 |   local install_dir=$3
 | 
| 18 | 
 | 
| 19 |   pushd $build_dir
 | 
| 20 | 
 | 
| 21 |   time cmake -DCMAKE_INSTALL_PREFIX=$install_dir $src_dir
 | 
| 22 | 
 | 
| 23 |   time make
 | 
| 24 | 
 | 
| 25 |   # make test
 | 
| 26 | 
 | 
| 27 |   popd
 | 
| 28 | }
 | 
| 29 | 
 | 
| 30 | wedge-install() {
 | 
| 31 |   local build_dir=$1
 | 
| 32 | 
 | 
| 33 |   pushd $build_dir
 | 
| 34 | 
 | 
| 35 |   time make install
 | 
| 36 | 
 | 
| 37 |   popd
 | 
| 38 | }
 | 
| 39 | 
 | 
| 40 | wedge-smoke-test() {
 | 
| 41 |   local install_dir=$1
 | 
| 42 | 
 | 
| 43 |   ldd $install_dir/lib/libcmark.so.$WEDGE_VERSION
 | 
| 44 | }
 |