SLIRP uses Meson so it could become a subproject in the future, but our choice of configure options is not yet supported in Meson (https://github.com/mesonbuild/meson/pull/7740). For now, build the library via the main meson.build just like for capstone. This improves the current state of affairs in that we will re-link the qemu executables against a changed libslirp.a, which we wouldn't do before-hand. Tested-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
41 lines
1.4 KiB
Meson
41 lines
1.4 KiB
Meson
softmmu_ss.add(files(
|
|
'announce.c',
|
|
'checksum.c',
|
|
'colo-compare.c',
|
|
'colo.c',
|
|
'dump.c',
|
|
'eth.c',
|
|
'filter-buffer.c',
|
|
'filter-mirror.c',
|
|
'filter-replay.c',
|
|
'filter-rewriter.c',
|
|
'filter.c',
|
|
'hub.c',
|
|
'net.c',
|
|
'queue.c',
|
|
'socket.c',
|
|
'util.c',
|
|
))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_L2TPV3', if_true: files('l2tpv3.c'))
|
|
softmmu_ss.add(when: slirp, if_true: files('slirp.c'))
|
|
softmmu_ss.add(when: ['CONFIG_VDE', vde], if_true: files('vde.c'))
|
|
softmmu_ss.add(when: 'CONFIG_NETMAP', if_true: files('netmap.c'))
|
|
vhost_user_ss = ss.source_set()
|
|
vhost_user_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
|
|
softmmu_ss.add_all(when: 'CONFIG_VHOST_NET_USER', if_true: vhost_user_ss)
|
|
softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c'))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c'))
|
|
softmmu_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c'))
|
|
softmmu_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c'))
|
|
tap_posix = ['tap.c']
|
|
if not config_host.has_key('CONFIG_LINUX') and not config_host.has_key('CONFIG_BSD') and not config_host.has_key('CONFIG_SOLARIS')
|
|
tap_posix += 'tap-stub.c'
|
|
endif
|
|
softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix))
|
|
softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c'))
|
|
softmmu_ss.add(when: 'CONFIG_VHOST_NET_VDPA', if_true: files('vhost-vdpa.c'))
|
|
|
|
subdir('can')
|