Repository navigation
Add core-only OpenMS build options - #9752
timosachsenberg merged 3 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughCMake now provides TOPP build and example-installation options, validates dependent features and tests, conditionally wires TOPP targets, exports the TOPP setting, assigns license components, installs the OpenMS license, and registers an OpenTIMS header. ChangesBuild and packaging configuration
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Also required to allow building the pyopenms target without TOPP. BUILD_TOPP_TOOLS=OFF moves the exclusion from build time (pick your targets) to configure time (don't configure the src/topp subtree at all).
nothing in the existing pyOpenMS/wheel builds needs to change - they already avoid TOPP by target selection - but they could be simplified to use the new option. |
The wheel builds already avoid compiling TOPP by building only the named library targets (`ninja OpenMS OpenSwathAlgo`). With the new core-only build options, make that intent explicit at configure time by passing `-DBUILD_TOPP_TOOLS=OFF -DINSTALL_OPENMS_EXAMPLES=OFF` on all four platform jobs (Linux x64/arm64, macOS arm64, Windows x64). This skips configuring the src/topp subtree (slightly faster configure) and keeps the build robust if the target list ever changes to a full `ninja`/`all` build. No functional change to the produced wheels. Depends on the BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES options. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
[CI] pyOpenMS wheels: exclude TOPP tools at configure time
|
I die a little inside when our build system gets bigger. We almost have 60k lines of CMake code: find ~/src/kohlbacher/openms/develop \
-regextype posix-extended \
'(' -type d -regex '.*/(\..*|build|contrib|vcpkg.*)' -prune ')' -o \
'(' -type f \( -iname 'cmakelists.txt' -or -iname '*.cmake' \) -exec cat '{}' ';' ')' |
wc -lBut, this looks good. |
* docs(changelog): add entries for #9492, #9752 Backfills two CHANGELOG entries for recently merged PRs that landed without their own entry: - #9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options enabling a core-only OpenMS SDK build - #9492: null-dereference guards in TargetedExperiment::get*ByRef and ReactionMonitoringTransition::getPrediction All other PRs merged since the last CHANGELOG update (#9613, #9750, #9738) already carried their own entries; #9572 is test-only and follows the existing convention of not adding a changelog entry for test-only PRs in this series. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt * Update CHANGELOG Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…x) (#9779) PR #9774 fixed a missing-header build failure for standalone consumers of the core-only OpenMS SDK (introduced in #9752) but its merge did not include a CHANGELOG entry. Claude-Session: https://claude.ai/code/session_01QzTaD7LcUkA4fim9NkpiKp Co-authored-by: Claude <[email protected]>
…#9752) (#9797) The core-only OpenMS SDK feature (#9752) added these two CMake options but never added them to the CMake parameters reference doc. Claude-Session: https://claude.ai/code/session_01CfdqxfUU2UCphkFSLqbiwJ Co-authored-by: Claude <[email protected]>
* Add core-only OpenMS build options * [CI] pyOpenMS wheels: exclude TOPP tools at configure time The wheel builds already avoid compiling TOPP by building only the named library targets (`ninja OpenMS OpenSwathAlgo`). With the new core-only build options, make that intent explicit at configure time by passing `-DBUILD_TOPP_TOOLS=OFF -DINSTALL_OPENMS_EXAMPLES=OFF` on all four platform jobs (Linux x64/arm64, macOS arm64, Windows x64). This skips configuring the src/topp subtree (slightly faster configure) and keeps the build robust if the target list ever changes to a full `ninja`/`all` build. No functional change to the produced wheels. Depends on the BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES options. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
…S#9753) * docs(changelog): add entries for OpenMS#9492, OpenMS#9752 Backfills two CHANGELOG entries for recently merged PRs that landed without their own entry: - OpenMS#9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options enabling a core-only OpenMS SDK build - OpenMS#9492: null-dereference guards in TargetedExperiment::get*ByRef and ReactionMonitoringTransition::getPrediction All other PRs merged since the last CHANGELOG update (OpenMS#9613, OpenMS#9750, OpenMS#9738) already carried their own entries; OpenMS#9572 is test-only and follows the existing convention of not adding a changelog entry for test-only PRs in this series. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt * Update CHANGELOG Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Add core-only OpenMS build options * [CI] pyOpenMS wheels: exclude TOPP tools at configure time The wheel builds already avoid compiling TOPP by building only the named library targets (`ninja OpenMS OpenSwathAlgo`). With the new core-only build options, make that intent explicit at configure time by passing `-DBUILD_TOPP_TOOLS=OFF -DINSTALL_OPENMS_EXAMPLES=OFF` on all four platform jobs (Linux x64/arm64, macOS arm64, Windows x64). This skips configuring the src/topp subtree (slightly faster configure) and keeps the build robust if the target list ever changes to a full `ninja`/`all` build. No functional change to the produced wheels. Depends on the BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES options. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
…S#9753) * docs(changelog): add entries for OpenMS#9492, OpenMS#9752 Backfills two CHANGELOG entries for recently merged PRs that landed without their own entry: - OpenMS#9752: new BUILD_TOPP_TOOLS / INSTALL_OPENMS_EXAMPLES CMake options enabling a core-only OpenMS SDK build - OpenMS#9492: null-dereference guards in TargetedExperiment::get*ByRef and ReactionMonitoringTransition::getPrediction All other PRs merged since the last CHANGELOG update (OpenMS#9613, OpenMS#9750, follows the existing convention of not adding a changelog entry for test-only PRs in this series. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QcFv1tmBLzroCNJFjoqhZt * Update CHANGELOG Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary
BUILD_TOPP_TOOLSto omit the TOPP command-line application graphINSTALL_OPENMS_EXAMPLESto omit example data from SDK installsshareinstall componentMotivation
Standalone consumers should be able to build and install the OpenMS core SDK without configuring or packaging TOPP tools and GUI applications. Previously these consumers needed a sequence of component installs plus source/build-tree repairs for files missing from the installed SDK.
The defaults remain enabled, so existing full OpenMS builds retain their current behavior.
Impact
Using
-DBUILD_TOPP_TOOLS=OFF -DWITH_GUI=OFFnow creates a core-only target and install graph. TOPP and pipeline tests follow that setting by default, while explicitly incompatible CWL, KNIME, or test configurations fail during configuration with a clear error.Validation
upstream/developwith TOPP, GUI, examples, documentation, and tests disabledsrc/toppsubtree or TOPP executablesbindirectory or examples directorygit diff --checkSummary by CodeRabbit
New Features
Bug Fixes