Skip to main content

native_toolchain_xmake 0.2.0 copy "native_toolchain_xmake: ^0.2.0" to clipboard
native_toolchain_xmake: ^0.2.0 copied to clipboard

A library to invoke and build Xmake projects for Dart Native Assets.

0.2.0 #

  • feature: add the dart_native 1.0.0 xmake rule package for native library preparation, package installation, final export selection, and linker GC.
  • change: use xmake for tree shaking during linking, remove native_toolchain_c, and require symbolsToKeep when linking.
  • update: restructure the skill and rename it to dart-xmake.

  • 功能:新增 dart_native 1.0.0 xmake 规则包,负责原生库准备、包安装,以及最终导出选择和 linker GC。
  • 变更:由 xmake 来完成 link 时候的裁剪,移除 native_toolchain_c, link 时必须传入 symbolsToKeep
  • 更新:skills 重构,命名为 dart-xmake

0.1.0 #

  • update: bump native_toolchain_c to ^0.19.6 to fix incorrect decoding of UTF-8 output from vswhere on systems with a Chinese locale.
  • breaking: rename LinkModeOption to LinkHookMode and linkModeOption to linkHook. The values .static, .dynamic, and .byPreference are now .always, .never, and .auto, respectively.
  • feature: bundle an agent skill for packaging dynamic libraries, tree shaking, and troubleshooting common issues.

  • 更新: native_toolchain_c: ^0.19.6, 修复了中文环境下 vswhere 输出 utf-8 被解析错误的问题
  • 变更:LinkModeOption 改名为 LinkHookMode,linkModeOption 改为 linkHook。.static、.dynamic、.byPreference 分别改为 .always、.never、.auto。
  • 功能:Agent Skill,覆盖动态库打包、tree-shaking 和常见排错。

0.0.10 #

  • fix: look up static archives in link mode.

  • 修复: link 模式下,需要寻找的是静态库而不是动态库

0.0.9 #

  • fix: detect cross-compilation when the host and target have the same operating system but different architectures.

  • 修复:即使是同系统,但是架构不同也是交叉编译

0.0.8 #

  • feature: add the linkOption field so users can choose whether to enable tree shaking.

  • 功能:添加 linkOption 字段,让用户决定是否启用 tree-shake

0.0.7 #

  • update: bump code_assets to ^2.0.0.

  • 更新: code_assets: ^2.0.0

0.0.6 #

  • fix: export library.dart by default.

  • 修复:默认导出 library.dart

0.0.5 #

  • change: align the API with native_toolchain_c so users can call await xmakeLibrary.build(input: input, output: output) directly.

  • 变更:API 与 native_toolchain_c,采用 await xmakeLibrary.build(input, output) 的形式,简化用户使用

0.0.4 #

  • fix: find versioned .dylib files on macOS.

  • feature: support cross-compiling from macOS.

  • breaking: remove automatic xmake installation. Install xmake from the command line:

    dart run native_toolchain_xmake:install
    

  • 修复:mac 有 lib.xxx.dylib 形式

  • 功能:在 mac 上交叉编译

  • 变更:移除自动安装,通过命令行安装

    dart run native_toolchain_xmake:install
    

0.0.3 #

  • feature: support cross-compilation using Zig.
  • fix: find versioned .so files on Linux.

  • 功能:支持交叉编译,采用 zig 来交叉编译
  • 修复:linux 上的动态库可能为 lib.so.xxx 形式,因此需要智能地匹配相应文件

0.0.2 #

  • fix: check that xmake is available after installation and prompt users to refresh their environment if the PATH update has yet to take effect.
  • fix: pass -P . to specify the project directory for nested xmake projects.

  • 修复:验证 xmake 的安装。提示用户可能已经安装但是环境变量没有生效
  • 修复:xmake 存在工程嵌套的的问题,采用 xmake -P . 来设置 xmake 的项目

0.0.1 #

  • feature: install xmake automatically.
  • feature: support building and integrating dynamic libraries.

  • 功能:自动安装 xmake
  • 功能:支持集成动态库
0
likes
150
points
809
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A library to invoke and build Xmake projects for Dart Native Assets.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

code_assets, hooks, logging, path

More

Packages that depend on native_toolchain_xmake