native_extension_with_build_tools 0.0.17
native_extension_with_build_tools: ^0.0.17 copied to clipboard
Example of the `build script` for the native extension (C++) for the Dart VM with the usage of `build_tools` and `ccompilers`.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add native_extension_with_build_toolsThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
native_extension_with_build_tools: ^0.0.17Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:native_extension_with_build_tools/sample_extension.dart';