[jules] native asset#770
Closed
sensuikan1973 wants to merge 1 commit into
Closed
Conversation
feat: Integrate native_assets_cli for libedax build
Replaces the custom shell script `scripts/build_libedax.sh` with the
`native_assets_cli` framework for building and bundling the native
`edax-reversi` library.
Key changes:
- Added `native_assets_cli` to `dev_dependencies`.
- Created `hook/build.dart` with logic to:
- Clone `edax-reversi` from GitHub based on `.libedax-version`.
- Download and extract `eval.7z` book data.
- Compile `edax-reversi` using platform-specific make commands.
- Declare the built shared library as a `NativeCodeAsset`.
- Declare the `data` directory as a `DataAsset`.
- Updated `ffigen.yaml` to locate headers within the native assets
build output directory.
- Modified `.github/workflows/dart_ci.yaml`:
- Removed the call to the old build script.
- Enabled the `--enable-experiment=native-assets` flag for example
execution.
This change aims to modernize the build process, making it more
integrated with the Dart SDK's capabilities for handling native code.
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.
changes by google jules