mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
build: Lift gir and build_gir to toplevel
build_gir is used in multiple subdirectories, so it is a bit nasty that it is defined in one too.
This commit is contained in:
parent
e049b6992d
commit
d758754f20
@ -1180,9 +1180,6 @@ libgtk = shared_library('gtk-4',
|
||||
gtk_dep_sources = [gtkversion, gtktypebuiltins_h]
|
||||
|
||||
# Introspection
|
||||
gir = find_program('g-ir-scanner', required : get_option('introspection'))
|
||||
build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled())
|
||||
|
||||
if build_gir
|
||||
gir_args = [
|
||||
'-DGTK_COMPILATION',
|
||||
|
@ -728,6 +728,11 @@ int main () {
|
||||
endif
|
||||
endif
|
||||
|
||||
# Introspection
|
||||
gir = find_program('g-ir-scanner', required : get_option('introspection'))
|
||||
build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled())
|
||||
|
||||
|
||||
project_build_root = meson.current_build_dir()
|
||||
|
||||
subdir('gtk/css')
|
||||
|
Loading…
Reference in New Issue
Block a user