3 ms·
> you can get your third-party sources from HTTP, Git Can you elaborate? I assume those projects have to be brought into the Bazel configuration format, or doe
by uep 6y ago
> you can get your third-party sources from HTTP, Git
Can you elaborate? I assume those projects have to be brought into the Bazel configuration format, or does it have some support for foreign build systems?
- cpgxiii 6y agoIt doesn't, at least not in any form you'd want to rely on. Bazel makes it easier than CMake to pull in externals in source form, but you'll still want to write Bazel build rules for them in most cases. In practice for C/C++ externals being built in a Bazel project, almost all of the build can be captured by a couple cc_library(...) and cc_binary(...) rules.
- uep 6y agoI've had kind of a crazy idea of building an entire Linux-based embedded system using Bazel. Based on your previous comment, I briefly thought they might have had some detection of foreign build systems now. Some part of me still finds the idea kind of interesting. The idea of doing a Linux-from-scratch, but porting each project to Bazel in the process. It's kind of silly and would be a lot of work, but I think about being able to modify a header of any library in the system, and have that change quickly percolate up to every dependent application automatically. The way to do it now is through bitbake, but it (rightly) is just wrappers around every other build system. The goals are a bit different than Bazel's, but it's quite slow.
- steeve 6y agoIt does, via https://github.com/bazelbuild/rules_foreign_cc https://github.com/bazelbuild/rules_foreign_cc, but it's not always the best idea.