|
| 1 | +# Note that this script can accept some limited command-line arguments, run |
| 2 | +# `julia build_tarballs.jl --help` to see a usage message. |
| 3 | +using BinaryBuilder, Pkg |
| 4 | + |
| 5 | +name = "GoogleSparseHash" |
| 6 | +version = v"2.11.1" |
| 7 | + |
| 8 | +# Collection of sources required to complete build |
| 9 | +sources = [ |
| 10 | + GitSource("https://github.com/sparsehash/sparsehash-c11.git", "edd6f1180156e76facc1c0449da245208ab39503") |
| 11 | +] |
| 12 | + |
| 13 | + |
| 14 | +script = raw""" |
| 15 | +cd sparsehash-* |
| 16 | +install_license LICENSE |
| 17 | +
|
| 18 | +mkdir ${prefix}/include |
| 19 | +mv sparsehash ${prefix}/include/ |
| 20 | +""" |
| 21 | + |
| 22 | +# These are the platforms we will build for by default, unless further |
| 23 | +# platforms are passed in on the command line |
| 24 | +platforms = [AnyPlatform()] |
| 25 | + |
| 26 | +products = [ |
| 27 | + FileProduct("include/sparsehash/dense_hash_map", :dense_hash_map), |
| 28 | + FileProduct("include/sparsehash/dense_hash_set", :dense_hash_set), |
| 29 | + FileProduct("include/sparsehash/sparse_hash_map", :sparse_hash_map), |
| 30 | + FileProduct("include/sparsehash/sparse_hash_set", :sparse_hash_set), |
| 31 | + FileProduct("include/sparsehash/sparsetable", :sparsetable), |
| 32 | + FileProduct("include/sparsehash/traits", :traits), |
| 33 | + FileProduct("include/sparsehash/internal/densehashtable.h", :densehashtable_h), |
| 34 | + FileProduct("include/sparsehash/internal/hashtable-common.h", :hashtable_common_h), |
| 35 | + FileProduct("include/sparsehash/internal/libc_allocator_with_realloc.h", :libc_allocator_with_realloc_h), |
| 36 | + FileProduct("include/sparsehash/internal/sparsehashtable.h", :sparsehashtable_h) |
| 37 | +] |
| 38 | + |
| 39 | +# Dependencies that must be installed before this package can be built |
| 40 | +dependencies = Dependency[ |
| 41 | +] |
| 42 | + |
| 43 | +# Build the tarballs, and possibly a `build.jl` as well. |
| 44 | +build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; julia_compat="1.6", preferred_gcc_version = v"6.1.0") |
0 commit comments