Skip to content

Migrate folly generate_cmake.py to shared library + add select() support#2595

Closed
afrind wants to merge 1 commit into
facebook:mainfrom
afrind:export-D95579501
Closed

Migrate folly generate_cmake.py to shared library + add select() support#2595
afrind wants to merge 1 commit into
facebook:mainfrom
afrind:export-D95579501

Conversation

@afrind

@afrind afrind commented Mar 7, 2026

Copy link
Copy Markdown
Contributor

Summary:

  • Import shared parsing functions from opensource.buck_to_cmake.buck_parser
    instead of reimplementing extract_list, extract_external_deps, etc.
  • Add select() support for deps/exported_deps: non-DEFAULT branches are
    now emitted as conditional CMake variables (if/endif blocks)
  • Remove EXTRA_TARGET_DEPS for folly/result/epitaph since the dep is now
    correctly picked up from the select() DEFAULT branch
  • Regenerate folly/detail/CMakeLists.txt and folly/portability/provide/CMakeLists.txt
    with newly discovered conditional deps

Differential Revision: D95579501

Summary:
- Import shared parsing functions from opensource.buck_to_cmake.buck_parser
  instead of reimplementing extract_list, extract_external_deps, etc.
- Add select() support for deps/exported_deps: non-DEFAULT branches are
  now emitted as conditional CMake variables (if/endif blocks)
- Remove EXTRA_TARGET_DEPS for folly/result/epitaph since the dep is now
  correctly picked up from the select() DEFAULT branch
- Regenerate folly/detail/CMakeLists.txt and folly/portability/provide/CMakeLists.txt
  with newly discovered conditional deps

Differential Revision: D95579501
@meta-cla meta-cla Bot added the CLA Signed label Mar 7, 2026
@meta-codesync

meta-codesync Bot commented Mar 7, 2026

Copy link
Copy Markdown

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

@meta-codesync

meta-codesync Bot commented Mar 8, 2026

Copy link
Copy Markdown

This pull request has been merged in da3cbd9.

meta-codesync Bot pushed a commit to facebook/hhvm that referenced this pull request Mar 8, 2026
Summary:
X-link: facebook/folly#2595

- Import shared parsing functions from opensource.buck_to_cmake.buck_parser
  instead of reimplementing extract_list, extract_external_deps, etc.
- Add select() support for deps/exported_deps: non-DEFAULT branches are
  now emitted as conditional CMake variables (if/endif blocks)
- Remove EXTRA_TARGET_DEPS for folly/result/epitaph since the dep is now
  correctly picked up from the select() DEFAULT branch
- Regenerate folly/detail/CMakeLists.txt and folly/portability/provide/CMakeLists.txt
  with newly discovered conditional deps

Reviewed By: yfeldblum

Differential Revision: D95579501

fbshipit-source-id: f14ba05082623774a7f4191454f8e1362a26b961
bolunfeng pushed a commit to bolunfeng/folly that referenced this pull request May 22, 2026
…ort (facebook#2595)

Summary:
Pull Request resolved: facebook#2595

- Import shared parsing functions from opensource.buck_to_cmake.buck_parser
  instead of reimplementing extract_list, extract_external_deps, etc.
- Add select() support for deps/exported_deps: non-DEFAULT branches are
  now emitted as conditional CMake variables (if/endif blocks)
- Remove EXTRA_TARGET_DEPS for folly/result/epitaph since the dep is now
  correctly picked up from the select() DEFAULT branch
- Regenerate folly/detail/CMakeLists.txt and folly/portability/provide/CMakeLists.txt
  with newly discovered conditional deps

Reviewed By: yfeldblum

Differential Revision: D95579501

fbshipit-source-id: f14ba05082623774a7f4191454f8e1362a26b961
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment