A test case is added to demonstrate the problem by having a library with a manual gir file.pull/12155/head
parent
e3a71a7b58
commit
3c36d49d6a
9 changed files with 56 additions and 6 deletions
@ -0,0 +1,6 @@ |
||||
<?xml version="1.0"?> |
||||
<repository xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" version="1.2"> |
||||
<namespace name="MesonDep4" version="1.0" c:identifier-prefixes="MesonDep4" c:symbol-prefixes="MesonDep4"> |
||||
<record name="MesonDep4Record" c:type="MesonDep4Record"/> |
||||
</namespace> |
||||
</repository> |
@ -0,0 +1,10 @@ |
||||
#ifndef MESON_DEP4_H |
||||
#define MESON_DEP4_H |
||||
|
||||
typedef struct { |
||||
int a; |
||||
int b; |
||||
int c; |
||||
} MesonDep4Record; |
||||
|
||||
#endif /* MESON_DEP4_H */ |
@ -0,0 +1,16 @@ |
||||
dep4_inc = include_directories('.') |
||||
dep4_dep = declare_dependency( |
||||
dependencies : gobj, |
||||
include_directories : [dep4_inc], |
||||
) |
||||
|
||||
# Manually run g-ir-compiler |
||||
g_ir_compiler = find_program('g-ir-compiler') |
||||
custom_target( |
||||
'dep4_typelib', |
||||
build_by_default: true, |
||||
command: [g_ir_compiler, '--output', '@OUTPUT@', '@INPUT@'], |
||||
input: 'MesonDep4-1.0.gir', |
||||
output: 'MesonDep4-1.0.typelib', |
||||
install: false, |
||||
) |
Loading…
Reference in new issue