Skip to content
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

Allow User specified shared library locations #5

Closed
sethloco opened this issue Oct 9, 2020 · 1 comment
Closed

Allow User specified shared library locations #5

sethloco opened this issue Oct 9, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@sethloco
Copy link
Collaborator

sethloco commented Oct 9, 2020

We will be distributing the shared libs so shouldn't be a problem.
But would like to have something flexible enough to handle unsupported platforms and custom locations.

This means exposing custom hooks that the user can control to force where and how a library is loaded

@sethloco sethloco added the scheduled item Accepted required work task label Oct 9, 2020
@sethloco sethloco added this to the Initial Pub.dev release milestone Oct 9, 2020
@sethloco sethloco self-assigned this Oct 9, 2020
@sethloco sethloco added enhancement New feature or request and removed scheduled item Accepted required work task labels Oct 22, 2020
@sethloco sethloco removed this from the Initial Pub.dev release milestone Oct 22, 2020
@sethloco
Copy link
Collaborator Author

sethloco commented Nov 2, 2020

User can now

  1. Put the native library in the same directory as an exe, aot or anywhere in a place where the library lookup of the OS can find it
  2. There is a static variable for each codec (userDefinedLibraryPath) that the user can set before the first FFI call
  3. Environment variable (LZ4_LIBRARY_PATH, ZSTD_LIBRARY_PATH...)

See open_library.dart module for more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant