[meson] Use subdir_done to simplify test/api/meson.build

This commit is contained in:
Ebrahim Byagowi 2020-05-21 08:24:15 +04:30
parent a79d0e405b
commit 759ab4fe56
1 changed files with 85 additions and 84 deletions

View File

@ -1,4 +1,8 @@
if conf.get('HAVE_GLIB', 0) == 1
if conf.get('HAVE_GLIB', 0) == 0
message('You need to have glib support enabled to run test/api tests')
subdir_done()
endif
tests = [
'test-aat-layout.c',
'test-baseline.c',
@ -81,6 +85,3 @@ if conf.get('HAVE_GLIB', 0) == 1
install: false,
), env: env)
endforeach
else
message('You need to have glib support enabled to run test/api tests')
endif