Skip to content

IvoBrandao/template-bazel-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

CPP console application project with bazel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published