chiark / gitweb /
tree-wide: beautify remaining copyright statements
[elogind.git] / src / basic / meson.build
index 78aba8257d234bf56802e5376f15588d3618bff5..831782733bc347f491cf3af2ed62161a1f819c56 100644 (file)
@@ -1,19 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1+
 #
-# Copyright 2017 Zbigniew Jędrzejewski-Szmek
-#
-# elogind is free software; you can redistribute it and/or modify it
-# under the terms of the GNU Lesser General Public License as published by
-# the Free Software Foundation; either version 2.1 of the License, or
-# (at your option) any later version.
-#
-# elogind is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with elogind; If not, see <http://www.gnu.org/licenses/>.
+# Copyright © 2017 Zbigniew Jędrzejewski-Szmek
 
 #if 0 /// elogind has a shorter list
 # basic_sources = files('''
@@ -36,6 +23,8 @@
 #         bitmap.c
 #         bitmap.h
 #         blkid-util.h
+#         blockdev-util.c
+#         blockdev-util.h
 #         bpf-program.c
 #         bpf-program.h
 #         btrfs-ctree.h
@@ -89,6 +78,8 @@
 #         fileio-label.h
 #         fileio.c
 #         fileio.h
+#         format-table.c
+#         format-table.h
 #         format-util.h
 #         fs-util.c
 #         fs-util.h
 #         nss-util.h
 #         ordered-set.c
 #         ordered-set.h
+#         pager.c
+#         pager.h
+#         os-util.c
+#         os-util.h
 #         parse-util.c
 #         parse-util.h
 #         path-util.c
 #         proc-cmdline.h
 #         process-util.c
 #         process-util.h
+#         procfs-util.c
+#         procfs-util.h
 #         random-util.c
 #         random-util.h
 #         ratelimit.c
 #         ratelimit.h
 #         raw-clone.h
+#         raw-reboot.h
+#         reboot-util.c
+#         reboot-util.h
 #         refcnt.h
 #         replace-var.c
 #         replace-var.h
 #         securebits.h
 #         selinux-util.c
 #         selinux-util.h
-#         set.c
 #         set.h
 #         sigbus.c
 #         sigbus.h
 #         smack-util.c
 #         smack-util.h
 #         socket-label.c
+#         socket-protocol-list.c
+#         socket-protocol-list.h
 #         socket-util.c
 #         socket-util.h
 #         sparse-endian.h
 #         time-util.h
 #         umask-util.h
 #         unaligned.h
-#         unit-name.c
-#         unit-name.h
 #         unit-def.c
 #         unit-def.h
+#         unit-name.c
+#         unit-name.h
 #         user-util.c
 #         user-util.h
 #         utf8.c
 #         xml.h
 # '''.split())
 #else
-basic_sources_plain = files('''
+basic_sources = files('''
         alloc-util.c
         alloc-util.h
         audit-util.c
@@ -308,6 +309,8 @@ basic_sources_plain = files('''
         prioq.h
         proc-cmdline.c
         proc-cmdline.h
+        procfs-util.c
+        procfs-util.h
         process-util.c
         process-util.h
         random-util.c
@@ -330,6 +333,7 @@ basic_sources_plain = files('''
         socket-util.c
         socket-util.h
         sparse-endian.h
+        special.h
         stat-util.c
         stat-util.h
         stdio-util.h
@@ -404,11 +408,20 @@ errno_list_txt = custom_target(
         command : [generate_errno_list, cpp],
         capture : true)
 
+generate_socket_protocol_list = find_program('generate-socket-protocol-list.sh')
+socket_protocol_list_txt = custom_target(
+        'socket-protocol-list.txt',
+        output : 'socket-protocol-list.txt',
+        command : [generate_socket_protocol_list, cpp],
+        capture : true)
+
 generated_gperf_headers = []
 #if 0 /// elogind has only the cap and errno list.
 # foreach item : [['af',     af_list_txt,     'af',         ''],
 #                 ['arphrd', arphrd_list_txt, 'arphrd',     'ARPHRD_'],
 #                 ['cap',    cap_list_txt,    'capability', ''],
+#                 ['errno',  errno_list_txt,  'errno',      ''],
+#                 ['socket-protocol', socket_protocol_list_txt, 'socket_protocol',     'IPPROTO_']]
 #else
 foreach item : [['cap',    cap_list_txt,    'capability', ''],
                 ['errno',  errno_list_txt,  'errno',      '']]
@@ -448,6 +461,9 @@ foreach item : [['cap',    cap_list_txt,    'capability', ''],
 endforeach
 
 basic_sources += [missing_h] + generated_gperf_headers
+basic_gcrypt_sources = files(
+        'gcrypt-util.c',
+        'gcrypt-util.h')
 
 libbasic = static_library(
         'basic',
@@ -457,7 +473,19 @@ libbasic = static_library(
                         libcap,
 #if 0 /// no blkid in elogind
 #                         libblkid,
+#                         libmount,
 #endif // 0
                         libselinux],
         c_args : ['-fvisibility=default'],
         install : false)
+
+#if 0 /// elogind does not need gcrypt
+# # A convenience library that is separate from libbasic to avoid
+# # unnecessary linking to libgcrypt.
+# libbasic_gcrypt = static_library(
+#         'basic-gcrypt',
+#         basic_gcrypt_sources,
+#         include_directories : includes,
+#         dependencies : [libgcrypt],
+#         c_args : ['-fvisibility=default'])
+#endif // 0