gazebosim / gz-bazel

gz-bazel provides a set of Bazel build rules that are used by the Gazebo projects.
https://gazebosim.org
BSD 3-Clause "New" or "Revised" License
7 stars 8 forks source link

Updates for Garden #43

Closed mjcarroll closed 1 year ago

mjcarroll commented 1 year ago

Initial setup:

# Get bazelisk (bazel version manager)
wget https://github.com/bazelbuild/bazelisk/releases/download/v1.16.0/bazelisk-linux-amd64
# Move somewhere in your pat
mv bazelisk-linux-amd64 ~/.local/bin/bazel
chmod +x ~/.local/bin/bazel

mkdir workspace
cd workspace 
git clone https://github.com/gazebosim/gz-bazel bazel -b mjcarroll/garden_bazel

ln -sf bazel/example/bazelproject.example .bazelproject
ln -sf bazel/example/bazelrc.example .bazelrc
ln -sf bazel/example/BUILD.bazel.example BUILD.bazel
ln -sf bazel/example/WORKSPACE.bazel.example WORKSPACE.bazel
vcs import . < bazel/example/bazel.repos

# To build
bazel build //...

# To build common
bazel build //common/...

# To test
bazel test //...
nkoenig commented 1 year ago

The purpose of this PR is to migrate from igntion to gazebo?

mjcarroll commented 1 year ago

The purpose of this PR is to migrate from igntion to gazebo?

As well as update all of our dependencies, etc. There will be also be a series of PRs to adjust individual library builds.

mjcarroll commented 1 year ago

Replaced by #44