Skip to content

Commit e2518e5

Browse files
oleavrtintou
authored andcommitted
mesonproject: handle PRIVATE_DIR
1 parent a5d24a8 commit e2518e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/projects/mesonproject.vala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ class Vls.MesonProject : Project {
7979
} else if (special_arg_name == "CURRENT_SOURCE_DIR") {
8080
// use the defined-in directory
8181
substituted_args.add (Path.get_dirname (meson_target_info.defined_in));
82+
} else if (special_arg_name == "PRIVATE_DIR") {
83+
string substitute = meson_target_info.filename[0] + ".p";
84+
substituted_args.add (substitute);
85+
debug ("for target %s, source #0, subtituted arg #%d (%s) with %s",
86+
meson_target_info.id, i, args[i], substitute);
8287
} else {
8388
warning ("for target %s, source #0, could not substitute special arg `%s'",
8489
meson_target_info.id, special_arg_name);

0 commit comments

Comments
 (0)