-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
How to give access to the crate specific data files like CSS, Javascript, HTML, XML, SQL #375
Comments
Right. I now remember we talked about this at FOSDEM. A couple of first thoughts:
|
The issue is to make available these resources to the final program. Always running the program through For that purpose, I'm more in favor of allowing a crate to populate the |
So you'd like some way of copying folders from the crate into |
I tried to look at how Cargo solves this problem, what I can find so far is that it doesn't: |
@stcarrez, autside of Seems to me that the application will always use a path that is either:
|
I don't think we must populate outside of Alire. For most of my projects, I install the additional files in If a component can install in some Alire share directory, that would be great I think. |
I am only considering the crate build tree inside the Alire directory.
How do you get the path to this directory in your code? Relative to the path of the executable? |
First, it's relative to the binary executable. |
Then I think it makes sens to have an |
This has been addressed and in any case is superseded by #948 |
Sometimes a crate can provide some data files which are also part of the component and
must be accessible at some point by the final application. Such files are not used during the
Ada compilation process, they are runtime files. Typical examples:
I struggled to find a way in a GNAT project to give access to these data files but
with
gprbuild
we can't even generate/configure a Ada file (like we could withgnatprep
).Using the GPR Install targets could work but we there is no way to run it from Alire
and it is probably necessary to define a target place for such installation.
We can't use the
gprinstall
default installation directory because we need a project-local directory (not a system directory like/usr/share
)The text was updated successfully, but these errors were encountered: