-
Notifications
You must be signed in to change notification settings - Fork 565
/
Copy pathbuild_tarballs.jl
31 lines (23 loc) · 999 Bytes
/
build_tarballs.jl
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
# Build script for cereal: C++ header-only library for serialization.
# This is basically just a dummy package that installs header files, and makes
# them available for other packages.
using BinaryBuilder
name = "cereal"
version = v"1.3.2"
sources = [
ArchiveSource("https://github.com/USCILab/cereal/archive/refs/tags/v$(version).tar.gz",
"16a7ad9b31ba5880dac55d62b5d6f243c3ebc8d46a3514149e56b5e7ea81f85f")
]
script = raw"""
cd ${WORKSPACE}/srcdir/cereal-*/
mkdir -p "${includedir}"
cp -vr include/* "${includedir}/."
"""
# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line.
platforms = [AnyPlatform()]
# Cereal produces nothing, since it is header-only.
products = Product[]
# Dependencies that must be installed before this package can be built.
dependencies = []
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; preferred_gcc_version=v"6", julia_compat="1.7")