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

mesonproject: handle PRIVATE_DIR #315

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/projects/mesonproject.vala
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ class Vls.MesonProject : Project {
} else if (special_arg_name == "CURRENT_SOURCE_DIR") {
// use the defined-in directory
substituted_args.add (Path.get_dirname (meson_target_info.defined_in));
} else if (special_arg_name == "PRIVATE_DIR") {
string substitute = meson_target_info.filename[0] + ".p";
substituted_args.add (substitute);
debug ("for target %s, source #0, subtituted arg #%d (%s) with %s",
meson_target_info.id, i, args[i], substitute);
} else {
warning ("for target %s, source #0, could not substitute special arg `%s'",
meson_target_info.id, special_arg_name);
Expand Down