File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ language : cpp
2+ sudo : false
3+
4+ matrix :
5+ include :
6+ - os : linux
7+ compiler : clang
8+ sudo : false
9+
10+ script :
11+ - ./mason build ${MASON_NAME} ${MASON_VERSION}
12+
13+ after_success :
14+ - ./mason publish ${MASON_NAME} ${MASON_VERSION}
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ MASON_NAME=sparsepp
4+ MASON_VERSION=0.95
5+ MASON_HEADER_ONLY=true
6+
7+ . ${MASON_DIR} /mason.sh
8+
9+ function mason_load_source {
10+ mason_download \
11+ https://github.com/greg7mdp/sparsepp/archive/v${MASON_VERSION} .tar.gz \
12+ d6ff87aefacd1802000c9495c5f819974ddf4d6a
13+
14+ mason_extract_tar_gz
15+
16+ export MASON_BUILD_PATH=${MASON_ROOT} /.build/${MASON_NAME} -${MASON_VERSION}
17+ }
18+
19+ function mason_compile {
20+ mkdir -p ${MASON_PREFIX} /include/
21+ cp -r sparsepp ${MASON_PREFIX} /include/
22+ }
23+
24+ function mason_cflags {
25+ echo " -I${MASON_PREFIX} /include"
26+ }
27+
28+ function mason_ldflags {
29+ :
30+ }
31+
32+
33+ mason_run " $@ "
You can’t perform that action at this time.
0 commit comments