chiark / gitweb /
tree-wide: beautify remaining copyright statements
[elogind.git] / src / libelogind / meson.build
index d4306bba0a773baa197aa389aac6da82406006a4..6e390490ec3e6d6612b255a48181252e38699a2c 100644 (file)
@@ -1,26 +1,19 @@
 # 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
+
+id128_sources = files('''
+        sd-id128/id128-util.c
+        sd-id128/id128-util.h
+        sd-id128/sd-id128.c
+'''.split())
 
+sd_daemon_c = files('sd-daemon/sd-daemon.c')
+sd_event_c = files('sd-event/sd-event.c')
 sd_login_c = files('sd-login/sd-login.c')
 
 #if 0 /// elogind has a shorter list, of course...
-# libsystemd_internal_sources = files('''
-#         sd-bus/bus-bloom.c
-#         sd-bus/bus-bloom.h
+# libsystemd_sources = files('''
 #         sd-bus/bus-common-errors.c
 #         sd-bus/bus-common-errors.h
 #         sd-bus/bus-container.c
@@ -60,7 +53,6 @@ sd_login_c = files('sd-login/sd-login.c')
 #         sd-bus/bus-type.c
 #         sd-bus/bus-type.h
 #         sd-bus/sd-bus.c
-#         sd-daemon/sd-daemon.c
 #         sd-device/device-enumerator-private.h
 #         sd-device/device-enumerator.c
 #         sd-device/device-internal.h
@@ -68,13 +60,10 @@ sd_login_c = files('sd-login/sd-login.c')
 #         sd-device/device-private.h
 #         sd-device/device-util.h
 #         sd-device/sd-device.c
-#         sd-event/sd-event.c
 #         sd-hwdb/hwdb-internal.h
 #         sd-hwdb/hwdb-util.h
 #         sd-hwdb/sd-hwdb.c
-#         sd-id128/id128-util.c
-#         sd-id128/id128-util.h
-#         sd-id128/sd-id128.c
+#         sd-netlink/generic-netlink.c
 #         sd-netlink/local-addresses.c
 #         sd-netlink/local-addresses.h
 #         sd-netlink/netlink-internal.h
@@ -92,11 +81,9 @@ sd_login_c = files('sd-login/sd-login.c')
 #         sd-path/sd-path.c
 #         sd-resolve/sd-resolve.c
 #         sd-utf8/sd-utf8.c
-# '''.split()) + sd_login_c
+# '''.split()) + id128_sources + sd_daemon_c + sd_event_c + sd_login_c
 #else
-libelogind_internal_sources = files('''
-        sd-bus/bus-bloom.c
-        sd-bus/bus-bloom.h
+libelogind_sources = files('''
         sd-bus/bus-common-errors.c
         sd-bus/bus-common-errors.h
         sd-bus/bus-container.c
@@ -142,24 +129,27 @@ libelogind_internal_sources = files('''
 '''.split()) + sd_login_c
 #endif // 0
 
-libelogind_internal = static_library(
-        'elogind',
-        libelogind_internal_sources,
+libelogind_static = static_library(
+        libelogind_sources,
+libelogind_c_args = ['-fvisibility=default']
+
+        'elogind_static',
         install : false,
         include_directories : includes,
         link_with : libbasic,
 #if 0 /// elogind does not need librt
 #         dependencies : [threads,
-#                         librt])
+#                         librt],
+#         c_args : libsystemd_c_args)
+# 
+# libsystemd_sym = 'src/libsystemd/libsystemd.sym'
+# 
+# libsystemd_pc = configure_file(
+#         input : 'libsystemd.pc.in',
+#         output : 'libsystemd.pc',
+# install_data(libsystemd_pc,
 #else
-        dependencies : [threads])
+        dependencies : [threads],
 #endif // 0
-
-libelogind_sym = 'src/libelogind/libelogind.sym'
-
-libelogind_pc = configure_file(
-        input : 'libelogind.pc.in',
-        output : 'libelogind.pc',
         configuration : substs)
-install_data(libelogind_pc,
              install_dir : pkgconfiglibdir)