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

feat(DEPENDENCIES): each file can specify its own dependencies #1

Open
wants to merge 3 commits into
base: pk/extract-once
Choose a base branch
from

Conversation

pkozelka
Copy link
Owner

@pkozelka pkozelka commented Sep 22, 2022

This introduces the DEPENDENCIES feature.
The goal is to resolve issue scijava#45

It allows to specify list of dependencies for every file, so that it is extracted into the same directory.
This allows complex sets libraries to be embedded properly and used from JNI, without affecting existing functionality.

Usage:

  • let's say you have file libzoo.so which depends on libelephant.so and libtiger.so.1
  • store libzoo.so as you do normally, for instance into linux_64 directory
  • create file libzoo.so.DEPENDENCIES next to it, it's the dependency descriptor
  • give it the following contents:
    libelephant.so
    libtiger.so.1
    
  • add these two listed files next to the descriptor (= same path)

Then use as you normally do.

The descriptors are evaluated recursively, so every dependency can have its own dependency descriptor.

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

Successfully merging this pull request may close these issues.

1 participant