meson: drop libsystemd_network from several binaries
This reduces the size of udevadm: Before: ``` $ ll udevadm -rwxrwxr-x 1 watanabe watanabe 1203800 Oct 29 01:36 udevadm ``` After: ``` $ ll udevadm -rwxrwxr-x 1 watanabe watanabe 1094384 Oct 29 01:38 udevadm ```
This commit is contained in:
parent
01ab92af71
commit
26f4d32365
|
@ -3188,7 +3188,6 @@ public_programs += executable(
|
||||||
c_args : '-DLOG_REALM=LOG_REALM_UDEV',
|
c_args : '-DLOG_REALM=LOG_REALM_UDEV',
|
||||||
include_directories : includes,
|
include_directories : includes,
|
||||||
link_with : [libudev_core,
|
link_with : [libudev_core,
|
||||||
libsystemd_network,
|
|
||||||
libudev_static],
|
libudev_static],
|
||||||
dependencies : [versiondep,
|
dependencies : [versiondep,
|
||||||
threads,
|
threads,
|
||||||
|
|
|
@ -108,7 +108,6 @@ fuzzers += [
|
||||||
[['src/fuzz/fuzz-udev-rules.c'],
|
[['src/fuzz/fuzz-udev-rules.c'],
|
||||||
[libudev_core,
|
[libudev_core,
|
||||||
libudev_static,
|
libudev_static,
|
||||||
libsystemd_network,
|
|
||||||
libshared],
|
libshared],
|
||||||
[threads,
|
[threads,
|
||||||
libacl]],
|
libacl]],
|
||||||
|
|
|
@ -17,6 +17,7 @@ sources = files('''
|
||||||
arp-util.h
|
arp-util.h
|
||||||
arp-util.c
|
arp-util.c
|
||||||
network-internal.c
|
network-internal.c
|
||||||
|
network-internal.h
|
||||||
sd-ndisc.c
|
sd-ndisc.c
|
||||||
ndisc-internal.h
|
ndisc-internal.h
|
||||||
ndisc-router.h
|
ndisc-router.h
|
||||||
|
@ -42,10 +43,7 @@ sources = files('''
|
||||||
sd-lldp.c
|
sd-lldp.c
|
||||||
'''.split())
|
'''.split())
|
||||||
|
|
||||||
network_internal_h = files('network-internal.h')
|
|
||||||
|
|
||||||
libsystemd_network = static_library(
|
libsystemd_network = static_library(
|
||||||
'systemd-network',
|
'systemd-network',
|
||||||
sources,
|
sources,
|
||||||
network_internal_h,
|
|
||||||
include_directories : includes)
|
include_directories : includes)
|
||||||
|
|
|
@ -171,7 +171,7 @@ systemd_networkd_wait_online_sources = files('''
|
||||||
wait-online/manager.c
|
wait-online/manager.c
|
||||||
wait-online/manager.h
|
wait-online/manager.h
|
||||||
wait-online/wait-online.c
|
wait-online/wait-online.c
|
||||||
'''.split()) + network_internal_h
|
'''.split())
|
||||||
|
|
||||||
networkctl_sources = files('networkctl.c')
|
networkctl_sources = files('networkctl.c')
|
||||||
|
|
||||||
|
@ -214,7 +214,6 @@ if conf.get('ENABLE_NETWORKD') == 1
|
||||||
libnetworkd_core = static_library(
|
libnetworkd_core = static_library(
|
||||||
'networkd-core',
|
'networkd-core',
|
||||||
sources,
|
sources,
|
||||||
network_internal_h,
|
|
||||||
networkd_gperf_c,
|
networkd_gperf_c,
|
||||||
networkd_network_gperf_c,
|
networkd_network_gperf_c,
|
||||||
netdev_gperf_c,
|
netdev_gperf_c,
|
||||||
|
|
|
@ -126,8 +126,7 @@ tests += [
|
||||||
|
|
||||||
[['src/test/test-dns-domain.c'],
|
[['src/test/test-dns-domain.c'],
|
||||||
[libcore,
|
[libcore,
|
||||||
libshared,
|
libshared],
|
||||||
libsystemd_network],
|
|
||||||
[]],
|
[]],
|
||||||
|
|
||||||
[['src/test/test-boot-timestamps.c'],
|
[['src/test/test-boot-timestamps.c'],
|
||||||
|
@ -529,7 +528,6 @@ tests += [
|
||||||
libjournal_core,
|
libjournal_core,
|
||||||
libudev_core,
|
libudev_core,
|
||||||
libudev_static,
|
libudev_static,
|
||||||
libsystemd_network,
|
|
||||||
libshared],
|
libshared],
|
||||||
[threads,
|
[threads,
|
||||||
libseccomp,
|
libseccomp,
|
||||||
|
@ -765,7 +763,6 @@ tests += [
|
||||||
[['src/test/test-udev.c'],
|
[['src/test/test-udev.c'],
|
||||||
[libudev_core,
|
[libudev_core,
|
||||||
libudev_static,
|
libudev_static,
|
||||||
libsystemd_network,
|
|
||||||
libshared],
|
libshared],
|
||||||
[threads,
|
[threads,
|
||||||
librt,
|
librt,
|
||||||
|
|
|
@ -202,7 +202,6 @@ fuzzers += [
|
||||||
'src/fuzz/fuzz.h'],
|
'src/fuzz/fuzz.h'],
|
||||||
[libudev_core,
|
[libudev_core,
|
||||||
libudev_static,
|
libudev_static,
|
||||||
libsystemd_network,
|
|
||||||
libshared],
|
libshared],
|
||||||
[threads,
|
[threads,
|
||||||
libacl]],
|
libacl]],
|
||||||
|
|
Loading…
Reference in New Issue