aboutsummaryrefslogtreecommitdiff
path: root/test cases/frameworks/7 gnome/gir/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/frameworks/7 gnome/gir/meson.build')
-rw-r--r--test cases/frameworks/7 gnome/gir/meson.build15
1 files changed, 14 insertions, 1 deletions
diff --git a/test cases/frameworks/7 gnome/gir/meson.build b/test cases/frameworks/7 gnome/gir/meson.build
index a513062..ce98aa7 100644
--- a/test cases/frameworks/7 gnome/gir/meson.build
+++ b/test cases/frameworks/7 gnome/gir/meson.build
@@ -7,9 +7,11 @@ girlib = shared_library(
install : true
)
+privsources = ['private-function.c', 'private-function.h']
+
girexe = executable(
'girprog',
- sources : 'prog.c',
+ sources : ['prog.c'] + privsources,
dependencies : [glib, gobj, gir],
link_with : girlib
)
@@ -28,6 +30,17 @@ gnome.generate_gir(
install : true
)
+gnome.generate_gir(
+ girexe,
+ sources : privsources,
+ nsversion : '1.0',
+ namespace : 'Private',
+ symbol_prefix : 'private_',
+ identifier_preifx : 'Private',
+ includes : 'GObject-2.0',
+ install : true
+)
+
test('gobject introspection/c', girexe)
test('gobject introspection/py', find_program('prog.py'),
env : ['GI_TYPELIB_PATH=' + girlib.outdir(),