Skip to content

Commit 80ccfd6

Browse files
committed
tree_sitter_javascript_jll build 0.16.0+0
1 parent 14d799a commit 80ccfd6

18 files changed

+835
-0
lines changed

Artifacts.toml

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
[[tree_sitter_javascript]]
2+
arch = "aarch64"
3+
git-tree-sha1 = "a05e5a16e9623dc04fa67b3ce3e86b965735c336"
4+
libc = "glibc"
5+
os = "linux"
6+
7+
[[tree_sitter_javascript.download]]
8+
sha256 = "8a30bb588cc4a0bde9c93a6a666da50fe1c19dd525c2e42a5685ca708be0289a"
9+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.aarch64-linux-gnu.tar.gz"
10+
[[tree_sitter_javascript]]
11+
arch = "aarch64"
12+
git-tree-sha1 = "240888a60490f4242cf4d762027957e4f334dbd5"
13+
libc = "musl"
14+
os = "linux"
15+
16+
[[tree_sitter_javascript.download]]
17+
sha256 = "9e42b6d30f3a13ac951a22072bcf0dda051d625edd3fc32f10daae13d785839b"
18+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.aarch64-linux-musl.tar.gz"
19+
[[tree_sitter_javascript]]
20+
arch = "armv7l"
21+
git-tree-sha1 = "9ff5ed6df084e56374fd7789353184fde4e84e97"
22+
libc = "glibc"
23+
os = "linux"
24+
25+
[[tree_sitter_javascript.download]]
26+
sha256 = "f7a2b2fddbf9ef3d1a4553479e2973e4a4d473bc7220152833ff73f99328c091"
27+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.armv7l-linux-gnueabihf.tar.gz"
28+
[[tree_sitter_javascript]]
29+
arch = "armv7l"
30+
git-tree-sha1 = "15d03ef7edd06217940f0e1ec4992e1230d13317"
31+
libc = "musl"
32+
os = "linux"
33+
34+
[[tree_sitter_javascript.download]]
35+
sha256 = "9ac82bf64fae4ee99bf3f30879b6c233318840c0c80dfeb98f9580108395d49b"
36+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.armv7l-linux-musleabihf.tar.gz"
37+
[[tree_sitter_javascript]]
38+
arch = "i686"
39+
git-tree-sha1 = "82d72cddcab615c0275ab93e68c2052fd0f2ae87"
40+
libc = "glibc"
41+
os = "linux"
42+
43+
[[tree_sitter_javascript.download]]
44+
sha256 = "35def7b06b9b28630a59ae34b7bd6f9a426f451e273709296a3f2a42070b3f10"
45+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.i686-linux-gnu.tar.gz"
46+
[[tree_sitter_javascript]]
47+
arch = "i686"
48+
git-tree-sha1 = "3fe0e2a314b0c6dc02d38c27b50375da9c545bef"
49+
libc = "musl"
50+
os = "linux"
51+
52+
[[tree_sitter_javascript.download]]
53+
sha256 = "b713770c614712f5975d9e8738dac2a6ad204702cf4176ab5aa696ee1afdf31f"
54+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.i686-linux-musl.tar.gz"
55+
[[tree_sitter_javascript]]
56+
arch = "i686"
57+
git-tree-sha1 = "a479e9dc6c934bb08dfbecbdf1b37adbeab01825"
58+
os = "windows"
59+
60+
[[tree_sitter_javascript.download]]
61+
sha256 = "95e8fbd0e0cfd95fdf6fc512882da2935083daa6fe5fe07f168b65281349d18a"
62+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.i686-w64-mingw32.tar.gz"
63+
[[tree_sitter_javascript]]
64+
arch = "powerpc64le"
65+
git-tree-sha1 = "dd7a916a57ce4263fc61e1683866677bc71bf436"
66+
libc = "glibc"
67+
os = "linux"
68+
69+
[[tree_sitter_javascript.download]]
70+
sha256 = "79a8fcdc19fb80d77f81dab8aad416e8d37eb73ae4229ae482e1114a8c1a6fde"
71+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.powerpc64le-linux-gnu.tar.gz"
72+
[[tree_sitter_javascript]]
73+
arch = "x86_64"
74+
git-tree-sha1 = "c70ef0bf339da7bc44d5621ee0e153784605d640"
75+
os = "macos"
76+
77+
[[tree_sitter_javascript.download]]
78+
sha256 = "78a90843dc40ef2002c648b4bdb7f3c7010ef1faf7ac005b6e870c29b87e5733"
79+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.x86_64-apple-darwin14.tar.gz"
80+
[[tree_sitter_javascript]]
81+
arch = "x86_64"
82+
git-tree-sha1 = "9b7e9d662a9b2d122e0f5c36b489e5b4c8beb5a1"
83+
libc = "glibc"
84+
os = "linux"
85+
86+
[[tree_sitter_javascript.download]]
87+
sha256 = "8d8e37fbcadce40d0d6216a076eeba9f9df11cff422b93392c7d502f8a2a4f69"
88+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.x86_64-linux-gnu.tar.gz"
89+
[[tree_sitter_javascript]]
90+
arch = "x86_64"
91+
git-tree-sha1 = "615045a66827a37e54ba02f587f1db724d21f9cc"
92+
libc = "musl"
93+
os = "linux"
94+
95+
[[tree_sitter_javascript.download]]
96+
sha256 = "90de59ae514594fe2489df7cc8ee8dfe1cb8957554bed1a14c82a40e1050019a"
97+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.x86_64-linux-musl.tar.gz"
98+
[[tree_sitter_javascript]]
99+
arch = "x86_64"
100+
git-tree-sha1 = "e89f17fe2c6ab600093f5268d25483d6fe8c6d48"
101+
os = "freebsd"
102+
103+
[[tree_sitter_javascript.download]]
104+
sha256 = "605d06e8f4a4d285c46f49158499cec9f879e837a8ec3b345e33ee4986b68149"
105+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.x86_64-unknown-freebsd11.1.tar.gz"
106+
[[tree_sitter_javascript]]
107+
arch = "x86_64"
108+
git-tree-sha1 = "78fdc1777e269a8acaaf29fa729dd6aba88f8a3b"
109+
os = "windows"
110+
111+
[[tree_sitter_javascript.download]]
112+
sha256 = "03394775e7822f573f11c53d9c60011d09471473d02b81eb1312c6f202726b85"
113+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_javascript_jll.jl/releases/download/tree_sitter_javascript-v0.16.0+0/tree_sitter_javascript.v0.16.0.x86_64-w64-mingw32.tar.gz"

