symforce icon indicating copy to clipboard operation
symforce copied to clipboard

Bazel build

Open aaron-skydio opened this issue 4 years ago • 5 comments

Set up a bazel build for symforce. This may include:

  1. being able to build symforce standalone
  2. being able to include symforce as a local_repository (and friends) in a larger bazel build

aaron-skydio avatar Jan 17 '22 23:01 aaron-skydio

Hey Aaron, I'm starting to use symforce with bazel and have developed some internal rules to simplify the process of generating cc_libraries. Is there interest in contributing these rules back upstream?

matte1 avatar Jun 03 '23 21:06 matte1

Would definitely be interested personally!

russellsch avatar Jun 04 '23 14:06 russellsch

Yeah we're interested! Feel free to go ahead and make a PR

aaron-skydio avatar Jun 05 '23 18:06 aaron-skydio

@aaron-skydio what's your preference between me doing this in a separate repo like rules_symforce vs making a PR directly to the symforce repo which would require me adding some bazel boiler plate?

I should also note that I'm currently grabbing symforce via PyPI in bazel. So adding bazel files directly to the symforce repo and then grabbing it from PyPI is a little bit awkward.

matte1 avatar Jun 05 '23 21:06 matte1

Let me put this up as a talking point. Its very simple but is generally what I am aiming for.

https://github.com/matte1/rules_symforce

One thing to note is that I would like to include eigen as a dependency so that its easy to compile the auto-generated code.

matte1 avatar Jun 05 '23 23:06 matte1