This is an example of possible Bazel configuration for GLFW library on MacOS 10.15.5 Catalina.
-
git clone --recurse-submodules git@github.com:siggb/glfw-bazel-xcode.git
-
./bootstrap.sh
Shows the scenario when all dependencies will be downloaded and built with Bazel.
cd Project
bazel version & bazel sync
to display version and checkout remote repos
bazel build @glfw//:glfw
to build GLFW
bazel build //src:Project
to build Project
Similar to Project
but with all dependencies located at /vendor
locally for Debug purpose.
/vendor
is a folder for all external dependencies to be downloaded as Git Submodules.
cd ProjectWithSubmodules
bazel version & bazel sync
to display version and checkout remote repos
bazel build //vendor:glfw
to build GLFW
bazel build //src:Project
to build Project