rework bazel doc

This commit is contained in:
Corentin Le Molgat
2021-11-19 14:52:25 +01:00
parent 94d4c25438
commit a9c46d2302

View File

@@ -17,11 +17,12 @@ Dockers [Alpine, Archlinux, Centos, Debian, Fedora, OpenSuse, Ubuntu]: [![Status
[docker_svg]: https://github.com/google/or-tools/actions/workflows/bazel_docker.yml/badge.svg?branch=master
[docker_link]: https://github.com/google/or-tools/actions/workflows/bazel_docker.yml
## Introduction
<nav for="bazel"> |
<a href="#deps">Dependencies</a> |
<a href="#build">Compilation</a> |
<a href="#dependencies">Dependencies</a> |
<a href="#compilation">Compilation</a> |
<a href="#testing">Testing</a> |
<a href="#integration">Integration</a> |
<a href="doc/ci.md">CI</a> |
</nav>
@@ -33,8 +34,8 @@ you can download it for free from <https://bazel.build/>.
**warning: Currently OR-Tools Bazel doesn't support Python, Java nor .Net,
please use the Makefile or CMake based build instead.**
<a name="deps"></a>
## Dependencies
OR-Tools depends on severals mandatory libraries.
* Google Abseil-cpp,
@@ -44,8 +45,8 @@ OR-Tools depends on severals mandatory libraries.
* SCIP,
* GLPK (GNU Linear Programming Kit)
<a name="build"></a>
## Compilation
You must compile OR-Tools using C++17:
* on UNIX:
@@ -58,7 +59,22 @@ You must compile OR-Tools using C++17:
bazel build --cxxopt="-std:c++17" //...:all
```
<a name="integration"></a>
## Integrating OR-Tools in your Bazel Project
You can take a look at the template project:
## Testing
You must compile OR-Tools using C++17:
* on UNIX:
```sh
bazel test --cxxopt=-std=c++17 //...:all
```
* on Windows when using MSVC:
```sh
bazel test --cxxopt="-std:c++17" //...:all
```
## Integration
To integrate OR-Tools in your own Bazel project,
you can take a look at the template project:
[or-tools/bazel\_or-tools](https://github.com/or-tools/bazel_or-tools).