Skip to content

Latest commit

 

History

History
64 lines (51 loc) · 2.22 KB

README.md

File metadata and controls

64 lines (51 loc) · 2.22 KB

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

Integrating OR-Tools in your Bazel Project

You can take a look at the template project: or-tools/bazel_or-tools.