Skip to content

Latest commit

 

History

History
107 lines (72 loc) · 3.23 KB

README.md

File metadata and controls

107 lines (72 loc) · 3.23 KB

Bazel build template for cpp


Project Logo

Bazel CPP project template

An awesome cpp project template with bazel build system to jumpstart your projects!


Build Bazel Project

features


Features

This project includes support for:

Frameworks:

Libraries:

Bazel Installation

Please refer to the official Bazel installation guide for your platform:

Project Setup

Step 1: Clone the repository

git clone git@github.com:IvoBrandao/template-bazel-project.git

Step 2: Build the project

bazel build //app:main

Step 3: Run the project

bazel run //app:main

Step 4: Test the project

bazel test //app:main
# or for a specific platform:
bazel run  //app:main --platforms=//platforms:windows_platform
bazel run  //app:main --platforms=//platforms:macos_platform
bazel run  //app:main --platforms=//platforms:ubuntu_platform

Step 5: Test individual libraries

To run tests for specific libraries (e.g., pkg library), use:

bazel test //lib/pkg:pkg_test --test_output=all

Dependencies

The project uses Bazel’s module system (MODULE.bazel) to manage dependencies. The following libraries are included: