Skip to content

Commit cf2c06c

Browse files
authored
Merge pull request #412 from mapbox/sprasepp
sparsepp
2 parents 9d4e91f + dcbea98 commit cf2c06c

2 files changed

Lines changed: 47 additions & 0 deletions

File tree

scripts/sparsepp/0.95/.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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}

scripts/sparsepp/0.95/script.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 "$@"

0 commit comments

Comments
 (0)