diff --git a/src/meson.build b/src/meson.build index 1b57765dd71..d99522cfd2c 100644 --- a/src/meson.build +++ b/src/meson.build @@ -117,9 +117,6 @@ if with_gbm else inc_gbm = [] endif -if with_egl - subdir('egl') -endif if with_gallium subdir('gallium') # This has to be here since it requires libgallium, and subdir cannot @@ -128,6 +125,9 @@ if with_gallium subdir('mesa/state_tracker/tests') endif endif +if with_egl + subdir('egl') +endif # This must be after at least mesa, glx, and gallium, since libgl will be # defined in one of those subdirs depending on the glx provider.