forked from xtensor-stack/Xtensor.R
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvendor
More file actions
executable file
·48 lines (43 loc) · 1.28 KB
/
vendor
File metadata and controls
executable file
·48 lines (43 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
XTL_VERSION=0.8.1
XSIMD_VERSION=13.2.0
XTENSOR_VERSION=0.27.0
XTENSOR_R_VERSION=0.17.0
# xtl
if [ -d "./inst/include/xtl" ]
then
echo "xtl headers already vendored in source package"
else
git clone https://github.com/xtensor-stack/xtl --branch ${XTL_VERSION}
cp -r xtl/include/xtl ./inst/include
rm -rf xtl
# Add newline in the end of xhalf_float_impl.hpp for R CRAN checks
echo "" >> ./inst/include/xtl/xhalf_float_impl.hpp
fi
# xsimd
if [ -d "./inst/include/xsimd" ]
then
echo "xsimd headers already vendored in source package"
else
git clone https://github.com/xtensor-stack/xsimd --branch ${XSIMD_VERSION}
cp -r xsimd/include/xsimd ./inst/include
rm -rf xsimd
fi
# xtensor
if [ -d "./inst/include/xtensor" ]
then
echo "xtensor headers already vendored in source package"
else
git clone https://github.com/xtensor-stack/xtensor --branch ${XTENSOR_VERSION}
DIRECTORY=$(cd `dirname $0` && pwd)
cp -r xtensor/include/xtensor ./inst/include
rm -rf xtensor
fi
# xtensor-r
if [ -d "./inst/include/xtensor-r" ]
then
echo "xtensor-r headers already vendored in source package"
else
git clone https://github.com/xtensor-stack/xtensor-r --branch ${XTENSOR_R_VERSION}
cp -r xtensor-r/include/xtensor-r ./inst/include
rm -rf xtensor-r
fi