Skip to content

Commit 435301f

Browse files
committed
Merge pull request #7 from tkelman/windll2
Use WinRPM to download libxml2 dll
2 parents 5203c81 + 59881c4 commit 435301f

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

REQUIRE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
julia 0.2-
2+
@windows BinDeps
3+
@windows WinRPM

deps/build.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using BinDeps
2+
3+
@BinDeps.setup
4+
5+
@windows_only begin
6+
libxml2 = library_dependency("libxml2", aliases = ["libxml2-2"])
7+
using WinRPM
8+
provides(WinRPM.RPM, "libxml2", libxml2, os = :Windows)
9+
end
10+
11+
@BinDeps.install

src/clib.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# C functions in the library
22

3-
const libxml2 = dlopen("libxml2", RTLD_GLOBAL)
3+
@unix_only const libxml2 = dlopen("libxml2", RTLD_GLOBAL)
4+
@windows_only const libxml2 = dlopen(Pkg.dir("WinRPM","deps","usr","$(Sys.ARCH)-w64-mingw32","sys-root","mingw","bin","libxml2-2"))
45

56
macro lx2func(fname) # the macro to get functions from libxml2
67
quote

0 commit comments

Comments
 (0)