Skip to content

Commit f54e8b3

Browse files
Anton Likhtarovmeta-codesync[bot]
authored andcommitted
Add CMake build support
Summary: Add CMake-based build system for mcrouter OSS releases. This enables building mcrouter outside of Buck/Meta infrastructure using standard CMake tooling, and enables easy build from inside fbcode, sandcastle testing, and so on. This is standard for folly/thrift already. Changes: - Add CMakeLists.txt with full build configuration - Add config.h.in and config-impl.h.in templates - Add mcrouter-config.cmake.in for downstream CMake consumption - Add AGENTS.md with OSS build documentation - Update fbcode_builder manifest for mcrouter Reviewed By: pbhandar2 Differential Revision: D91269570 fbshipit-source-id: e5ebff8056b258692c466e87b52a8568bfd0f7f5
1 parent 2972979 commit f54e8b3

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

build/fbcode_builder/manifests/mcrouter

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[manifest]
22
name = mcrouter
3+
fbsource_path = fbcode/mcrouter
4+
shipit_project = mcrouter
5+
shipit_fbcode_builder = true
36

47
[git]
58
repo_url = https://github.com/facebook/mcrouter.git
@@ -11,10 +14,26 @@ fizz
1114
fbthrift
1215
mvfst
1316
ragel
17+
gflags
18+
glog
19+
boost
20+
libevent
21+
openssl
22+
zlib
23+
double-conversion
24+
25+
[shipit.pathmap]
26+
fbcode/mcrouter/public_tld = .
27+
fbcode/mcrouter = mcrouter
28+
29+
[shipit.strip]
30+
^fbcode/mcrouter/(.*/)?facebook/
1431

1532
[build]
1633
builder = cmake
17-
subdir = .
34+
35+
[cmake.defines]
36+
BUILD_SHARED_LIBS=OFF
1837

1938
[cmake.defines.test=on]
2039
BUILD_TESTS=ON

0 commit comments

Comments
 (0)