mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2024-12-22 05:35:21 +00:00
build: Fix generating GIR
We didn't pass the generated sources to GIR making some of the types unavailable
This commit is contained in:
parent
9334cd4ee9
commit
545b29e2bf
@ -53,6 +53,8 @@ libmks_private_sources = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
libmks_enums = gnome.mkenums_simple('mks-enums',
|
libmks_enums = gnome.mkenums_simple('mks-enums',
|
||||||
|
body_prefix: '#include "config.h"',
|
||||||
|
decorator: '_MKS_EXTERN',
|
||||||
sources: libmks_enum_headers,
|
sources: libmks_enum_headers,
|
||||||
install_header: true,
|
install_header: true,
|
||||||
install_dir: libmks_headers_dir,
|
install_dir: libmks_headers_dir,
|
||||||
@ -151,9 +153,18 @@ pkg.generate(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if get_option('introspection').allowed()
|
if get_option('introspection').allowed()
|
||||||
|
libmks_gir_extra_args = [
|
||||||
|
'--c-include=libmks.h',
|
||||||
|
'--quiet',
|
||||||
|
'-DMKS_COMPILATION',
|
||||||
|
]
|
||||||
libmks_gir = gnome.generate_gir(libmks,
|
libmks_gir = gnome.generate_gir(libmks,
|
||||||
sources: libmks_sources + libmks_headers,
|
sources: libmks_sources +
|
||||||
|
libmks_headers +
|
||||||
|
libmks_generated_sources +
|
||||||
|
libmks_generated_headers,
|
||||||
nsversion: api_version,
|
nsversion: api_version,
|
||||||
|
link_with: libmks,
|
||||||
namespace: 'Mks',
|
namespace: 'Mks',
|
||||||
symbol_prefix: 'mks',
|
symbol_prefix: 'mks',
|
||||||
identifier_prefix: 'Mks',
|
identifier_prefix: 'Mks',
|
||||||
@ -161,7 +172,8 @@ if get_option('introspection').allowed()
|
|||||||
include_directories: libmks_include_directories,
|
include_directories: libmks_include_directories,
|
||||||
includes: ['Gio-2.0', 'Gtk-4.0'],
|
includes: ['Gio-2.0', 'Gtk-4.0'],
|
||||||
install: true,
|
install: true,
|
||||||
header: 'libmks-1.h'
|
header: 'libmks-1.h',
|
||||||
|
extra_args: libmks_gir_extra_args,
|
||||||
)
|
)
|
||||||
|
|
||||||
if get_option('vapi')
|
if get_option('vapi')
|
||||||
|
Loading…
Reference in New Issue
Block a user