mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 15:01:29 +00:00
e70690e415
Lookup of native extension library on Windows works when the library is next to Platform.executable, this CL fixes lookup when it's next to the script. Fixes https://github.com/dart-lang/sdk/issues/45370 TEST=updated sample_extension test Change-Id: I91226be19ceec05e45cf90fd85428a62d95769c2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193741 Commit-Queue: Alexander Aprelev <aam@google.com> Reviewed-by: Siva Annamalai <asiva@google.com> |
||
---|---|---|
.. | ||
test | ||
.gitignore | ||
README.md | ||
sample_asynchronous_extension.dart | ||
sample_extension.cc | ||
sample_extension_dllmain_win.cc | ||
sample_synchronous_extension.dart | ||
test_sample_asynchronous_extension.dart | ||
test_sample_synchronous_extension.dart |
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