mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
girepository: Rename g-ir-generate and g-ir-inspect
Rename them to `gi-decompile-repository` and `gi-inspect-repository` to match the existing `gi-compile-repository`. The names have to differ from those used in girepository-1.0 to avoid collisions. ‘generate’ has been changed to ‘decompile’ because it does the inverse of what `gi-compile-repository` does: it converts a typelib to a GIR file. ‘generate’ never really made much sense for this anyway — it’s almost a synonym of ‘compile’. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3155
This commit is contained in:
parent
59d454a20d
commit
5c3c2cf6b3
25
girepository/decompiler/meson.build
Normal file
25
girepository/decompiler/meson.build
Normal file
@ -0,0 +1,25 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
# SPDX-FileCopyrightText: 2024 GNOME Foundation
|
||||
|
||||
custom_c_args = [
|
||||
'-DG_LOG_DOMAIN="GLib-GirDecompiler"',
|
||||
]
|
||||
|
||||
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
|
||||
|
||||
gidecompiletypelib = executable('gi-decompile-typelib', 'decompiler.c',
|
||||
dependencies: [
|
||||
libgirepository_dep,
|
||||
libgirepository_internals_dep,
|
||||
libgio_dep,
|
||||
],
|
||||
install: true,
|
||||
c_args: custom_c_args,
|
||||
)
|
24
girepository/inspector/meson.build
Normal file
24
girepository/inspector/meson.build
Normal file
@ -0,0 +1,24 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
# SPDX-FileCopyrightText: 2024 GNOME Foundation
|
||||
|
||||
custom_c_args = [
|
||||
'-DG_LOG_DOMAIN="GLib-GirInspector"',
|
||||
]
|
||||
|
||||
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
|
||||
|
||||
giinspecttypelib = executable('gi-inspect-typelib', 'inspector.c',
|
||||
dependencies: [
|
||||
libgirepository_dep,
|
||||
libgio_dep,
|
||||
],
|
||||
install: true,
|
||||
c_args: custom_c_args,
|
||||
)
|
@ -243,3 +243,5 @@ if build_tests
|
||||
endif
|
||||
|
||||
subdir('compiler')
|
||||
subdir('decompiler')
|
||||
subdir('inspector')
|
Loading…
Reference in New Issue
Block a user