4 ms·
I cannot agree with you more. The last time I look for build a bazel project with external dependency it was messy and undocumented. It was to use Tensorflow an
by Narew 9y ago
I cannot agree with you more. The last time I look for build a bazel project with external dependency it was messy and undocumented. It was to use Tensorflow and Opencv in a standalone C++ code, tensorflow use bazel by default.
- zhengyi13 9y agoBy external dependencies, do you mean things like arbitrary Git repos? There are standard rules there to accommodate things like that. As well, this may be new documentation since you last looked, but there's https://docs.bazel.build/versions/master/external.html https://docs.bazel.build/versions/master/external.html to read now, at least.
- misnome 9y agoPresumably they mean non-Bazel external projects, which that link doesn't even touch on ("The other repository uses make... just rewrite their build system!") - an external project with the same build system is the "easy" case for things like this and CMake; any new contender has to accept that there is a wide ecosystem of other solutions it's going to have to interoperate with. ...unless you are in a corporate environment with a build team to integrate complicated external projects into a monorepo and where things like build system can be mandated. That's always the feeling I've gotten from Bazel - you either do things the "google" way, or find something else.