Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Environment Variable Support For Def Files #3631

Closed
napperley opened this issue Dec 2, 2019 · 4 comments
Closed

Environment Variable Support For Def Files #3631

napperley opened this issue Dec 2, 2019 · 4 comments

Comments

@napperley
Copy link
Contributor

With the def file format it doesn't support the use of environment variables. If environment variables were supported then a def file would look like this:

linkerOpts = -L${HOME}/ncurses-6.1/lib -lncurses
compilerOpts = -I${HOME}/ncurses-6.1/include
headers = curses.h
package = ncurses

The main use case for supporting environment variables in a def file is to allow custom built C libraries to be used without having to hard code paths in a def file, which is a big issue when using a VCS (eg Git).

@msink
Copy link
Contributor

msink commented Dec 2, 2019

Probably duplicate of #3484 and #2314

@artdfel
Copy link
Contributor

artdfel commented Dec 2, 2019

Why do you prefer to use .def configuration instead of setting these options by Gradle?

@napperley
Copy link
Contributor Author

napperley commented Dec 10, 2019

Environment variables would be set by Gradle. In a def file the environment variables would be read only.

@SvyatoslavScherbina
Copy link
Contributor

The main use case for supporting environment variables in a def file is to allow custom built C libraries to be used without having to hard code paths in a def file, which is a big issue when using a VCS (eg Git).

As mentioned above, you can easily pass anything from Gradle. See the documentation for more details.
I'm closing this issue, because we are migrating issue tracking to YouTrack. Feel free to submit it again to https://kotl.in/issue if it still affects you.

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

No branches or pull requests

4 participants