1
0
Fork 0

build: Only require gtk3 dependency if tests are enabled

It's only used there, now.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2864>
This commit is contained in:
Carlos Garnacho 2023-03-03 15:54:59 +01:00 committed by Marge Bot
parent 2e49c16264
commit ff56431140

View file

@ -146,7 +146,6 @@ if not have_wayland and not have_x11
endif endif
if have_x11_client if have_x11_client
gtk3_dep = dependency('gtk+-3.0', version: gtk3_req)
gtk4_dep = dependency('gtk4', version: gtk4_req) gtk4_dep = dependency('gtk4', version: gtk4_req)
x11_dep = dependency('x11', version: x11_req) x11_dep = dependency('x11', version: x11_req)
@ -330,6 +329,8 @@ have_tty_tests = false
have_installed_tests = false have_installed_tests = false
if have_tests if have_tests
gtk3_dep = dependency('gtk+-3.0', version: gtk3_req)
have_core_tests = get_option('core_tests') have_core_tests = get_option('core_tests')
if have_core_tests if have_core_tests
if not have_wayland if not have_wayland