chiark / gitweb /
Prep v238: Fixed meson.build files in src/shared and src/test
authorSven Eden <yamakuzure@gmx.net>
Fri, 1 Jun 2018 18:22:28 +0000 (20:22 +0200)
committerSven Eden <yamakuzure@gmx.net>
Mon, 4 Jun 2018 08:32:31 +0000 (10:32 +0200)
src/shared/meson.build
src/test/meson.build

index 2c70bfd41ce0fc67304f05df9727160069e764a6..341eb52cb643b1faa11823fcda3767daf832eb1c 100644 (file)
@@ -57,8 +57,6 @@
 #         firewall-util.h
 #         fstab-util.c
 #         fstab-util.h
-#         gcrypt-util.c
-#         gcrypt-util.h
 #         generator.c
 #         generator.h
 #         gpt.h
@@ -194,31 +192,31 @@ libshared_deps = [threads,
 
 libshared_sym_path = '@0@/libshared.sym'.format(meson.current_source_dir())
 
-libshared = shared_library(
+libshared_static = static_library(
         libshared_name,
         shared_sources,
-        basic_sources,
-        journal_internal_sources,
-        libelogind_internal_sources,
+        include_directories : includes,
+        dependencies : libshared_deps,
+        c_args : ['-fvisibility=default'])
+
+libshared = shared_library(
+        libshared_name,
 #if 0 /// UNNEEDED by elogind
 #         libudev_sources,
-#         include_directories : includes,
-#         link_args : ['-shared',
-#                     '-Wl,--version-script=' + libshared_sym_path],
-#         c_args : ['-fvisibility=default'],
-#         dependencies : libshared_deps,
-#         install : true,
-#         install_dir : rootlibexecdir)
-# 
-# libshared_static = static_library(
-#         libshared_name,
-#         shared_sources,
-#         basic_sources,
-#         include_directories : includes,
-#         dependencies : libshared_deps)
+#endif // 0
+        include_directories : includes,
+        link_args : ['-shared',
+                     '-Wl,--version-script=' + libshared_sym_path],
+        link_whole : [libshared_static,
+                      libbasic,
+#if 0 /// UNNEEDED by elogind
+#                       libbasic_gcrypt,
+#                       libsystemd_static,
+#                       libjournal_client],
 #else
-        libelogind_internal_sources,
+                      libelogind_static],
 #endif // 0
-#if 1 /// need elogind internal library sources
-        libelogind_internal_sources,
-#endif // 1
+        c_args : ['-fvisibility=default'],
+        dependencies : libshared_deps,
+        install : true,
+        install_dir : rootlibexecdir)
index 12dfcf5adafd280b60a04f7c3f795a889b53c9e5..5cc5c4fb0429a89d062c32946a1eeaa1ea0280bb 100644 (file)
@@ -59,8 +59,8 @@ test_dlopen_c = files('test-dlopen.c')
 ############################################################
 
 #if 0 /// UNNEEDED by elogind
+# test_systemd_tmpfiles_py = find_program('test-systemd-tmpfiles.py')
 #endif // 0
-test_elogind_tmpfiles_py = find_program('test-elogind-tmpfiles.py')
 
 ############################################################
 
@@ -407,19 +407,19 @@ tests += [
 #           libseccomp,
 #           libselinux,
 #           libblkid]],
+# 
+#         [['src/test/test-watch-pid.c',
+#           'src/test/test-helper.c'],
+#          [libcore,
+#           libshared],
+#          [libmount,
+#           threads,
+#           librt,
+#           libseccomp,
+#           libselinux,
+#           libblkid]],
 #endif // 0
 
-        [['src/test/test-watch-pid.c',
-          'src/test/test-helper.c'],
-         [libcore,
-          libshared],
-         [libmount,
-          threads,
-          librt,
-          libseccomp,
-          libselinux,
-          libblkid]],
-
         [['src/test/test-hashmap.c',
           'src/test/test-hashmap-plain.c',
           test_hashmap_ordered_c],
@@ -696,12 +696,12 @@ tests += [
          [],
          []],
 
-        [['src/test/test-gcrypt-util.c'],
-         [],
-         [],
-         'HAVE_GCRYPT'],
-
 #if 0 /// UNNEEDED in elogind
+#         [['src/test/test-gcrypt-util.c'],
+#          [],
+#          [],
+#          'HAVE_GCRYPT'],
+# 
 #         [['src/test/test-nss.c'],
 #          [],
 #          [libdl],