-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
1 parent
5dc6201
commit ad2e905
Showing
7 changed files
with
49 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name = "LibCURL_jll" | ||
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0" | ||
|
||
[deps] | ||
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | ||
|
||
[extra] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] |
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,28 @@ | ||
# This file is a part of Julia. License is MIT: https://julialang.org/license | ||
|
||
## dummy stub for https://github.com/JuliaBinaryWrappers/LibCURL_jll.jl | ||
|
||
module LibCURL_jll | ||
|
||
using Libdl | ||
|
||
export libcurl | ||
|
||
# These get calculated in __init__() | ||
libcurl_handle = C_NULL | ||
libcurl_path = "" | ||
|
||
if Sys.iswindows() | ||
const libcurl = "libcurl-4.dll" | ||
elseif Sys.isapple() | ||
const libcurl = "libcurl.4.dylib" | ||
else | ||
const libcurl = "libcurl.so" | ||
end | ||
|
||
function __init__() | ||
global libcurl_handle = dlopen(libcurl) | ||
global libcurl_path = dlpath(libcurl_handle) | ||
end | ||
|
||
end # module LibCURL_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using Test | ||
using LibCURL_jll | ||
|
||
@testset "LibCURL_jll" begin | ||
v = unsafe_string(ccall((:curl_version, libcurl), Cstring, ())) | ||
@test startswith(v, "libcurl/") | ||
end |
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