Skip to content

Commit

Permalink
Define install-path-presets (#702)
Browse files Browse the repository at this point in the history
- Implemented an `install-path-presets` preset that defines
  DEPEND_INSTALL_DIR and SDE_INSTALL_DIR from the DEPEND_INSTALL
  and SDE_INSTALL environment variables.

Signed-off-by: Derek Foster <[email protected]>
  • Loading branch information
ffoulkes authored Oct 31, 2024
1 parent ddc000a commit 42b8425
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,24 @@
"TDI_TARGET": "tofino"
}
},
{
"name": "install-path-presets",
"description": "Install paths from environment",
"hidden": true,
"cacheVariables": {
"DEPEND_INSTALL_DIR": {
"type": "PATH",
"value": "$env{DEPEND_INSTALL}"
},
"SDE_INSTALL_DIR": {
"type": "PATH",
"value": "$env{SDE_INSTALL}"
}
}
},
{
"name": "ovs-legacy-mode",
"description": "Mixin presets for legacy P4OVS build",
"description": "Legacy OVS-first mode",
"hidden": true,
"cacheVariables": {
"OVS_INSTALL_DIR": {
Expand All @@ -63,7 +78,7 @@
},
{
"name": "ovs-ovsp4rt-mode",
"description": "Mixin presets for external ovsp4rt library",
"description": "OVS with ovsp4rt library",
"hidden": true,
"cacheVariables": {
"OVS_INSTALL_DIR": null,
Expand All @@ -72,7 +87,7 @@
},
{
"name": "ovs-stubs-mode",
"description": "Mixin presets for ovsp4rt stubs library",
"description": "OVS with ovsp4rt stubs",
"hidden": true,
"cacheVariables": {
"OVS_INSTALL_DIR": null,
Expand Down

0 comments on commit 42b8425

Please sign in to comment.