|
| 1 | +# Autogenerated wrapper script for libcxxwrap_julia_jll for i686-w64-mingw32-cxx03 |
| 2 | +export libinheritance, libtypes, libextended, libpointer_modification, libbasic_types, libcxxwrap_julia_stl, libparametric, libhello, libexcept, libjlcxx_containers, libfunctions, libcxxwrap_julia |
| 3 | + |
| 4 | +## Global variables |
| 5 | +PATH = "" |
| 6 | +LIBPATH = "" |
| 7 | +LIBPATH_env = "PATH" |
| 8 | + |
| 9 | +# Relative path to `libinheritance` |
| 10 | +const libinheritance_splitpath = ["bin", "libinheritance.dll"] |
| 11 | + |
| 12 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 13 | +libinheritance_path = "" |
| 14 | + |
| 15 | +# libinheritance-specific global declaration |
| 16 | +# This will be filled out by __init__() |
| 17 | +libinheritance_handle = C_NULL |
| 18 | + |
| 19 | +# This must be `const` so that we can use it with `ccall()` |
| 20 | +const libinheritance = "libinheritance.dll" |
| 21 | + |
| 22 | + |
| 23 | +# Relative path to `libtypes` |
| 24 | +const libtypes_splitpath = ["bin", "libtypes.dll"] |
| 25 | + |
| 26 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 27 | +libtypes_path = "" |
| 28 | + |
| 29 | +# libtypes-specific global declaration |
| 30 | +# This will be filled out by __init__() |
| 31 | +libtypes_handle = C_NULL |
| 32 | + |
| 33 | +# This must be `const` so that we can use it with `ccall()` |
| 34 | +const libtypes = "libtypes.dll" |
| 35 | + |
| 36 | + |
| 37 | +# Relative path to `libextended` |
| 38 | +const libextended_splitpath = ["bin", "libextended.dll"] |
| 39 | + |
| 40 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 41 | +libextended_path = "" |
| 42 | + |
| 43 | +# libextended-specific global declaration |
| 44 | +# This will be filled out by __init__() |
| 45 | +libextended_handle = C_NULL |
| 46 | + |
| 47 | +# This must be `const` so that we can use it with `ccall()` |
| 48 | +const libextended = "libextended.dll" |
| 49 | + |
| 50 | + |
| 51 | +# Relative path to `libpointer_modification` |
| 52 | +const libpointer_modification_splitpath = ["bin", "libpointer_modification.dll"] |
| 53 | + |
| 54 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 55 | +libpointer_modification_path = "" |
| 56 | + |
| 57 | +# libpointer_modification-specific global declaration |
| 58 | +# This will be filled out by __init__() |
| 59 | +libpointer_modification_handle = C_NULL |
| 60 | + |
| 61 | +# This must be `const` so that we can use it with `ccall()` |
| 62 | +const libpointer_modification = "libpointer_modification.dll" |
| 63 | + |
| 64 | + |
| 65 | +# Relative path to `libbasic_types` |
| 66 | +const libbasic_types_splitpath = ["bin", "libbasic_types.dll"] |
| 67 | + |
| 68 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 69 | +libbasic_types_path = "" |
| 70 | + |
| 71 | +# libbasic_types-specific global declaration |
| 72 | +# This will be filled out by __init__() |
| 73 | +libbasic_types_handle = C_NULL |
| 74 | + |
| 75 | +# This must be `const` so that we can use it with `ccall()` |
| 76 | +const libbasic_types = "libbasic_types.dll" |
| 77 | + |
| 78 | + |
| 79 | +# Relative path to `libcxxwrap_julia_stl` |
| 80 | +const libcxxwrap_julia_stl_splitpath = ["bin", "libcxxwrap_julia_stl.dll"] |
| 81 | + |
| 82 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 83 | +libcxxwrap_julia_stl_path = "" |
| 84 | + |
| 85 | +# libcxxwrap_julia_stl-specific global declaration |
| 86 | +# This will be filled out by __init__() |
| 87 | +libcxxwrap_julia_stl_handle = C_NULL |
| 88 | + |
| 89 | +# This must be `const` so that we can use it with `ccall()` |
| 90 | +const libcxxwrap_julia_stl = "libcxxwrap_julia_stl.dll" |
| 91 | + |
| 92 | + |
| 93 | +# Relative path to `libparametric` |
| 94 | +const libparametric_splitpath = ["bin", "libparametric.dll"] |
| 95 | + |
| 96 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 97 | +libparametric_path = "" |
| 98 | + |
| 99 | +# libparametric-specific global declaration |
| 100 | +# This will be filled out by __init__() |
| 101 | +libparametric_handle = C_NULL |
| 102 | + |
| 103 | +# This must be `const` so that we can use it with `ccall()` |
| 104 | +const libparametric = "libparametric.dll" |
| 105 | + |
| 106 | + |
| 107 | +# Relative path to `libhello` |
| 108 | +const libhello_splitpath = ["bin", "libhello.dll"] |
| 109 | + |
| 110 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 111 | +libhello_path = "" |
| 112 | + |
| 113 | +# libhello-specific global declaration |
| 114 | +# This will be filled out by __init__() |
| 115 | +libhello_handle = C_NULL |
| 116 | + |
| 117 | +# This must be `const` so that we can use it with `ccall()` |
| 118 | +const libhello = "libhello.dll" |
| 119 | + |
| 120 | + |
| 121 | +# Relative path to `libexcept` |
| 122 | +const libexcept_splitpath = ["bin", "libexcept.dll"] |
| 123 | + |
| 124 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 125 | +libexcept_path = "" |
| 126 | + |
| 127 | +# libexcept-specific global declaration |
| 128 | +# This will be filled out by __init__() |
| 129 | +libexcept_handle = C_NULL |
| 130 | + |
| 131 | +# This must be `const` so that we can use it with `ccall()` |
| 132 | +const libexcept = "libexcept.dll" |
| 133 | + |
| 134 | + |
| 135 | +# Relative path to `libjlcxx_containers` |
| 136 | +const libjlcxx_containers_splitpath = ["bin", "libjlcxx_containers.dll"] |
| 137 | + |
| 138 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 139 | +libjlcxx_containers_path = "" |
| 140 | + |
| 141 | +# libjlcxx_containers-specific global declaration |
| 142 | +# This will be filled out by __init__() |
| 143 | +libjlcxx_containers_handle = C_NULL |
| 144 | + |
| 145 | +# This must be `const` so that we can use it with `ccall()` |
| 146 | +const libjlcxx_containers = "libjlcxx_containers.dll" |
| 147 | + |
| 148 | + |
| 149 | +# Relative path to `libfunctions` |
| 150 | +const libfunctions_splitpath = ["bin", "libfunctions.dll"] |
| 151 | + |
| 152 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 153 | +libfunctions_path = "" |
| 154 | + |
| 155 | +# libfunctions-specific global declaration |
| 156 | +# This will be filled out by __init__() |
| 157 | +libfunctions_handle = C_NULL |
| 158 | + |
| 159 | +# This must be `const` so that we can use it with `ccall()` |
| 160 | +const libfunctions = "libfunctions.dll" |
| 161 | + |
| 162 | + |
| 163 | +# Relative path to `libcxxwrap_julia` |
| 164 | +const libcxxwrap_julia_splitpath = ["bin", "libcxxwrap_julia.dll"] |
| 165 | + |
| 166 | +# This will be filled out by __init__() for all products, as it must be done at runtime |
| 167 | +libcxxwrap_julia_path = "" |
| 168 | + |
| 169 | +# libcxxwrap_julia-specific global declaration |
| 170 | +# This will be filled out by __init__() |
| 171 | +libcxxwrap_julia_handle = C_NULL |
| 172 | + |
| 173 | +# This must be `const` so that we can use it with `ccall()` |
| 174 | +const libcxxwrap_julia = "libcxxwrap_julia.dll" |
| 175 | + |
| 176 | + |
| 177 | +""" |
| 178 | +Open all libraries |
| 179 | +""" |
| 180 | +function __init__() |
| 181 | + global artifact_dir = abspath(artifact"libcxxwrap_julia") |
| 182 | + |
| 183 | + # Initialize PATH and LIBPATH environment variable listings |
| 184 | + global PATH_list, LIBPATH_list |
| 185 | + # We first need to add to LIBPATH_list the libraries provided by Julia |
| 186 | + append!(LIBPATH_list, [Sys.BINDIR, joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]) |
| 187 | + global libinheritance_path = normpath(joinpath(artifact_dir, libinheritance_splitpath...)) |
| 188 | + |
| 189 | + # Manually `dlopen()` this right now so that future invocations |
| 190 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 191 | + global libinheritance_handle = dlopen(libinheritance_path) |
| 192 | + push!(LIBPATH_list, dirname(libinheritance_path)) |
| 193 | + |
| 194 | + global libtypes_path = normpath(joinpath(artifact_dir, libtypes_splitpath...)) |
| 195 | + |
| 196 | + # Manually `dlopen()` this right now so that future invocations |
| 197 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 198 | + global libtypes_handle = dlopen(libtypes_path) |
| 199 | + push!(LIBPATH_list, dirname(libtypes_path)) |
| 200 | + |
| 201 | + global libextended_path = normpath(joinpath(artifact_dir, libextended_splitpath...)) |
| 202 | + |
| 203 | + # Manually `dlopen()` this right now so that future invocations |
| 204 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 205 | + global libextended_handle = dlopen(libextended_path) |
| 206 | + push!(LIBPATH_list, dirname(libextended_path)) |
| 207 | + |
| 208 | + global libpointer_modification_path = normpath(joinpath(artifact_dir, libpointer_modification_splitpath...)) |
| 209 | + |
| 210 | + # Manually `dlopen()` this right now so that future invocations |
| 211 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 212 | + global libpointer_modification_handle = dlopen(libpointer_modification_path) |
| 213 | + push!(LIBPATH_list, dirname(libpointer_modification_path)) |
| 214 | + |
| 215 | + global libbasic_types_path = normpath(joinpath(artifact_dir, libbasic_types_splitpath...)) |
| 216 | + |
| 217 | + # Manually `dlopen()` this right now so that future invocations |
| 218 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 219 | + global libbasic_types_handle = dlopen(libbasic_types_path) |
| 220 | + push!(LIBPATH_list, dirname(libbasic_types_path)) |
| 221 | + |
| 222 | + global libcxxwrap_julia_stl_path = normpath(joinpath(artifact_dir, libcxxwrap_julia_stl_splitpath...)) |
| 223 | + |
| 224 | + # Manually `dlopen()` this right now so that future invocations |
| 225 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 226 | + global libcxxwrap_julia_stl_handle = dlopen(libcxxwrap_julia_stl_path) |
| 227 | + push!(LIBPATH_list, dirname(libcxxwrap_julia_stl_path)) |
| 228 | + |
| 229 | + global libparametric_path = normpath(joinpath(artifact_dir, libparametric_splitpath...)) |
| 230 | + |
| 231 | + # Manually `dlopen()` this right now so that future invocations |
| 232 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 233 | + global libparametric_handle = dlopen(libparametric_path) |
| 234 | + push!(LIBPATH_list, dirname(libparametric_path)) |
| 235 | + |
| 236 | + global libhello_path = normpath(joinpath(artifact_dir, libhello_splitpath...)) |
| 237 | + |
| 238 | + # Manually `dlopen()` this right now so that future invocations |
| 239 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 240 | + global libhello_handle = dlopen(libhello_path) |
| 241 | + push!(LIBPATH_list, dirname(libhello_path)) |
| 242 | + |
| 243 | + global libexcept_path = normpath(joinpath(artifact_dir, libexcept_splitpath...)) |
| 244 | + |
| 245 | + # Manually `dlopen()` this right now so that future invocations |
| 246 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 247 | + global libexcept_handle = dlopen(libexcept_path) |
| 248 | + push!(LIBPATH_list, dirname(libexcept_path)) |
| 249 | + |
| 250 | + global libjlcxx_containers_path = normpath(joinpath(artifact_dir, libjlcxx_containers_splitpath...)) |
| 251 | + |
| 252 | + # Manually `dlopen()` this right now so that future invocations |
| 253 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 254 | + global libjlcxx_containers_handle = dlopen(libjlcxx_containers_path) |
| 255 | + push!(LIBPATH_list, dirname(libjlcxx_containers_path)) |
| 256 | + |
| 257 | + global libfunctions_path = normpath(joinpath(artifact_dir, libfunctions_splitpath...)) |
| 258 | + |
| 259 | + # Manually `dlopen()` this right now so that future invocations |
| 260 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 261 | + global libfunctions_handle = dlopen(libfunctions_path) |
| 262 | + push!(LIBPATH_list, dirname(libfunctions_path)) |
| 263 | + |
| 264 | + global libcxxwrap_julia_path = normpath(joinpath(artifact_dir, libcxxwrap_julia_splitpath...)) |
| 265 | + |
| 266 | + # Manually `dlopen()` this right now so that future invocations |
| 267 | + # of `ccall` with its `SONAME` will find this path immediately. |
| 268 | + global libcxxwrap_julia_handle = dlopen(libcxxwrap_julia_path) |
| 269 | + push!(LIBPATH_list, dirname(libcxxwrap_julia_path)) |
| 270 | + |
| 271 | + # Filter out duplicate and empty entries in our PATH and LIBPATH entries |
| 272 | + filter!(!isempty, unique!(PATH_list)) |
| 273 | + filter!(!isempty, unique!(LIBPATH_list)) |
| 274 | + global PATH = join(PATH_list, ';') |
| 275 | + global LIBPATH = join(LIBPATH_list, ';') |
| 276 | + |
| 277 | + # Add each element of LIBPATH to our DL_LOAD_PATH (necessary on platforms |
| 278 | + # that don't honor our "already opened" trick) |
| 279 | + #for lp in LIBPATH_list |
| 280 | + # push!(DL_LOAD_PATH, lp) |
| 281 | + #end |
| 282 | +end # __init__() |
| 283 | + |
0 commit comments