Commit Graph

6 Commits

Author SHA1 Message Date
Keir Mierle 0f57fa82db Update Bazel WORKSPACE for newest Bazel
The latest Bazel releases have deprecated Bazel-native
"http_archive()" directive in favor of a Skylark version.
This updates the WORKSPACE to use the new format, as well
as removing the Eigen BUILD in favor of a string in the
WORKSPACE.

Fixes: https://github.com/ceres-solver/ceres-solver/issues/463

Change-Id: I2f7051316dbe0c1f283423c56b7672ab83a30860
2019-04-16 01:04:59 -07:00
Keir Mierle 22fa21c6f8 Build benchmarks with Bazel
Change-Id: I559cc1aa17d5be01dcff931e05b22e0dd9e248b6
2018-02-25 15:18:26 -08:00
Rodrigo Queiro c12aae5860 Fix macOS build by updating glog
This includes https://github.com/google/glog/pull/285.

Change-Id: I4844d24ae7fc3187d4f4983e34d3a8066422a9c9
2018-01-16 17:09:06 +01:00
Rodrigo Queiro ac22a97492 Run buildifier on BUILD/WORKSPACE
Change-Id: I80bf7025811128c0795bff3e3f5b61a355d848ba
2018-01-15 15:26:19 +01:00
Keir Mierle 3f826ef30e Switch Eigen Bazel to a separate file
Change-Id: I547037460e8ec1fa14438d655c10b261daa39d96
2018-01-12 14:09:02 -08:00
Keir Mierle 07f1405300 Add initial Bazel build, including tests.
This allows building and running the Ceres tests, without
needing any external dependencies; they are downloaded and
compiled automatically thanks to the magic of Bazel.

It also opens the door for other projects that use Ceres
easily thanks to Bazel's external dependency support.

Remaining work:
- Skylark macros to allow different Ceres configurations
- Checking to make sure external projects can use this
- Parallelizing bundle_adjustment_test execution

Sample output:

  INFO: Analysed target //:ceres (6 packages loaded).
  INFO: Found 1 target...
  Target //:ceres up-to-date:
    bazel-bin/libceres.a
    bazel-bin/libceres.so
  INFO: Elapsed time: 103.756s, Critical Path: 13.97s
  INFO: Build completed successfully, 131 total actions

Change-Id: I400d3ce43f35b7e7a770da346337e3ffdb500dc2
2018-01-12 21:36:14 +00:00