-
Notifications
You must be signed in to change notification settings - Fork 508
/
build_tarballs.jl
40 lines (33 loc) · 1.23 KB
/
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
32
33
34
35
36
37
38
39
40
using BinaryBuilder
name = "object_store_ffi"
version = v"0.5.1"
sources = [
# https://github.com/RelationalAI/object_store_ffi/commit/991142de37e8b9d68309c2fcdc29efdb6ce7d864
GitSource("https://github.com/RelationalAI/object_store_ffi.git", "991142de37e8b9d68309c2fcdc29efdb6ce7d864")
]
# Bash recipe for building across all platforms
script = raw"""
cd ${WORKSPACE}/srcdir/object_store_ffi/
cargo rustc --release --lib --crate-type=cdylib
install -Dvm 755 "target/${rust_target}/release/libobject_store_ffi.${dlext}" "${libdir}/libobject_store_ffi.${dlext}"
"""
# We could potentially support more platforms, if required.
# Except perhaps i686 Windows and Musl systems.
platforms = [
Platform("aarch64", "macos"),
Platform("x86_64", "linux"),
Platform("x86_64", "macos"),
Platform("aarch64", "linux"),
]
# The products that we will ensure are always built
products = [
LibraryProduct("libobject_store_ffi", :libobject_store_ffi),
]
# Dependencies that must be installed before this package can be built
dependencies = Dependency[
]
# Build the tarballs
build_tarballs(
ARGS, name, version, sources, script, platforms, products, dependencies;
compilers=[:c, :rust], julia_compat="1.6", preferred_gcc_version=v"5",
)