Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Jan 15, 2018
1 parent e748d0a commit d1d9a77
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,26 @@ products = [earcut]


# Download binaries from hosted location
bin_prefix = "https://github.com/SimonDanisch/EarCutDeps/releases/download/v0.1.3"
bin_prefix = "https://github.com/SimonDanisch/EarCutDeps/releases/download/v0.1.4"
# Listing of files generated by BinaryBuilder:
# Listing of files generated by BinaryBuilder:
download_info = Dict(
BinaryProvider.Linux(:aarch64, :glibc) => ("$bin_prefix/Earcut.aarch64-linux-gnu.tar.gz", "53c308340c68dbf3d06f4536f8e64eae50def534fc6e0e091f2d6b7841c51963"),
BinaryProvider.Linux(:armv7l, :glibc) => ("$bin_prefix/Earcut.arm-linux-gnueabihf.tar.gz", "ad2aca45439d1672cff4ec06cd631f06cea717b877a2bbb6767bff256551e760"),
BinaryProvider.Linux(:i686, :glibc) => ("$bin_prefix/Earcut.i686-linux-gnu.tar.gz", "11b3261b92492a45d555dfbc56688f59527a3e9d135aee45dce22e3181b46253"),
BinaryProvider.Windows(:i686) => ("$bin_prefix/Earcut.i686-w64-mingw32.tar.gz", "60538ca1b856c0c28340d124636d4cf23c6e06a9bcd9e099dabca0b121641fe7"),
BinaryProvider.Linux(:powerpc64le, :glibc) => ("$bin_prefix/Earcut.powerpc64le-linux-gnu.tar.gz", "f1d4b36e6d20671dc538d87092163fcf38554cb01873e4ffbb6ebc913f559c6e"),
BinaryProvider.MacOS() => ("$bin_prefix/Earcut.x86_64-apple-darwin14.tar.gz", "bec5531da9f87a010a7543c1671aac8984dd5478cd15f7328d4be7666af6ee3e"),
BinaryProvider.Linux(:x86_64, :glibc) => ("$bin_prefix/Earcut.x86_64-linux-gnu.tar.gz", "e620c7ad124fdc30d416cfd03c9769f16b6bbc6fe8b37cd8af5803bb3adaa37d"),
BinaryProvider.Windows(:x86_64) => ("$bin_prefix/Earcut.x86_64-w64-mingw32.tar.gz", "1234d5b140a8a7090587cdce6a5f2d02c04b5652f0df7e66f2063ebfe0c6f8a4"),
BinaryProvider.Linux(:aarch64, :glibc) => ("$bin_prefix/Earcut.aarch64-linux-gnu.tar.gz", "dc137e09a22397d2b1ae8162d58e7f51469d65d73c5108460f556034ded6a9cd"),
BinaryProvider.Linux(:armv7l, :glibc) => ("$bin_prefix/Earcut.arm-linux-gnueabihf.tar.gz", "ffc7c5589c0bb0389d4957e320f5094df98fc254091b97ba894e9bb19cac223f"),
BinaryProvider.Linux(:i686, :glibc) => ("$bin_prefix/Earcut.i686-linux-gnu.tar.gz", "5b838d58a6ca1bc6a50b2618c3f903e2964e326511041a2be4b03ea831679927"),
BinaryProvider.Windows(:i686) => ("$bin_prefix/Earcut.i686-w64-mingw32.tar.gz", "83d4833cd645e3fdc0040cfb47d6082f57b9e0a67aae48fb41fc6614e16de10b"),
BinaryProvider.Linux(:powerpc64le, :glibc) => ("$bin_prefix/Earcut.powerpc64le-linux-gnu.tar.gz", "1d18b6397dfaeb89297d639ae8178bf830414182689e86fb513edd652e6f6872"),
BinaryProvider.MacOS() => ("$bin_prefix/Earcut.x86_64-apple-darwin14.tar.gz", "bbbf711726bf25bf2fd496938fb55ada2c688bcc3aa34127c42081225f539eeb"),
BinaryProvider.Linux(:x86_64, :glibc) => ("$bin_prefix/Earcut.x86_64-linux-gnu.tar.gz", "53b6e41d7319b5a957ab59ddca224e4667577d4c0560fd0868e2aa1ff2b521a7"),
BinaryProvider.Windows(:x86_64) => ("$bin_prefix/Earcut.x86_64-w64-mingw32.tar.gz", "42e63d547f5320a778375b6ebab4bd74a61d80972b71ed20a0c379c83fb0500b"),
)
if platform_key() in keys(download_info)
# First, check to see if we're all satisfied
if any(!satisfied(p; verbose=true) for p in products)
# Download and install binaries
url, tarball_hash = download_info[platform_key()]
@show url
install(url, tarball_hash; prefix=prefix, force=true, verbose=true)
end

# Finally, write out a deps.jl file that will contain mappings for each
# named product here: (there will be a "libfoo" variable and a "fooifier"
# variable, etc...)
@write_deps_file earcut
else
error("Your platform $(Sys.MACHINE) is not supported by this package!")
Expand Down

0 comments on commit d1d9a77

Please sign in to comment.