meson: fix logic for generating .pc files with old glvnd

We want to generate PC files for non-glvnd builds and for builds with
old glvnd, but the current logic doesn't do that, it builds them
unconditionally, and for GLES it builds the shared libraries, which is
also not what we want. This does not generate .pc files for gles1 or
gles2. Which it we weren't doing before either, making this not a
regression but a return to status-quo.o

Closes: mesa/mesa#1838
Fixes: 93df862b
       ("meson: re-add incorrect pkg-config files with GLVND for backward compatibility")
Reviewed-by: Matt Turner <mattst88@gmail.com>
40 jobs for !2128 with fix-glvnd-pkgconfig in 1 minute and 46 seconds (queued for 4 seconds)
detached
Status Name Job ID Coverage
  Containers
passed debian-10 #662842

00:00:31

passed debian-9 #662843

00:00:31

passed test-container:arm64 #662844
aarch64

00:00:21

 
  Build
failed meson-arm64 #662847

00:00:59

failed meson-armhf #662846

00:00:59

failed meson-clang #662849

00:00:08

failed meson-clover #662852

00:01:13

failed meson-clover-old-llvm #662853

00:00:11

failed meson-i386 #662855

00:01:04

failed meson-main #662845

00:00:12

failed meson-swr-glvnd #662848

00:00:07

failed meson-vulkan #662854

00:01:04

failed scons #662856

00:01:06

failed scons-old-llvm #662857

00:00:57

failed scons-swr #662850

00:00:07

failed scons-win64 #662851

00:01:07

 
  Test
skipped arm64_a306_gles2 1/4 #662878
db410c
skipped arm64_a306_gles2 2/4 #662879
db410c
skipped arm64_a306_gles2 3/4 #662880
db410c
skipped arm64_a306_gles2 4/4 #662881
db410c
skipped arm64_a630_gles2 #662867
mesa-cheza
skipped arm64_a630_gles31 1/4 #662868
mesa-cheza
skipped arm64_a630_gles31 2/4 #662869
mesa-cheza
skipped arm64_a630_gles31 3/4 #662870
mesa-cheza
skipped arm64_a630_gles31 4/4 #662871
mesa-cheza
skipped arm64_a630_gles3 1/6 #662872
mesa-cheza
skipped arm64_a630_gles3 2/6 #662873
mesa-cheza
skipped arm64_a630_gles3 3/6 #662874
mesa-cheza
skipped arm64_a630_gles3 4/6 #662875
mesa-cheza
skipped arm64_a630_gles3 5/6 #662876
mesa-cheza
skipped arm64_a630_gles3 6/6 #662877
mesa-cheza
skipped test-llvmpipe-gles2 1/4 #662858
skipped test-llvmpipe-gles2 2/4 #662859
skipped test-llvmpipe-gles2 3/4 #662860
skipped test-llvmpipe-gles2 4/4 #662861
skipped test-softpipe-gles2 1/4 #662862
skipped test-softpipe-gles2 2/4 #662863
skipped test-softpipe-gles2 3/4 #662864
skipped test-softpipe-gles2 4/4 #662865
skipped test-softpipe-gles3-limited #662866
 
Name Stage Failure
failed
scons-old-llvm Build
No job log
failed
scons-swr Build
No job log
failed
meson-swr-glvnd Build
No job log
failed
meson-clang Build
No job log
failed
meson-clover-old-llvm Build
No job log
failed
meson-armhf Build
No job log
failed
meson-arm64 Build
No job log
failed
meson-i386 Build
No job log
failed
meson-vulkan Build
No job log
failed
scons-win64 Build
No job log
failed
scons Build
No job log
failed
meson-main Build
No job log
failed
meson-clover Build
No job log