summaryrefslogtreecommitdiff
path: root/test cases/vala
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-06-16 08:46:52 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-10-08 10:42:41 -0700
commit2e63336bf3e58eb3364bd8f7eedddbbc40ee6f69 (patch)
tree36263b00ad974ffb9f4cd497afe5aa6e3625a3bb /test cases/vala
parent6c05dabc47389f471c435394c13981d92f288d9b (diff)
downloadmeson-2e63336bf3e58eb3364bd8f7eedddbbc40ee6f69.tar.gz
vala: Add method to get generated GIR from a build_target
Fixes: #2296 Fixes: #4481 Fixes: #5968
Diffstat (limited to 'test cases/vala')
-rw-r--r--test cases/vala/9 gir/meson.build7
1 files changed, 5 insertions, 2 deletions
diff --git a/test cases/vala/9 gir/meson.build b/test cases/vala/9 gir/meson.build
index 332052760..c70938b8d 100644
--- a/test cases/vala/9 gir/meson.build
+++ b/test cases/vala/9 gir/meson.build
@@ -1,3 +1,6 @@
+# SPDX-License-Identifier: Apache-2.0
+# Copyright © 2025 Intel Corporation
+
project('foo', 'c', 'vala')
glib = dependency('glib-2.0')
@@ -12,6 +15,6 @@ foo = shared_library('foo', 'foo.vala',
custom_target('foo-typelib',
command: [g_ir_compiler, '--output', '@OUTPUT@', '@INPUT@'],
- input: meson.current_build_dir() + '/Foo-1.0.gir',
+ input: foo.vala_gir(),
output: 'Foo-1.0.typelib',
- depends: foo)
+ build_by_default : true)