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

load libraries *declare*d in -meta file #2

Open
2 of 4 tasks
umlaeute opened this issue Dec 12, 2016 · 0 comments
Open
2 of 4 tasks

load libraries *declare*d in -meta file #2

umlaeute opened this issue Dec 12, 2016 · 0 comments

Comments

@umlaeute
Copy link
Contributor

it would be great if the libdir mechanism could support multi-binary libraries better.

e.g. right now Gem duplicates quite some code from libdir (searching for a specially named file and adding the path to it), but still requires for the actual Gem.dll to be dlopen()ed.

it would be great if a libdir-loaded Gem would make sure that the Gem.dll is opened as well.

draft

i think this could work, if libdir could do some additional steps:

  • check for meta-file
  • add the path to meta-file to the canvas-local search path
  • parse the meta-file for declare lines
  • load any libs (and add paths) mentioned in declare.

in practice this is not trivial (my feeble attempts to implement this failed so far)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant