-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
2,563 additions
and
768 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name = "Xpress" | |
uuid = "9e70acf3-d6c9-5be6-b5bd-4e2c73e3e054" | ||
authors = ["Joaquim Dias Garcia <[email protected]>, Dheepak Krishnamurthy <[email protected]>, Jose Daniel Lara <[email protected]>"] | ||
url = "https://github.com/jump-dev/Xpress.jl" | ||
version = "0.15.6" | ||
version = "0.16.1" | ||
|
||
[deps] | ||
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,50 @@ | ||
# requires julia 1.6 | ||
|
||
using Clang | ||
|
||
# LIBXPRESS_HEADERS are those headers to be wrapped. | ||
const LIBXPRESS_INCLUDE = joinpath(ENV["XPRESSDIR"], "include") |> expanduser |> normpath | ||
const LIBXPRESS_HEADERS = [ | ||
joinpath(LIBXPRESS_INCLUDE, header) for header in [ | ||
# "bindrv.h", | ||
# "mmhttp.h", | ||
# "mmquad.h", | ||
# "mmsystem.h", | ||
# "mmxprs.h", | ||
# "mosel_dso.h", | ||
# "mosel_mc.h", | ||
# "mosel_ni.h", | ||
# "mosel_nifct.h", | ||
# "mosel_rt.h", | ||
# "xprb.h", | ||
# "xprb_cpp.h", | ||
# "xprd.h", | ||
# "xprm_mc.h", | ||
# "xprm_ni.h", | ||
# "xprm_rt.h", | ||
# "xprnls.h", | ||
"xprs.h", | ||
# "xprs_mse_defaulthandler.h", | ||
# "XPRSdefaultMipSolEnumHandler.java", | ||
# "xslp.h", | ||
] | ||
] | ||
joinpath(LIBXPRESS_INCLUDE, header) for header in [ | ||
# "bindrv.h", | ||
# "mmhttp.h", | ||
# "mmquad.h", | ||
# "mmsystem.h", | ||
# "mmxprs.h", | ||
# "mosel_dso.h", | ||
# "mosel_mc.h", | ||
# "mosel_ni.h", | ||
# "mosel_nifct.h", | ||
# "mosel_rt.h", | ||
# "xprb.h", | ||
# "xprb_cpp.h", | ||
# "xprd.h", | ||
# "xprm_mc.h", | ||
# "xprm_ni.h", | ||
# "xprm_rt.h", | ||
# "xprnls.h", | ||
"xprs.h", | ||
# "xprs_mse_defaulthandler.h", | ||
# "XPRSdefaultMipSolEnumHandler.java", | ||
# "xslp.h", | ||
] | ||
] | ||
|
||
wc = init(; headers = LIBXPRESS_HEADERS, | ||
output_file = joinpath(@__DIR__, "../src/lib.jl"), | ||
common_file = joinpath(@__DIR__, "../src/common.jl"), | ||
clang_includes = vcat(LIBXPRESS_INCLUDE, CLANG_INCLUDE), | ||
clang_args = ["-I", joinpath(LIBXPRESS_INCLUDE, "..")], | ||
header_wrapped = (root, current)->root == current, | ||
header_library = x->"libxprs", | ||
clang_diagnostics = true, | ||
) | ||
wc = init(; | ||
headers = LIBXPRESS_HEADERS, | ||
output_file = joinpath(@__DIR__, "../src/lib.jl"), | ||
common_file = joinpath(@__DIR__, "../src/common.jl"), | ||
clang_includes = vcat(LIBXPRESS_INCLUDE, CLANG_INCLUDE), | ||
clang_args = ["-I", joinpath(LIBXPRESS_INCLUDE, "..")], | ||
header_wrapped = (root, current)->root == current, | ||
header_library = x->"libxprs", | ||
clang_diagnostics = true, | ||
) | ||
|
||
run(wc) | ||
|
||
# # create context | ||
# ctx = create_context(headers, args, options) | ||
|
||
# # run generator | ||
# build!(ctx) |
Oops, something went wrong.