Skip to content
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