-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Cannot pass object generators nor files to add_install_script #6175
Comments
+1 I just tripped over this myself. In my case, I have all of my build scripts in a scripts/ subdirectory, and meson.build in that directory sets variables for files() objects for each, for instance
Then in another subdirectory's meson.build I had
and this blows up with
and this in the logfile:
This is particularly annoying because there's no documented way to turn a File object back into a string from the meson.build language. (In fact, File objects don't seem to be documented at all!) The Python-level File object (mesonlib.File) has an absolute_path method but it's not callable from the meson.build language. Anyway, it seems like add_install_script should accept the same kinds of positional arguments that run_command does. |
Another thing that doesn't work but really should:
->
|
+1 can't pass the result of a configure_file() to meson.add_install_script() and can't see a reason to not allow that i pass |
I have a patch for this in a branch, I'll clean it up and send it out. |
This adds support for Files, CustomTarget, Indexs of CustomTargets, ConfigureFiles, ExternalPrograms, and Executables. Fixes: mesonbuild#1234 Fixes: mesonbuild#3552 Fixes: mesonbuild#6175
This adds support for Files, CustomTarget, Indexs of CustomTargets, ConfigureFiles, ExternalPrograms, and Executables. Fixes: mesonbuild#1234 Fixes: mesonbuild#3552 Fixes: mesonbuild#6175
This adds support for Files, CustomTarget, Indexs of CustomTargets, ConfigureFiles, ExternalPrograms, and Executables. Fixes: mesonbuild#1234 Fixes: mesonbuild#3552 Fixes: mesonbuild#6175
This adds support for Files, CustomTarget, Indexs of CustomTargets, ConfigureFiles, ExternalPrograms, and Executables. Fixes: mesonbuild#1234 Fixes: mesonbuild#3552 Fixes: mesonbuild#6175
If I try to pass an object generated by a generator or if I try to pass a file to meson.add_install_script I get the following error:
ERROR: add_install_script args must be strings
The text was updated successfully, but these errors were encountered: