From 1e09958d621118e05b2e44416867dfce5cb300b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Sun, 6 Oct 2024 14:04:12 +0200 Subject: [PATCH] mesonproject: handle PRIVATE_DIR --- src/projects/mesonproject.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/projects/mesonproject.vala b/src/projects/mesonproject.vala index 908f6e86..935e6474 100644 --- a/src/projects/mesonproject.vala +++ b/src/projects/mesonproject.vala @@ -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);