build: Switch order of subdirectories
authorBenjamin Otte <otte@redhat.com>
Sat, 17 Feb 2018 15:43:21 +0000 (16:43 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 16 Mar 2018 05:04:44 +0000 (06:04 +0100)
This makes demos be compiled/linked before tests. And that means that
while hacking, I can already run widget-factory when the tests are
still linking.

meson.build

index d50d2f222e446ead36d8d8ec05e8a999c8576bdb..68fce04f46cba5d5610332c106b1aff06a7aea3b 100644 (file)
@@ -593,14 +593,14 @@ subdir('gdk')
 subdir('gsk')
 subdir('gtk')
 subdir('modules')
-if get_option('build-tests')
-  subdir('tests')
-  subdir('testsuite')
-endif
 if get_option('demos')
   subdir('demos')
   subdir('examples')
 endif
+if get_option('build-tests')
+  subdir('tests')
+  subdir('testsuite')
+endif
 
 # config.h
 configure_file(input: 'config.h.meson',