Skip to content

Commit

Permalink
Use jll to install native lib
Browse files Browse the repository at this point in the history
  • Loading branch information
aviks authored and felipenoris committed Jun 7, 2020
1 parent 8baddbe commit 6f48115
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 68 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ services:
- mongodb

julia:
- 1.0
- 1.1
- 1.2
- 1.3
- 1.4
- nightly
Expand Down
6 changes: 2 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ repo = "https://github.com/felipenoris/Mongoc.jl.git"
version = "0.4.2"

[deps]
BinaryProvider = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
MongoC_jll = "90100e71-7732-535a-9be7-2e9affd1cfc1"
Serialization = "9e88b42a-f829-5b0c-bbe9-9e923198166b"

[compat]
julia = "1"
BinaryProvider = "0.5"
julia = "1.3"

[extras]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
3 changes: 0 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ services:

environment:
matrix:
- julia_version: 1.0
- julia_version: 1.1
- julia_version: 1.2
- julia_version: 1.3
- julia_version: 1.4
- julia_version: latest
Expand Down
50 changes: 0 additions & 50 deletions deps/build.jl

This file was deleted.

9 changes: 1 addition & 8 deletions src/Mongoc.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@

module Mongoc
using MongoC_jll

using Dates, Serialization

# load libmongoc
const libmongocpath = joinpath(dirname(@__FILE__), "..", "deps", "deps.jl")
if !isfile(libmongocpath)
error("Mongoc.jl is not installed properly, run Pkg.build(\"Mongoc\") and restart Julia.")
end
include(libmongocpath)

#
# utility functions for date conversion
#
Expand All @@ -31,7 +25,6 @@ include("streams.jl")
include("gridfs.jl")

function __init__()
check_deps()
mongoc_init()
atexit(mongoc_cleanup)
end
Expand Down

0 comments on commit 6f48115

Please sign in to comment.