LICENSE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
The Julia source code within this repository (all files under `src/`) are
2+
released under the terms of the MIT "Expat" License, the text of which is
3+
included below. This license does not apply to the binary package wrapped by
4+
this Julia package and automatically downloaded by the Julia package manager
5+
upon installing this wrapper package. The binary package's license is shipped
6+
alongside the binary itself and can be found within the
7+
`share/licenses/tree_sitter_javascript` directory within its prefix.
8+
19
MIT License
210

311
Copyright (c) 2020 JuliaBinaryWrappers

Project.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name = "tree_sitter_javascript_jll"
2+
uuid = "ca45b743-11fc-5578-b74a-7528860c0bda"
3+
version = "0.16.0+0"
4+
5+
[deps]
6+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
7+
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
8+
9+
[compat]
10+
julia = "1.0"

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# `tree_sitter_javascript_jll.jl` (v0.16.0+0)
2+
3+
This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl). The originating [`build_tarballs.jl`](https://github.com/JuliaPackaging/Yggdrasil/blob/feddfc2f3c4d7c008e0dfc9a27073f15a29a3fe9/T/tree_sitter_javascript/build_tarballs.jl) script can be found on [`Yggdrasil`](https://github.com/JuliaPackaging/Yggdrasil/), the community build tree.
4+
5+
For more details about JLL packages and how to use them, see `BinaryBuilder.jl` [documentation](https://juliapackaging.github.io/BinaryBuilder.jl/dev/jll/).
6+
7+
## Sources
8+
9+
The tarballs for `tree_sitter_javascript_jll.jl` have been built from these sources:
10+
11+
* compressed archive: https://github.com/tree-sitter/tree-sitter-javascript/archive/v0.16.0.tar.gz (SHA256 checksum: `6790f58e491f723454d7e508f9fde27f61a5e05cda57b4f75e9f4887c996a534`)
12+
* files in directory, relative to originating `build_tarballs.jl`: [`./bundled`](https://github.com/JuliaPackaging/Yggdrasil/tree/feddfc2f3c4d7c008e0dfc9a27073f15a29a3fe9/T/tree_sitter_javascript/bundled)
13+
14+
## Platforms
15+
16+
`tree_sitter_javascript_jll.jl` is available for the following platforms:
17+
18+
* `Linux(:aarch64, libc=:glibc)` (`aarch64-linux-gnu`)
19+
* `Linux(:aarch64, libc=:musl)` (`aarch64-linux-musl`)
20+
* `Linux(:armv7l, libc=:glibc, call_abi=:eabihf)` (`armv7l-linux-gnueabihf`)
21+
* `Linux(:armv7l, libc=:musl, call_abi=:eabihf)` (`armv7l-linux-musleabihf`)
22+
* `Linux(:i686, libc=:glibc)` (`i686-linux-gnu`)
23+
* `Linux(:i686, libc=:musl)` (`i686-linux-musl`)
24+
* `Windows(:i686)` (`i686-w64-mingw32`)
25+
* `Linux(:powerpc64le, libc=:glibc)` (`powerpc64le-linux-gnu`)
26+
* `MacOS(:x86_64)` (`x86_64-apple-darwin14`)
27+
* `Linux(:x86_64, libc=:glibc)` (`x86_64-linux-gnu`)
28+
* `Linux(:x86_64, libc=:musl)` (`x86_64-linux-musl`)
29+
* `FreeBSD(:x86_64)` (`x86_64-unknown-freebsd11.1`)
30+
* `Windows(:x86_64)` (`x86_64-w64-mingw32`)
31+
32+
## Products
33+
34+
The code bindings within this package are autogenerated from the following `Products`:
35+
36+
* `LibraryProduct`: `libtreesitter_javascript`

src/tree_sitter_javascript_jll.jl

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
module tree_sitter_javascript_jll
2+
3+
if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel"))
4+
@eval Base.Experimental.@optlevel 0
5+
end
6+
7+
if VERSION < v"1.3.0-rc4"
8+
# We lie a bit in the registry that JLL packages are usable on Julia 1.0-1.2.
9+
# This is to allow packages that might want to support Julia 1.0 to get the
10+
# benefits of a JLL package on 1.3 (requiring them to declare a dependence on
11+
# this JLL package in their Project.toml) but engage in heroic hacks to do
12+
# something other than actually use a JLL package on 1.0-1.2. By allowing
13+
# this package to be installed (but not loaded) on 1.0-1.2, we enable users
14+
# to avoid splitting their package versions into pre-1.3 and post-1.3 branches
15+
# if they are willing to engage in the kinds of hoop-jumping they might need
16+
# to in order to install binaries in a JLL-compatible way on 1.0-1.2. One
17+
# example of this hoop-jumping being to express a dependency on this JLL
18+
# package, then import it within a `VERSION >= v"1.3"` conditional, and use
19+
# the deprecated `build.jl` mechanism to download the binaries through e.g.
20+
# `BinaryProvider.jl`. This should work well for the simplest packages, and
21+
# require greater and greater heroics for more and more complex packages.
22+
error("Unable to import tree_sitter_javascript_jll on Julia versions older than 1.3!")
23+
end
24+
25+
using Pkg, Pkg.BinaryPlatforms, Pkg.Artifacts, Libdl
26+
import Base: UUID
27+
28+
# We put these inter-JLL-package API values here so that they are always defined, even if there
29+
# is no underlying wrapper held within this JLL package.
30+
const PATH_list = String[]
31+
const LIBPATH_list = String[]
32+
33+
# Load Artifacts.toml file
34+
artifacts_toml = joinpath(@__DIR__, "..", "Artifacts.toml")
35+
36+
# Extract all platforms
37+
artifacts = Pkg.Artifacts.load_artifacts_toml(artifacts_toml; pkg_uuid=UUID("ca45b743-11fc-5578-b74a-7528860c0bda"))
38+
platforms = [Pkg.Artifacts.unpack_platform(e, "tree_sitter_javascript", artifacts_toml) for e in artifacts["tree_sitter_javascript"]]
39+
40+
# Filter platforms based on what wrappers we've generated on-disk
41+
filter!(p -> isfile(joinpath(@__DIR__, "wrappers", replace(triplet(p), "arm-" => "armv7l-") * ".jl")), platforms)
42+
43+
# From the available options, choose the best platform
44+
best_platform = select_platform(Dict(p => triplet(p) for p in platforms))
45+
46+
# Silently fail if there's no binaries for this platform
47+
if best_platform === nothing
48+
@debug("Unable to load tree_sitter_javascript; unsupported platform $(triplet(platform_key_abi()))")
49+
else
50+
# Load the appropriate wrapper. Note that on older Julia versions, we still
51+
# say "arm-linux-gnueabihf" instead of the more correct "armv7l-linux-gnueabihf",
52+
# so we manually correct for that here:
53+
best_platform = replace(best_platform, "arm-" => "armv7l-")
54+
include(joinpath(@__DIR__, "wrappers", "$(best_platform).jl"))
55+
end
56+
57+
end # module tree_sitter_javascript_jll

src/wrappers/aarch64-linux-gnu.jl

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for tree_sitter_javascript_jll for aarch64-linux-gnu
2+
export libtreesitter_javascript
3+
4+
## Global variables
5+
PATH = ""
6+
LIBPATH = ""
7+
LIBPATH_env = "LD_LIBRARY_PATH"
8+
LIBPATH_default = ""
9+
10+
# Relative path to `libtreesitter_javascript`
11+
const libtreesitter_javascript_splitpath = ["lib", "libtreesitter_javascript.so"]
12+
13+
# This will be filled out by __init__() for all products, as it must be done at runtime
14+
libtreesitter_javascript_path = ""
15+
16+
# libtreesitter_javascript-specific global declaration
17+
# This will be filled out by __init__()
18+
libtreesitter_javascript_handle = C_NULL
19+
20+
# This must be `const` so that we can use it with `ccall()`
21+
const libtreesitter_javascript = "libtreesitter_javascript.so"
22+
23+
24+
"""
25+
Open all libraries
26+
"""
27+
function __init__()
28+
global artifact_dir = abspath(artifact"tree_sitter_javascript")
29+
30+
# Initialize PATH and LIBPATH environment variable listings
31+
global PATH_list, LIBPATH_list
32+
global libtreesitter_javascript_path = normpath(joinpath(artifact_dir, libtreesitter_javascript_splitpath...))
33+
34+
# Manually `dlopen()` this right now so that future invocations
35+
# of `ccall` with its `SONAME` will find this path immediately.
36+
global libtreesitter_javascript_handle = dlopen(libtreesitter_javascript_path)
37+
push!(LIBPATH_list, dirname(libtreesitter_javascript_path))
38+
39+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
40+
filter!(!isempty, unique!(PATH_list))
41+
filter!(!isempty, unique!(LIBPATH_list))
42+
global PATH = join(PATH_list, ':')
43+
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':')
44+
45+
46+
end # __init__()
47+

src/wrappers/aarch64-linux-musl.jl

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for tree_sitter_javascript_jll for aarch64-linux-musl
2+
export libtreesitter_javascript
3+
4+
## Global variables
5+
PATH = ""
6+
LIBPATH = ""
7+
LIBPATH_env = "LD_LIBRARY_PATH"
8+
LIBPATH_default = ""
9+
10+
# Relative path to `libtreesitter_javascript`
11+
const libtreesitter_javascript_splitpath = ["lib", "libtreesitter_javascript.so"]
12+
13+
# This will be filled out by __init__() for all products, as it must be done at runtime
14+
libtreesitter_javascript_path = ""
15+
16+
# libtreesitter_javascript-specific global declaration
17+
# This will be filled out by __init__()
18+
libtreesitter_javascript_handle = C_NULL
19+
20+
# This must be `const` so that we can use it with `ccall()`
21+
const libtreesitter_javascript = "libtreesitter_javascript.so"
22+
23+
24+
"""
25+
Open all libraries
26+
"""
27+
function __init__()
28+
global artifact_dir = abspath(artifact"tree_sitter_javascript")
29+
30+
# Initialize PATH and LIBPATH environment variable listings
31+
global PATH_list, LIBPATH_list
32+
global libtreesitter_javascript_path = normpath(joinpath(artifact_dir, libtreesitter_javascript_splitpath...))
33+
34+
# Manually `dlopen()` this right now so that future invocations
35+
# of `ccall` with its `SONAME` will find this path immediately.
36+
global libtreesitter_javascript_handle = dlopen(libtreesitter_javascript_path)
37+
push!(LIBPATH_list, dirname(libtreesitter_javascript_path))
38+
39+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
40+
filter!(!isempty, unique!(PATH_list))
41+
filter!(!isempty, unique!(LIBPATH_list))
42+
global PATH = join(PATH_list, ':')
43+
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':')
44+
45+
46+
end # __init__()
47+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for tree_sitter_javascript_jll for armv7l-linux-gnueabihf
2+
export libtreesitter_javascript
3+
4+
## Global variables
5+
PATH = ""
6+
LIBPATH = ""
7+
LIBPATH_env = "LD_LIBRARY_PATH"
8+
LIBPATH_default = ""
9+
10+
# Relative path to `libtreesitter_javascript`
11+
const libtreesitter_javascript_splitpath = ["lib", "libtreesitter_javascript.so"]
12+
13+
# This will be filled out by __init__() for all products, as it must be done at runtime
14+
libtreesitter_javascript_path = ""
15+
16+
# libtreesitter_javascript-specific global declaration
17+
# This will be filled out by __init__()
18+
libtreesitter_javascript_handle = C_NULL
19+
20+
# This must be `const` so that we can use it with `ccall()`
21+
const libtreesitter_javascript = "libtreesitter_javascript.so"
22+
23+
24+
"""
25+
Open all libraries
26+
"""
27+
function __init__()
28+
global artifact_dir = abspath(artifact"tree_sitter_javascript")
29+
30+
# Initialize PATH and LIBPATH environment variable listings
31+
global PATH_list, LIBPATH_list
32+
global libtreesitter_javascript_path = normpath(joinpath(artifact_dir, libtreesitter_javascript_splitpath...))
33+
34+
# Manually `dlopen()` this right now so that future invocations
35+
# of `ccall` with its `SONAME` will find this path immediately.
36+
global libtreesitter_javascript_handle = dlopen(libtreesitter_javascript_path)
37+
push!(LIBPATH_list, dirname(libtreesitter_javascript_path))
38+
39+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
40+
filter!(!isempty, unique!(PATH_list))
41+
filter!(!isempty, unique!(LIBPATH_list))
42+
global PATH = join(PATH_list, ':')
43+
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':')
44+
45+
46+
end # __init__()
47+

0 commit comments

Comments
 (0)