libedax4dart 6.2.1 libedax4dart: ^6.2.1 copied to clipboard
Dart wrapper for libedax. With using libedax4dart, you can execute functions equivalent to edax.
libedax4dart #
Dart wrapper for libedax.
With using libedax4dart, you can execute functions equivalent to edax commands.
Usage #
- Add
libedax4dart
underdependencies
in yourpubspec.yaml
. - Add your libedax assets in the path which you like.
If you don't have yours, you can also download from here.
- (Required) dynamic library
- macos:
libedax.universal.dylib
- windows:
libedax-x64.dll
- linux:
libedax.so
- macos:
- (Optional) data for edax
book.dat
eval.dat
- With using
LibEdax
, you can run edax commands !
Document #
Real World Example #
- pedax : Flutter Desktop app
- edax_runner : Dart native app
Reference #
- python version: libedax4py
- java version: libedax4j
Development #
commands #
run example
cd example && dart pub get && cd ..
dart example/example.dart
format
# fix with line length 80 for pana, although I don't like.
# See: https://github.com/dart-lang/dart_style/issues/918
dart format --fix .
test
dart run test .
analyze
dart analyze .
dart fix --apply # auto fix
pana
dart run pana
document
dart doc . --validate-links && open doc/api/index.html
change libedax bin
# After you edit .libedax-version, run this.
# See: https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary
libedax_build_command="make universal_osx_libbuild" dst="." ./scripts/build_libedax.sh
generate bindings
# Before this, you must run build_libedax.sh.
dart run ffigen --config ffigen.yaml --verbose severe && dart format --fix .
publish
https://github.com/dart-lang/pub-dev/issues/5388
dart pub publish
reference #
- dart:ffi
- dart-lang/samples/ffi : simple sample
- dart-lang/sdk/samples/ffi : complicated sample
- issues
- Effective Dart: Documentation