bazel: fixup

This commit is contained in:
Corentin Le Molgat
2022-02-23 16:17:40 +01:00
parent e01e061bb6
commit 1270bda01b
2 changed files with 10 additions and 9 deletions

View File

@@ -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

View File

@@ -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]