libedax4dart 2.5.0 libedax4dart: ^2.5.0 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.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 !
Real World example is https://github.com/sensuikan1973/pedax.
Document #
- libedax4dart
- libedax: This may be old. In case of that, See source.
Reference #
- python version: libedax4py
- java version: libedax4j
Development #
commands #
run example
cd example && dart pub get && cd ..
dart example/example.dart
format
dart format --fix -l 120 .
test
dart run test .
analyze
dart analyze .
document
dartdoc && open doc/api/index.html
change libedax bin
# After you edit .libedax-version, run this.
libedax_build_command="make libbuild ARCH=x64-modern COMP=gcc OS=osx" 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 -l 120 .
reference #
- dart:ffi
- dart-lang/samples/ffi : simple sample
- dart-lang/sdk/samples/ffi : complicated sample
- issues
- Effective Dart: Documentation