mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-31 21:34:12 +02:00
girepository: Update gi-compile-repository and use it to compile GIRs
Adapt gi-compile-repository sources to compile against the updated libgirepository that is included with GLib. This also renames "g-ir-compiler" to "gi-compile-repository" to avoid overwriting the existing binary and to simplify the binary name going forward.
This commit is contained in:
committed by
Philip Withnall
parent
b862fe077a
commit
5d997cad03
29
girepository/compiler/meson.build
Normal file
29
girepository/compiler/meson.build
Normal file
@@ -0,0 +1,29 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
# SPDX-FileCopyrightText: 2024 GNOME Foundation
|
||||
|
||||
custom_c_args = [
|
||||
'-DG_LOG_DOMAIN="GLib-GirCompiler"',
|
||||
]
|
||||
|
||||
if cc.get_id() != 'msvc'
|
||||
custom_c_args = cc.get_supported_arguments([
|
||||
'-Wno-old-style-definition',
|
||||
'-Wno-cast-align',
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-duplicated-branches',
|
||||
])
|
||||
endif
|
||||
|
||||
gicompilerepository = executable('gi-compile-repository', 'compiler.c',
|
||||
dependencies: [
|
||||
libgirepository_dep,
|
||||
libgirepository_internals_dep,
|
||||
libgio_dep,
|
||||
],
|
||||
install: true,
|
||||
c_args: custom_c_args,
|
||||
)
|
||||
|
||||
# Replace the default g-ir-compiler target with the version we
|
||||
# just built.
|
||||
meson.override_find_program('g-ir-compiler', gicompilerepository)
|
Reference in New Issue
Block a user