basic bazel project structure

Express skcms' project structure in Bazel.

bazel build ... and bazel test ... work for me on WSL2 Ubuntu 20.04.

Everything was reassuringly sandboxed by default:
    - tests binary needed our profiles/ directory declared as
      a data dependency when run under bazel test
    - visibility all defaulted to something locked down,
      I think "visible to targets declared in this BUILD file"
    - (not in this CL) to build with ccache, I had to set in .bazelrc
      `build --sandbox_writable_path=/home/mtklein/.ccache`

buildifier seems to work ok for formatting.
(go get

Change-Id: I70d0de71ef91dbfd8bb2e3d0700c2df125cb4f7f
Commit-Queue: Mike Klein <>
Reviewed-by: Joe Gregorio <>
4 files changed