bazel: fixup
This commit is contained in:
@@ -42,14 +42,15 @@ You'll need:
|
||||
|
||||
## Dependencies
|
||||
|
||||
OR-Tools depends on severals mandatory libraries.
|
||||
OR-Tools depends on several mandatory libraries.
|
||||
|
||||
* Google Abseil-cpp,
|
||||
* Google Protobuf,
|
||||
* Google Gtest,
|
||||
* Bliss,
|
||||
* SCIP,
|
||||
* GLPK (GNU Linear Programming Kit)
|
||||
* Eigen
|
||||
* Google Abseil-cpp,
|
||||
* Google Protobuf,
|
||||
* Google Gtest,
|
||||
* Bliss,
|
||||
* SCIP,
|
||||
* GLPK (GNU Linear Programming Kit)
|
||||
|
||||
## Compilation
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ def _py_wrap_cc_impl(ctx):
|
||||
module_name = ctx.attr.module_name
|
||||
src = ctx.files.srcs[0]
|
||||
inputs = set([src])
|
||||
inputs += ctx.files.swig_includes
|
||||
inputs += ctx.files.i_includes
|
||||
for dep in ctx.attr.deps:
|
||||
inputs += dep.cc.transitive_headers
|
||||
inputs += ctx.files._swiglib
|
||||
@@ -24,7 +24,7 @@ def _py_wrap_cc_impl(ctx):
|
||||
"-outdir",
|
||||
ctx.outputs.py_out.dirname,
|
||||
]
|
||||
args += ["-l" + f.path for f in ctx.files.swig_includes]
|
||||
args += ["-l" + f.path for f in ctx.files.i_includes]
|
||||
args += ["-I" + i for i in swig_include_dirs]
|
||||
args.append(src.path)
|
||||
outputs = [ctx.outputs.cc_out, ctx.outputs.py_out]
|
||||
|
||||
Reference in New Issue
Block a user