Commit 6f2d07b
Add Sandcastle CI job and CMake build for BGP++ OSS
Summary:
Add the Sandcastle CI infrastructure and CMake build system for the BGP++ OSS build. This is the build/CI counterpart to the code-readiness changes in the parent diff.
Three areas:
1. **Sandcastle CI job** (`fboss/facebook/oss_ci/`):
- `bgp_oss_build.bzl` — build macro adapted from `fboss_oss_build.bzl`. Key differences: source staging creates `bgp_src/` mirroring the BGP++ OSS layout, passes `bgp` as the getdeps manifest, no SAI/SDK steps.
- `BUCK` — adds `bgp-oss-build-manual` rule (manual-only for initial testing), builds `bgp_bin` cmake target.
- Minor `fboss_oss_build.bzl` fix for shared infrastructure.
- `run-getdeps.py` — helper script for getdeps invocation.
2. **CMake build** (`public_tld/CMakeLists.txt`, `FBGenCMakeBuildInfo.cmake`):
- Wires up all BGP++ source files into tiered CMake targets (routelib → common → config_policy → transport → nexthop → rib → adjrib → peer → service → binary).
- `bgp_fsdb_syncer` target for FsdbSyncer with FSDB client library dependencies.
- `bgp_fsdb_fib_watcher` target for FsdbFibWatcher.
- FBOSS install wiring via `find_path`/`find_library` for headers and static libs (no fbossConfig.cmake).
- Vendored openr thrift IDL targets (Network, Platform) and utility libs (NetworkUtil, SystemMetrics).
- Vendored FBOSS utility libs (AlertLogger, LogThriftCall).
- C++20 default, `IS_OSS` compile definition, thrift layer dependencies.
3. **getdeps manifest** (`opensource/fbcode_builder/manifests/bgp`):
- Lists BGP++ OSS dependencies (folly, fb303, fbthrift, fizz, fmt, wangle, re2, zstd, gcc12).
Reviewed By: xiangxu1121
Differential Revision: D106590984
fbshipit-source-id: 488b257a674b40f1e9a0ebcbd33ead55e660d1ef1 parent 2a5a874 commit 6f2d07b
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
| 26 | + | |
24 | 27 | | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | | - | |
28 | 32 | | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
0 commit comments