-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
353 additions
and
1,242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
override/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
name = "libvorbis_jll" | ||
uuid = "f27f6e37-5d2b-51aa-960f-b287f2bc3b7a" | ||
version = "1.3.6+5" | ||
version = "1.3.6+6" | ||
|
||
[deps] | ||
JLLWrappers = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210" | ||
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" | ||
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | ||
Ogg_jll = "e7412a2a-1a6e-54c0-be00-318e2571c051" | ||
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33" | ||
|
||
[compat] | ||
JLLWrappers = "1.1.0" | ||
julia = "1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,9 @@ | ||
module libvorbis_jll | ||
|
||
if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel")) | ||
@eval Base.Experimental.@optlevel 0 | ||
end | ||
|
||
if VERSION < v"1.3.0-rc4" | ||
# We lie a bit in the registry that JLL packages are usable on Julia 1.0-1.2. | ||
# This is to allow packages that might want to support Julia 1.0 to get the | ||
# benefits of a JLL package on 1.3 (requiring them to declare a dependence on | ||
# this JLL package in their Project.toml) but engage in heroic hacks to do | ||
# something other than actually use a JLL package on 1.0-1.2. By allowing | ||
# this package to be installed (but not loaded) on 1.0-1.2, we enable users | ||
# to avoid splitting their package versions into pre-1.3 and post-1.3 branches | ||
# if they are willing to engage in the kinds of hoop-jumping they might need | ||
# to in order to install binaries in a JLL-compatible way on 1.0-1.2. One | ||
# example of this hoop-jumping being to express a dependency on this JLL | ||
# package, then import it within a `VERSION >= v"1.3"` conditional, and use | ||
# the deprecated `build.jl` mechanism to download the binaries through e.g. | ||
# `BinaryProvider.jl`. This should work well for the simplest packages, and | ||
# require greater and greater heroics for more and more complex packages. | ||
error("Unable to import libvorbis_jll on Julia versions older than 1.3!") | ||
end | ||
|
||
using Pkg, Pkg.BinaryPlatforms, Pkg.Artifacts, Libdl | ||
import Base: UUID | ||
|
||
# We put these inter-JLL-package API values here so that they are always defined, even if there | ||
# is no underlying wrapper held within this JLL package. | ||
const PATH_list = String[] | ||
const LIBPATH_list = String[] | ||
|
||
# Load Artifacts.toml file | ||
artifacts_toml = joinpath(@__DIR__, "..", "Artifacts.toml") | ||
|
||
# Extract all platforms | ||
artifacts = Pkg.Artifacts.load_artifacts_toml(artifacts_toml; pkg_uuid=UUID("f27f6e37-5d2b-51aa-960f-b287f2bc3b7a")) | ||
platforms = [Pkg.Artifacts.unpack_platform(e, "libvorbis", artifacts_toml) for e in artifacts["libvorbis"]] | ||
|
||
# Filter platforms based on what wrappers we've generated on-disk | ||
filter!(p -> isfile(joinpath(@__DIR__, "wrappers", replace(triplet(p), "arm-" => "armv7l-") * ".jl")), platforms) | ||
|
||
# From the available options, choose the best platform | ||
best_platform = select_platform(Dict(p => triplet(p) for p in platforms)) | ||
|
||
# Silently fail if there's no binaries for this platform | ||
if best_platform === nothing | ||
@debug("Unable to load libvorbis; unsupported platform $(triplet(platform_key_abi()))") | ||
else | ||
# Load the appropriate wrapper. Note that on older Julia versions, we still | ||
# say "arm-linux-gnueabihf" instead of the more correct "armv7l-linux-gnueabihf", | ||
# so we manually correct for that here: | ||
best_platform = replace(best_platform, "arm-" => "armv7l-") | ||
include(joinpath(@__DIR__, "wrappers", "$(best_platform).jl")) | ||
end | ||
|
||
# Use baremodule to shave off a few KB from the serialized `.ji` file | ||
baremodule libvorbis_jll | ||
using Base | ||
using Base: UUID | ||
import JLLWrappers | ||
|
||
JLLWrappers.@generate_main_file_header("libvorbis") | ||
JLLWrappers.@generate_main_file("libvorbis", UUID("f27f6e37-5d2b-51aa-960f-b287f2bc3b7a")) | ||
end # module libvorbis_jll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.