Files
ortools-clone/bazel
Laurent Perron 8dbaed8901 fix
2021-11-21 19:37:33 +01:00
..
2020-04-06 14:54:47 +02:00
2021-08-27 13:40:33 +02:00
2020-11-05 16:25:48 +01:00
2020-07-03 10:34:45 +02:00
2021-11-21 19:29:35 +01:00
2020-11-05 16:25:48 +01:00
fix
2021-11-21 19:37:33 +01:00
2021-11-19 14:55:58 +01:00
2021-07-27 01:54:28 +02:00
2021-07-27 01:54:28 +02:00
2020-12-23 11:50:22 +01:00
2020-11-05 16:25:48 +01:00

OR-Tools Bazel Build Instructions

OS C++
Linux Status
MacOS Status
Windows Status

Dockers [Alpine, Archlinux, Centos, Debian, Fedora, OpenSuse, Ubuntu]: Status

Introduction

| Dependencies | Compilation | Testing | Integration | CI |

OR-Tools comes with a Bazel based build (WORKSPACE) that can be used on a wide range of platforms. If you don't have Bazel installed already, 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.

Dependencies

OR-Tools depends on severals mandatory libraries.

  • Google Abseil-cpp,
  • Google Protobuf,
  • Google Gtest,
  • Bliss,
  • SCIP,
  • GLPK (GNU Linear Programming Kit)

Compilation

You must compile OR-Tools using C++17:

  • on UNIX:
    bazel build --cxxopt=-std=c++17 //...:all
    
  • on Windows when using MSVC:
    bazel build --cxxopt="-std:c++17" //...:all
    

Testing

You may run tests using:

  • on UNIX:
    bazel test --cxxopt=-std=c++17 //...:all
    
  • on Windows when using MSVC:
    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.