Files
ortools-clone/examples/WORKSPACE
Clement Courbet 53c41b2ad6 Bazel: Add optional support for GLPK.
Try it out:
bazel run --define USE_GLPK= cpp:linear_programming
2017-04-18 14:12:08 +02:00

39 lines
1.4 KiB
Python

local_repository(
name = "or_tools_libraries",
path = "../src",
)
git_repository(
name = "com_github_gflags_gflags",
commit = "f8a0efe03aa69b3336d8e228b37d4ccb17324b88",
remote = "https://github.com/gflags/gflags.git",
)
# proto_library rules implicitly depend on @com_google_protobuf//:protoc,
# which is the proto-compiler.
# This statement defines the @com_google_protobuf repo.
http_archive(
name = "com_google_protobuf",
urls = ["https://github.com/google/protobuf/archive/b4b0e304be5a68de3d0ee1af9b286f958750f5e4.zip"],
strip_prefix = "protobuf-b4b0e304be5a68de3d0ee1af9b286f958750f5e4",
sha256 = "ff771a662fb6bd4d3cc209bcccedef3e93980a49f71df1e987f6afa3bcdcba3a",
)
# cc_proto_library rules implicitly depend on
# @com_google_protobuf_cc//:cc_toolchain, which is the C++ proto runtime
# (base classes and common utilities).
http_archive(
name = "com_google_protobuf_cc",
urls = ["https://github.com/google/protobuf/archive/b4b0e304be5a68de3d0ee1af9b286f958750f5e4.zip"],
strip_prefix = "protobuf-b4b0e304be5a68de3d0ee1af9b286f958750f5e4",
sha256 = "ff771a662fb6bd4d3cc209bcccedef3e93980a49f71df1e987f6afa3bcdcba3a",
)
new_http_archive(
name = "glpk",
url = "http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz",
sha256 = "c35438e3ba74a8d85236810e6b84879272c87cfa7473b4075201e2967839f48d",
build_file = "../src/glpk.BUILD",
)