Skip to content

[jules] native asset#770

Closed
sensuikan1973 wants to merge 1 commit into
mainfrom
feat/native-assets-integration
Closed

[jules] native asset#770
sensuikan1973 wants to merge 1 commit into
mainfrom
feat/native-assets-integration

Conversation

@sensuikan1973
Copy link
Copy Markdown
Owner

changes by google jules

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.
@sensuikan1973 sensuikan1973 changed the title native asset [julis] native asset May 21, 2025
@sensuikan1973 sensuikan1973 changed the title [julis] native asset [jules] native asset May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant