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:
parent
2e49c16264
commit
ff56431140
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue