osrm-backend/third_party/mason/scripts/rapidjson/1.1.0/script.sh

36 lines
689 B
Bash
Raw Normal View History

#!/usr/bin/env bash
MASON_NAME=rapidjson
MASON_VERSION=1.1.0
MASON_HEADER_ONLY=true
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/miloyip/rapidjson/archive/v1.1.0.tar.gz \
eb129f3e940d4bc220a16cfb1b6625e79a09b2d4
mason_extract_tar_gz
export MASON_BUILD_PATH=${MASON_ROOT}/.build/rapidjson-1.1.0
}
function mason_compile {
mkdir -p ${MASON_PREFIX}
cp -rv include ${MASON_PREFIX}
}
function mason_cflags {
echo -I${MASON_PREFIX}/include
}
function mason_ldflags {
: # We're only using the full path to the archive, which is output in static_libs
}
function mason_clean {
make clean
}
mason_run "$@"