Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WolframAppDisovery] Initial commit, to be used for MathLink.jl #6458

Merged
merged 4 commits into from
Mar 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions W/WolframAppDiscovery/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using BinaryBuilder

name = "WolframAppDiscovery"
version = v"0.4.3"

sources = [
GitSource("https://github.com/WolframResearch/wolfram-app-discovery-rs.git", "aa6feb10261593d7c6f13062f7f68b47a8b130b8")
]

# Bash recipe for building across all platforms
script = raw"""
cd ${WORKSPACE}/srcdir/wolfram-app-discovery-rs/
cargo build --release --bin wolfram-app-discovery --features=cli
install -Dvm 755 "target/${rust_target}/release/wolfram-app-discovery${exeext}" "${bindir}/wolfram-app-discovery${exeext}"
install_license LICENSE-MIT LICENSE-APACHE
"""

platforms = supported_platforms()
# Our Rust toolchain for i686 Windows is unusable
filter!(p -> !Sys.iswindows(p) || arch(p) != "i686", platforms)

# The products that we will ensure are always built
products = [
ExecutableProduct("wolfram-app-discovery", :wolfram_app_discovery),
]

# Dependencies that must be installed before this package can be built
dependencies = Dependency[
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; compilers=[:c, :rust], julia_compat="1.6")