diff --git a/Artifacts.toml b/Artifacts.toml new file mode 100644 index 0000000..e093398 --- /dev/null +++ b/Artifacts.toml @@ -0,0 +1,214 @@ +[[Cbc]] +arch = "aarch64" +cxxstring_abi = "cxx03" +git-tree-sha1 = "5317948193d0bea48fd6977ab3b4059a4fbe5558" +libc = "musl" +os = "linux" + + [[Cbc.download]] + sha256 = "f51242ae40cb02e11fb5f9853c8d7f4ad02cbe811b1c1250b0efeffc1f7478c5" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.aarch64-linux-musl-cxx03.tar.gz" +[[Cbc]] +arch = "aarch64" +cxxstring_abi = "cxx11" +git-tree-sha1 = "3fd22bd02c85733badddcf3af1950ef74036b613" +libc = "musl" +os = "linux" + + [[Cbc.download]] + sha256 = "fb5e56669cf817e28f18c98b0bd49086ede3f6f9adade9537b31d8b93e19089f" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.aarch64-linux-musl-cxx11.tar.gz" +[[Cbc]] +arch = "armv7l" +cxxstring_abi = "cxx03" +git-tree-sha1 = "46d277aad90e8ced43867b6b70a3b0db4c5f0b72" +libc = "musl" +os = "linux" + + [[Cbc.download]] + sha256 = "faf462a574123e963db866f11ad4087dd644cb9680157e50b6787648db9454a5" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.armv7l-linux-musleabihf-cxx03.tar.gz" +[[Cbc]] +arch = "x86_64" +cxxstring_abi = "cxx11" +git-tree-sha1 = "1871b1c7e44362b66fb9f410e5aa16008ae3e543" +os = "windows" + + [[Cbc.download]] + sha256 = "eea316b82bc9d4a5331960a756f57170e0ebd4b389c9f9ec69eac66a1c9d69ef" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.x86_64-w64-mingw32-cxx11.tar.gz" +[[Cbc]] +arch = "i686" +cxxstring_abi = "cxx11" +git-tree-sha1 = "e6ca24f0523f95e90bd56834c150454b57b7b862" +libc = "musl" +os = "linux" + + [[Cbc.download]] + sha256 = "8003bd0769eb2aad2f2c188ebb492311c0ecdb5dacc06af0c2dc7f989063d195" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.i686-linux-musl-cxx11.tar.gz" +[[Cbc]] +arch = "x86_64" +cxxstring_abi = "cxx11" +git-tree-sha1 = "d1756949f4cfa42a17fc59c73ba9df9495ba3cb4" +libc = "musl" +os = "linux" + + [[Cbc.download]] + sha256 = "2c8e29fbb2268713a8f847a618138bda7f9811ba162d16896b8e328ce63b583b" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.x86_64-linux-musl-cxx11.tar.gz" +[[Cbc]] +arch = "x86_64" +cxxstring_abi = "cxx03" +git-tree-sha1 = "e4b265274100f9425ca64718185a23cb34b36f4f" +libc = "glibc" +os = "linux" + + [[Cbc.download]] + sha256 = "a9b33fd821bfde87070fcf293d879694cb0b19edea1375ee438a52f1c8d746c8" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.x86_64-linux-gnu-cxx03.tar.gz" +[[Cbc]] +arch = "i686" +cxxstring_abi = "cxx03" +git-tree-sha1 = "1c951472fe8861aa098de0a2bee03b2178b24383" +libc = "glibc" +os = "linux" + + [[Cbc.download]] + sha256 = "c13c3639d76e8b02371774cce9df4c60a464cf085026a2d10953224c061996c6" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.i686-linux-gnu-cxx03.tar.gz" +[[Cbc]] +arch = "x86_64" +cxxstring_abi = "cxx11" +git-tree-sha1 = "88899b2937994046dd51b993acccdd5ab6aa5079" +os = "macos" + + [[Cbc.download]] + sha256 = "09c3e52a959af60185bf86f6899a85aa877325966c9fe6906805aa022d437d91" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.x86_64-apple-darwin14-cxx11.tar.gz" +[[Cbc]] +arch = "i686" +cxxstring_abi = "cxx11" +git-tree-sha1 = "0e7c29684b07d9f8dc57d4a2864030cc8547a51a" +libc = "glibc" +os = "linux" + + [[Cbc.download]] + sha256 = "a3b74426867de984bcf0aa9d904679a5f3f553c09a84416841cda5e33aa7a31b" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.i686-linux-gnu-cxx11.tar.gz" +[[Cbc]] +arch = "x86_64" +cxxstring_abi = "cxx03" +git-tree-sha1 = "b4ce51e5a87818f11fcd7f8059aae5a87a8ac399" +os = "windows" + + [[Cbc.download]] + sha256 = "19b229fd2605aa8caf090e1445972de31b00b7e32705a10bca077a6856629f66" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.x86_64-w64-mingw32-cxx03.tar.gz" +[[Cbc]] +arch = "x86_64" +cxxstring_abi = "cxx11" +git-tree-sha1 = "539b99d637a911c55cf1d0ceeb3c5508e41f40c5" +libc = "glibc" +os = "linux" + + [[Cbc.download]] + sha256 = "05970d51a53eceffebf0faa6fd3950c80d4716ba7011bad6a63d32834e831a17" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.x86_64-linux-gnu-cxx11.tar.gz" +[[Cbc]] +arch = "aarch64" +cxxstring_abi = "cxx11" +git-tree-sha1 = "4c8d34fd6342de77c0a682b2b9fe1c6d4cc493a8" +libc = "glibc" +os = "linux" + + [[Cbc.download]] + sha256 = "74b1adc312a7a3f183799294ec1ad77955b3950361c4969ff910ba541272cb18" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.aarch64-linux-gnu-cxx11.tar.gz" +[[Cbc]] +arch = "x86_64" +cxxstring_abi = "cxx03" +git-tree-sha1 = "22647f5e3f631a76ec0e09628eda6ebfc6978f83" +libc = "musl" +os = "linux" + + [[Cbc.download]] + sha256 = "fa6c9fc2ffc6863292cbb9acaebf3c0d961d780f6c95071fa8e54784fcd7c817" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.x86_64-linux-musl-cxx03.tar.gz" +[[Cbc]] +arch = "x86_64" +cxxstring_abi = "cxx03" +git-tree-sha1 = "60b6151e3f474a5b684447a5391ad64889d061a9" +os = "macos" + + [[Cbc.download]] + sha256 = "958f5a81d647239813647a1eeb5568d1f1912aa8f603d82af80dc51fb297172e" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.x86_64-apple-darwin14-cxx03.tar.gz" +[[Cbc]] +arch = "i686" +cxxstring_abi = "cxx03" +git-tree-sha1 = "924cd5b6d6b187d2ca17bed6de363471aa765b08" +os = "windows" + + [[Cbc.download]] + sha256 = "7a8b6788fc289d1874e86a4149cafde4ccc27fecc50df0abaf77b68795663888" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.i686-w64-mingw32-cxx03.tar.gz" +[[Cbc]] +arch = "i686" +cxxstring_abi = "cxx11" +git-tree-sha1 = "c70cddbb501c00423a54b910abe9667d15bec6ab" +os = "windows" + + [[Cbc.download]] + sha256 = "a3312e88f7f4c75dd3cb45e2ee6436809a9009ec513729d877bddaa2421a4f00" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.i686-w64-mingw32-cxx11.tar.gz" +[[Cbc]] +arch = "armv7l" +cxxstring_abi = "cxx11" +git-tree-sha1 = "8b7a67d71cac7f559e04fb0d6b46e5061aa1f99f" +libc = "musl" +os = "linux" + + [[Cbc.download]] + sha256 = "c00b33df51fa8d85a59d1eb48254062d57d6688cd9415f5bec8ed45ed03eb7fe" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.armv7l-linux-musleabihf-cxx11.tar.gz" +[[Cbc]] +arch = "armv7l" +cxxstring_abi = "cxx03" +git-tree-sha1 = "931791e3d49a767cb6ecea60abc297b091f6d639" +libc = "glibc" +os = "linux" + + [[Cbc.download]] + sha256 = "2d27855fd5cc67039f09062a410b772b53fc99bba30507ba3d503841942b735f" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.armv7l-linux-gnueabihf-cxx03.tar.gz" +[[Cbc]] +arch = "aarch64" +cxxstring_abi = "cxx03" +git-tree-sha1 = "e4a22c8d828ff630405c988f7eab7b81b155006c" +libc = "glibc" +os = "linux" + + [[Cbc.download]] + sha256 = "c27f7b0b123e3346b4e70ff16abc80d6510114b48e7fa1d513a9f162ebb39bdb" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.aarch64-linux-gnu-cxx03.tar.gz" +[[Cbc]] +arch = "armv7l" +cxxstring_abi = "cxx11" +git-tree-sha1 = "1ea3e9fbadbb9abe544200b112d148d3c856df7a" +libc = "glibc" +os = "linux" + + [[Cbc.download]] + sha256 = "f8515a692f3f2cfbe205e58f84e906e5a692bd4a321df70d5dd9180c79d90f7a" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.armv7l-linux-gnueabihf-cxx11.tar.gz" +[[Cbc]] +arch = "i686" +cxxstring_abi = "cxx03" +git-tree-sha1 = "5959e483776b0a6b223a4d9d64f7d8ad0dfa134d" +libc = "musl" +os = "linux" + + [[Cbc.download]] + sha256 = "b9eae72f72dceb17ce246af8685b8e436f03f6038d71b20e7d2382c6f321de7b" + url = "https://github.com/JuliaBinaryWrappers/Cbc_jll.jl/releases/download/Cbc-v2.10.5+0/Cbc.v2.10.5.i686-linux-musl-cxx03.tar.gz" diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..29d007a --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,7 @@ +Copyright 2020 + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Project.toml b/Project.toml new file mode 100644 index 0000000..d166466 --- /dev/null +++ b/Project.toml @@ -0,0 +1,23 @@ +name = "Cbc_jll" +uuid = "38041ee0-ae04-5750-a4d2-bb4d0d83d27d" +version = "2.10.5+0" + +[deps] +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" +CoinUtils_jll = "be027038-0da8-5614-b30d-e42594cb92df" +CompilerSupportLibraries_jll = "e66e0078-7015-5450-92f7-15fbd957f2ae" +Cgl_jll = "3830e938-1dd0-5f3e-8b8e-b3ee43226782" +Clp_jll = "06985876-5285-5a41-9fcb-8948a742cc53" +Osi_jll = "7da25872-d9ce-5375-a4d3-7a845f58efdd" +METIS_jll = "d00139f3-1899-568f-a2f0-47f597d42d70" +OpenBLAS32_jll = "656ef2d0-ae68-5445-9ca0-591084a874a2" +ASL_jll = "ae81ac8f-d209-56e5-92de-9978fef736f9" +Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" + +[compat] +julia = "1.0" +CoinUtils_jll = "=2.11.4" +Cgl_jll = "=0.60.3" +Clp_jll = "=1.17.5" +Osi_jll = "=0.108.6" +METIS_jll = "=4.0.3" diff --git a/README.md b/README.md new file mode 100644 index 0000000..a527f74 --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +# Cbc_jll.jl + +This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl). + +## Products + +The code bindings within this package are autogenerated from the following `Products` defined within the `build_tarballs.jl` file that generated this package: + +```julia +products = [ + LibraryProduct(["libCbc"], :libCbc), + LibraryProduct(["libCbcSolver"], :libcbcsolver) +] +``` + +## Usage example + +For example purposes, we will assume that the following products were defined in the imaginary package `Example_jll`: + +```julia +products = [ + FileProduct("src/data.txt", :data_txt), + LibraryProduct("libdataproc", :libdataproc), + ExecutableProduct("mungify", :mungify_exe) +] +``` + +With such products defined, `Example_jll` would contain `data_txt`, `libdataproc` and `mungify_exe` symbols exported. For `FileProduct` variables, the exported value is a string pointing to the location of the file on-disk. For `LibraryProduct` variables, it is a string corresponding to the `SONAME` of the desired library (it will have already been `dlopen()`'ed, so typical `ccall()` usage applies), and for `ExecutableProduct` variables, the exported value is a function that can be called to set appropriate environment variables. Example: + +```julia +using Example_jll + +# For file products, you can access its file location directly: +data_lines = open(data_txt, "r") do io + readlines(io) +end + +# For library products, you can use the exported variable name in `ccall()` invocations directly +num_chars = ccall((:count_characters, libdataproc), Cint, (Cstring, Cint), data_lines[1], length(data_lines[1])) + +# For executable products, you can use the exported variable name as a function that you can call +mungify_exe() do mungify_exe_path + run(`$mungify_exe_path $num_chars`) +end +``` diff --git a/src/Cbc_jll.jl b/src/Cbc_jll.jl new file mode 100644 index 0000000..f8351c8 --- /dev/null +++ b/src/Cbc_jll.jl @@ -0,0 +1,53 @@ +module Cbc_jll + +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 wtihin 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 Cbc_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("38041ee0-ae04-5750-a4d2-bb4d0d83d27d")) +platforms = [Pkg.Artifacts.unpack_platform(e, "Cbc", artifacts_toml) for e in artifacts["Cbc"]] + +# 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 Cbc; 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 + +end # module Cbc_jll diff --git a/src/wrappers/aarch64-linux-gnu-cxx03.jl b/src/wrappers/aarch64-linux-gnu-cxx03.jl new file mode 100644 index 0000000..9697e1d --- /dev/null +++ b/src/wrappers/aarch64-linux-gnu-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for aarch64-linux-gnu-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/aarch64-linux-gnu-cxx11.jl b/src/wrappers/aarch64-linux-gnu-cxx11.jl new file mode 100644 index 0000000..d9bb9a7 --- /dev/null +++ b/src/wrappers/aarch64-linux-gnu-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for aarch64-linux-gnu-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/aarch64-linux-musl-cxx03.jl b/src/wrappers/aarch64-linux-musl-cxx03.jl new file mode 100644 index 0000000..998e130 --- /dev/null +++ b/src/wrappers/aarch64-linux-musl-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for aarch64-linux-musl-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/aarch64-linux-musl-cxx11.jl b/src/wrappers/aarch64-linux-musl-cxx11.jl new file mode 100644 index 0000000..1893fc3 --- /dev/null +++ b/src/wrappers/aarch64-linux-musl-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for aarch64-linux-musl-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/armv7l-linux-gnueabihf-cxx03.jl b/src/wrappers/armv7l-linux-gnueabihf-cxx03.jl new file mode 100644 index 0000000..b985035 --- /dev/null +++ b/src/wrappers/armv7l-linux-gnueabihf-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for armv7l-linux-gnueabihf-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/armv7l-linux-gnueabihf-cxx11.jl b/src/wrappers/armv7l-linux-gnueabihf-cxx11.jl new file mode 100644 index 0000000..11ed691 --- /dev/null +++ b/src/wrappers/armv7l-linux-gnueabihf-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for armv7l-linux-gnueabihf-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/armv7l-linux-musleabihf-cxx03.jl b/src/wrappers/armv7l-linux-musleabihf-cxx03.jl new file mode 100644 index 0000000..5377f98 --- /dev/null +++ b/src/wrappers/armv7l-linux-musleabihf-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for armv7l-linux-musleabihf-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/armv7l-linux-musleabihf-cxx11.jl b/src/wrappers/armv7l-linux-musleabihf-cxx11.jl new file mode 100644 index 0000000..88d1ed8 --- /dev/null +++ b/src/wrappers/armv7l-linux-musleabihf-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for armv7l-linux-musleabihf-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/i686-linux-gnu-cxx03.jl b/src/wrappers/i686-linux-gnu-cxx03.jl new file mode 100644 index 0000000..47a0f19 --- /dev/null +++ b/src/wrappers/i686-linux-gnu-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for i686-linux-gnu-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/i686-linux-gnu-cxx11.jl b/src/wrappers/i686-linux-gnu-cxx11.jl new file mode 100644 index 0000000..b97b7c9 --- /dev/null +++ b/src/wrappers/i686-linux-gnu-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for i686-linux-gnu-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/i686-linux-musl-cxx03.jl b/src/wrappers/i686-linux-musl-cxx03.jl new file mode 100644 index 0000000..1f3ee30 --- /dev/null +++ b/src/wrappers/i686-linux-musl-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for i686-linux-musl-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/i686-linux-musl-cxx11.jl b/src/wrappers/i686-linux-musl-cxx11.jl new file mode 100644 index 0000000..09d97e4 --- /dev/null +++ b/src/wrappers/i686-linux-musl-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for i686-linux-musl-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/i686-w64-mingw32-cxx03.jl b/src/wrappers/i686-w64-mingw32-cxx03.jl new file mode 100644 index 0000000..8a7ff46 --- /dev/null +++ b/src/wrappers/i686-w64-mingw32-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for i686-w64-mingw32-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["bin", "libCbc-3.dll"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc-3.dll" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["bin", "libCbcSolver-3.dll"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver-3.dll" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [Sys.BINDIR, joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ';') + global LIBPATH = join(LIBPATH_list, ';') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/i686-w64-mingw32-cxx11.jl b/src/wrappers/i686-w64-mingw32-cxx11.jl new file mode 100644 index 0000000..d950f2d --- /dev/null +++ b/src/wrappers/i686-w64-mingw32-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for i686-w64-mingw32-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["bin", "libCbc-3.dll"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc-3.dll" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["bin", "libCbcSolver-3.dll"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver-3.dll" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [Sys.BINDIR, joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ';') + global LIBPATH = join(LIBPATH_list, ';') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/x86_64-apple-darwin14-cxx03.jl b/src/wrappers/x86_64-apple-darwin14-cxx03.jl new file mode 100644 index 0000000..af1569e --- /dev/null +++ b/src/wrappers/x86_64-apple-darwin14-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for x86_64-apple-darwin14-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "DYLD_FALLBACK_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.3.10.5.dylib"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "@rpath/libCbc.3.dylib" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.3.10.5.dylib"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "@rpath/libCbcSolver.3.dylib" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/x86_64-apple-darwin14-cxx11.jl b/src/wrappers/x86_64-apple-darwin14-cxx11.jl new file mode 100644 index 0000000..aca0e83 --- /dev/null +++ b/src/wrappers/x86_64-apple-darwin14-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for x86_64-apple-darwin14-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "DYLD_FALLBACK_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.3.10.5.dylib"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "@rpath/libCbc.3.dylib" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.3.10.5.dylib"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "@rpath/libCbcSolver.3.dylib" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/x86_64-linux-gnu-cxx03.jl b/src/wrappers/x86_64-linux-gnu-cxx03.jl new file mode 100644 index 0000000..8e269b1 --- /dev/null +++ b/src/wrappers/x86_64-linux-gnu-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for x86_64-linux-gnu-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/x86_64-linux-gnu-cxx11.jl b/src/wrappers/x86_64-linux-gnu-cxx11.jl new file mode 100644 index 0000000..90dba68 --- /dev/null +++ b/src/wrappers/x86_64-linux-gnu-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for x86_64-linux-gnu-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/x86_64-linux-musl-cxx03.jl b/src/wrappers/x86_64-linux-musl-cxx03.jl new file mode 100644 index 0000000..f20adc2 --- /dev/null +++ b/src/wrappers/x86_64-linux-musl-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for x86_64-linux-musl-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/x86_64-linux-musl-cxx11.jl b/src/wrappers/x86_64-linux-musl-cxx11.jl new file mode 100644 index 0000000..34ee09e --- /dev/null +++ b/src/wrappers/x86_64-linux-musl-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for x86_64-linux-musl-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "LD_LIBRARY_PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["lib", "libCbc.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc.so.3" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["lib", "libCbcSolver.so"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver.so.3" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ':') + global LIBPATH = join(LIBPATH_list, ':') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/x86_64-w64-mingw32-cxx03.jl b/src/wrappers/x86_64-w64-mingw32-cxx03.jl new file mode 100644 index 0000000..f1b5c8b --- /dev/null +++ b/src/wrappers/x86_64-w64-mingw32-cxx03.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for x86_64-w64-mingw32-cxx03 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["bin", "libCbc-3.dll"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc-3.dll" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["bin", "libCbcSolver-3.dll"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver-3.dll" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [Sys.BINDIR, joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ';') + global LIBPATH = join(LIBPATH_list, ';') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() + diff --git a/src/wrappers/x86_64-w64-mingw32-cxx11.jl b/src/wrappers/x86_64-w64-mingw32-cxx11.jl new file mode 100644 index 0000000..3fd121c --- /dev/null +++ b/src/wrappers/x86_64-w64-mingw32-cxx11.jl @@ -0,0 +1,86 @@ +# Autogenerated wrapper script for Cbc_jll for x86_64-w64-mingw32-cxx11 +export libCbc, libcbcsolver + +using Clp_jll +using Cgl_jll +using Osi_jll +using CoinUtils_jll +using METIS_jll +using ASL_jll +using OpenBLAS32_jll +using CompilerSupportLibraries_jll +## Global variables +PATH = "" +LIBPATH = "" +LIBPATH_env = "PATH" + +# Relative path to `libCbc` +const libCbc_splitpath = ["bin", "libCbc-3.dll"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libCbc_path = "" + +# libCbc-specific global declaration +# This will be filled out by __init__() +libCbc_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libCbc = "libCbc-3.dll" + + +# Relative path to `libcbcsolver` +const libcbcsolver_splitpath = ["bin", "libCbcSolver-3.dll"] + +# This will be filled out by __init__() for all products, as it must be done at runtime +libcbcsolver_path = "" + +# libcbcsolver-specific global declaration +# This will be filled out by __init__() +libcbcsolver_handle = C_NULL + +# This must be `const` so that we can use it with `ccall()` +const libcbcsolver = "libCbcSolver-3.dll" + + +""" +Open all libraries +""" +function __init__() + global artifact_dir = abspath(artifact"Cbc") + + # Initialize PATH and LIBPATH environment variable listings + global PATH_list, LIBPATH_list + # We first need to add to LIBPATH_list the libraries provided by Julia + append!(LIBPATH_list, [Sys.BINDIR, joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) + # From the list of our dependencies, generate a tuple of all the PATH and LIBPATH lists, + # then append them to our own. + foreach(p -> append!(PATH_list, p), (Clp_jll.PATH_list, Cgl_jll.PATH_list, Osi_jll.PATH_list, CoinUtils_jll.PATH_list, METIS_jll.PATH_list, ASL_jll.PATH_list, OpenBLAS32_jll.PATH_list, CompilerSupportLibraries_jll.PATH_list,)) + foreach(p -> append!(LIBPATH_list, p), (Clp_jll.LIBPATH_list, Cgl_jll.LIBPATH_list, Osi_jll.LIBPATH_list, CoinUtils_jll.LIBPATH_list, METIS_jll.LIBPATH_list, ASL_jll.LIBPATH_list, OpenBLAS32_jll.LIBPATH_list, CompilerSupportLibraries_jll.LIBPATH_list,)) + + global libCbc_path = normpath(joinpath(artifact_dir, libCbc_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libCbc_handle = dlopen(libCbc_path) + push!(LIBPATH_list, dirname(libCbc_path)) + + global libcbcsolver_path = normpath(joinpath(artifact_dir, libcbcsolver_splitpath...)) + + # Manually `dlopen()` this right now so that future invocations + # of `ccall` with its `SONAME` will find this path immediately. + global libcbcsolver_handle = dlopen(libcbcsolver_path) + push!(LIBPATH_list, dirname(libcbcsolver_path)) + + # Filter out duplicate and empty entries in our PATH and LIBPATH entries + filter!(!isempty, unique!(PATH_list)) + filter!(!isempty, unique!(LIBPATH_list)) + global PATH = join(PATH_list, ';') + global LIBPATH = join(LIBPATH_list, ';') + + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms + # that don't honor our "already opened" trick) + #for lp in LIBPATH_list + # push!(DL_LOAD_PATH, lp) + #end +end # __init__() +