Skip to content

Conversation

@afrind
Copy link
Contributor

@afrind afrind commented Jan 22, 2026

Summary:
Similar to the folly, fizz, and wangle granular CMake implementations, this adds
granular library targets for mvfst that work with both static and shared library
builds.

Key changes:

  • Added MvfstFunctions.cmake with mvfst_add_library() function
  • Creates OBJECT libraries for compile-once, use-many pattern
  • Creates STATIC libraries (static builds) or INTERFACE libraries linking
    to monolithic mvfst (shared builds)
  • Added generate_cmake.py to auto-generate CMakeLists.txt from BUCK files
  • Added lint_cmake_sync.py for arc lint integration
  • Added MvfstCompatAliases.cmake for backwards compatibility with old target
    names used by downstream projects (proxygen, moxygen, thrift)

Backwards compatibility aliases properly include all transitive dependencies
that the old targets had (e.g., mvfst_server now includes qlogger and fizz
server handshake).

Differential Revision: D91009061

Summary:
Similar to the folly, fizz, and wangle granular CMake implementations, this adds
granular library targets for mvfst that work with both static and shared library
builds.

Key changes:
- Added MvfstFunctions.cmake with mvfst_add_library() function
- Creates OBJECT libraries for compile-once, use-many pattern
- Creates STATIC libraries (static builds) or INTERFACE libraries linking
  to monolithic mvfst (shared builds)
- Added generate_cmake.py to auto-generate CMakeLists.txt from BUCK files
- Added lint_cmake_sync.py for arc lint integration
- Added MvfstCompatAliases.cmake for backwards compatibility with old target
  names used by downstream projects (proxygen, moxygen, thrift)

Backwards compatibility aliases properly include all transitive dependencies
that the old targets had (e.g., mvfst_server now includes qlogger and fizz
server handshake).

Differential Revision: D91009061
@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Jan 22, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 22, 2026

@afrind has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91009061.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant