-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[native_toolchain_c] Export tools in package #856
Comments
Yes we'd totally want to do that. This is kind of blocked on us designing a nice API. Currently these are implementation details. Some decisions to tackle before making a public API:
Yes, the idea is that the tool discovery logic can discover multiple tools on a system. It should not simply return the first one found.
Can you tell me a bit more about your setup? Are you using Flutter? If so, the If |
Thanks for pointing this out, I didn't see that. Yes, I was planning to eventually use this in a flutter app. The use case is to use libjpeg-turbo for compression of images, and I was trying to follow the library's build instructions at https://github.com/libjpeg-turbo/libjpeg-turbo/blob/main/BUILDING.md. Feel free to close this issue if it is alredy covered in other issues |
Let me know if you succeed in wrapping the existing build from the
Well, we didn't have a tracking issue yet for making the tools API public, so we can leave this one open. |
@dcharkes I was in the end able to wrap the existing build in build.dart, some of the problems I ran into:
|
This feels like another instance of #857, because in some sense the cmake is in a tool group with clang because it's the same NDK directory. I don't have a good idea of how to express all those kinds of relations yet though.
I don't see any issue exporting that. 👍 |
For using the c compiler toolchain discovery in the Dart SDK, for example for dart-lang/sdk#54254, we also need to export the |
I was playing around with native assets (at https://github.com/miDeb/turbo_jpeg_ffi/tree/v3_all-platforms for reference), and I found I needed the location of the Android NDK and of vcvars64 on Windows. These can be imported
but they are not exported in
native_toolchain_c.dart
so you can'timport 'package:native_toolchain_c/native_toolchain_c.dart';
and the analyzer is unable to suggest the necessary import.I think it would be nice if the exports in native_toolchain_c.dart could be expanded to also include those platform-specific tools. As a sidenote, I don't really understand why
resolve()
returns a List, I would expect only a single result? Or is it possible that a tool is installed multiple times on a machine?The text was updated successfully, but these errors were encountered: