From ba744068f2075dad4d5d3562c79034f23a6bb90a Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 15 Aug 2019 09:41:30 -0400 Subject: Make meson.override_find_program working on more complex use cases Add some missing `meson.override_find_program` And make sure that the `.gir` we build are found when used uninstalled as a concequence of `meson.override_find_program`. --- girepository/girparser.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'girepository') diff --git a/girepository/girparser.c b/girepository/girparser.c index 53450baf..fb47e75c 100644 --- a/girepository/girparser.c +++ b/girepository/girparser.c @@ -309,6 +309,10 @@ locate_gir (GIrParser *parser, if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) return path; g_free (path); + path = g_build_filename (UNINSTALLED_GIR_DIR, girname, NULL); + if (g_file_test (path, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) + return path; + g_free (path); return NULL; } -- cgit v1.2.1