dart-sdk/samples/sample_extension
Sam Rawlins 4f0c8cba56 Add README for samples/sample_extension
Bug: https://github.com/dart-lang/sdk/issues/35839
Change-Id: I35fe0d5b6be7ead081e164ddce2f8dc8e273158a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/122160
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Samir Jindel <sjindel@google.com>
2019-10-18 15:33:06 +00:00
..
test Revert "[gardening] mark sample_extension_test as error" 2018-12-10 19:37:33 +00:00
.gitignore Initial github commit for getting stuff working 2015-05-16 15:41:58 +02:00
README.md Add README for samples/sample_extension 2019-10-18 15:33:06 +00:00
sample_asynchronous_extension.dart [vm/extensions] Fix native extensions in hot-reload and running from snapshot. 2019-02-14 17:47:28 +00:00
sample_extension.cc Check return value from Dart_PostCObject() in sample extension 2019-04-12 19:34:50 +00:00
sample_extension_dllmain_win.cc Initial github commit for getting stuff working 2015-05-16 15:41:58 +02:00
sample_synchronous_extension.dart Revert "[gardening] mark sample_extension_test as error" 2018-12-10 19:37:33 +00:00
test_sample_asynchronous_extension.dart Revert "[gardening] mark sample_extension_test as error" 2018-12-10 19:37:33 +00:00
test_sample_synchronous_extension.dart Revert "[gardening] mark sample_extension_test as error" 2018-12-10 19:37:33 +00:00

This directory contains samples of native extensions.

To run the samples, first build both the Dart SDK and the runtime. For example:

$ ./tools/build.py create_sdk runtime

Then execute the sample programs. For example:

$ xcodebuild/ReleaseX64/dart samples/sample_extension/test/sample_extension_test.dart