meson: also run compile tests for not installed systemd headers
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 5 Oct 2018 05:29:05 +0000 (14:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 5 Oct 2018 08:08:10 +0000 (17:08 +0900)
Follow-up for b62f9008668a5330c61b4de7e0d48147bcd1edf7 (#10277).

src/systemd/meson.build

index 8495029..470328c 100644 (file)
@@ -17,20 +17,25 @@ _systemd_headers = '''
 # https://github.com/mesonbuild/meson/issues/1633
 systemd_headers = files(_systemd_headers)
 
-#  sd-dhcp6-client.h
-#  sd-dhcp6-lease.h
-#  sd-dhcp-client.h
-#  sd-dhcp-lease.h
-#  sd-dhcp-server.h
-#  sd-ipv4acd.h
-#  sd-ipv4ll.h
-#  sd-lldp.h
-#  sd-ndisc.h
-#  sd-netlink.h
-#  sd-network.h
-#  sd-path.h
+_not_installed_headers = '''
+        sd-dhcp6-client.h
+        sd-dhcp6-lease.h
+        sd-dhcp-client.h
+        sd-dhcp-lease.h
+        sd-dhcp-server.h
+        sd-ipv4acd.h
+        sd-ipv4ll.h
+        sd-lldp.h
+        sd-ndisc.h
+        sd-netlink.h
+        sd-network.h
+        sd-path.h
+        sd-radv.h
+        sd-utf8.h
+'''.split()
+
+# The following headers do not pass tests.
 #  sd-resolve.h
-#  sd-utf8.h
 
 install_headers(
         systemd_headers,
@@ -62,7 +67,7 @@ if cxx.found()
         endif
 endif
 
-foreach header : _systemd_headers
+foreach header : _systemd_headers + _not_installed_headers
         foreach opt : opts
                 name = ''.join([header, ':'] + opt)
                 if want_tests != 'false'