feat: Add CMakeBuilder.runStandalone for standalone CMake builds#36
Merged
Conversation
Owner
|
@mosuem Thanks for the PR. Will review and merge it. |
rainyl
approved these changes
Jul 17, 2026
Owner
|
LGTM, I have merged it and will publish a new version 0.2.7, thanks for your contribution 😄 👍 |
Contributor
Author
|
That was super fast, thanks so much! Also thanks for the great contributions to the ecosystem in general, I love your opencv for Dart work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
In the spirit of dart-lang/native#2004: Adds support for running
CMakeBuilderstandalone without requiringBuildInputorBuildOutputBuilder(e.g. for standalone build scripts or CI artifact generation scripts outside ofhook/build.dart).The first commit is running
dart format, to separate that from the real changes in the other commits.To be used for example in google/webcrypto.dart#325
Changes
CMakeBuilder.runStandalone: AddedrunStandaloneaccepting target configuration (outputDirectory,targetOS,targetArchitecture,android,iOS,macOS,userDefines, etc.) explicitly.RunCMakeBuilderDecoupling: RefactoredRunCMakeBuilderto accept individual target parameters instead of requiring aCodeConfigor non-nullHookInput.getUserEnvConfigand_parsePackageConfigto work in standalone mode using pattern matching and fallback toIsolate.packageConfig/.dart_tool/package_config.json.cmake_builder_standalone_test.dartverifying standalone CMake build execution.