Skip to content

Commit b8e2b43

Browse files
induvsureshmeta-codesync[bot]
authored andcommitted
Add FBGenCMakeBuildInfo.cmake and getdeps manifest
Summary: Add the build infrastructure files needed for the BGP++ OSS CMake build system: 1. `FBGenCMakeBuildInfo.cmake` — copied from Open/R, provides `add_build_info()` and `generate_build_info()` CMake functions that auto-generate `CMakeBuildInfo.cpp` at build time. This populates the `BuildInfo_k*` constants declared in `bgp/cpp/common/CMakeBuildInfo.h`, which the OSS `BuildInfo.cpp` reads. 2. `opensource/fbcode_builder/manifests/bgppp` — getdeps.py manifest that declares BGP++ dependencies (folly, fbthrift, fb303, boost, re2), sets the CMake builder, and defines the ShipIt path mapping (`public_tld = .` maps to OSS repo root). getdeps.py is Meta's OSS dependency builder. It reads this manifest, recursively builds all dependencies from source (folly → fbthrift → fb303), then invokes CMake for BGP++ with the correct CMAKE_PREFIX_PATH so find_package() resolves. Differential Revision: D103337709 fbshipit-source-id: cd79448cc70ab18fd4e5635bfb290cd37e9c3e17
1 parent 2584690 commit b8e2b43

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

  • build/fbcode_builder/manifests

build/fbcode_builder/manifests/bgp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[manifest]
2+
name = bgp
3+
fbsource_path = facebook/neteng/fboss/bgp
4+
shipit_project = bgp
5+
shipit_fbcode_builder = true
6+
7+
[git]
8+
repo_url = https://github.com/facebook/BGP.git
9+
10+
[build.os=linux]
11+
builder = cmake
12+
job_weight_mib = 3072
13+
14+
[build.not(os=linux)]
15+
builder = nop
16+
17+
[dependencies]
18+
boost
19+
fb303
20+
fbthrift
21+
folly
22+
re2
23+
24+
[shipit.pathmap]
25+
fbcode/neteng/fboss/bgp = neteng/fboss/bgp
26+
fbcode/neteng/fboss/bgp/public_tld = .

0 commit comments

Comments
 (0)