X Tutup
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Flutter Wrapper Bindgen

This bindgen setup generates Dart wrapper files from C++ API headers.

  • Input: cxx_impl/src/**/*.h (excluding capi and platform)
  • Output: bindgen/out/**/*.dart
  • FFI policy: wrappers call existing CNativeApiBindings methods from ffigen output

Run

cd nativeapi-flutter
PYTHONPATH=packages/cnativeapi/cxx_impl/tools python3 -m bindgen \
  --config bindgen/config.yaml \
  --dump-ir bindgen/out/ir.json \
  --out bindgen/out

Notes

  • This does not regenerate lib/src/bindings_generated.dart.
  • Add symbol exceptions in mapping.options.symbol_overrides.
X Tutup