Skip to content

Files

Failed to load latest commit information.

Latest commit

 Cannot retrieve latest commit at this time.

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Bazel example bazel build

This folder contains a toy Bazel project depending on p4c. This is to demonstrate how to:

  • set up a Bazel workspace that depends on p4c,

  • use the p4_library rule to invoke p4c during the Bazel build process, and

  • define custom IR extensions.

You can use this project as a template to get you started.

The project is built during CI to ensure it is always up to date.