mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 22:33:36 +08:00
94c643732d
net/vhost-vdpa.c will need functions that are declared in vhost-shadow-virtqueue.c, that needs functions of virtio-net.c. Copy the vhost-vdpa-stub.c code so only the constructor net_init_vhost_vdpa needs to be defined. Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
56 lines
1.6 KiB
Meson
56 lines
1.6 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-rewriter.c',
|
|
'filter.c',
|
|
'hub.c',
|
|
'net.c',
|
|
'queue.c',
|
|
'socket.c',
|
|
'util.c',
|
|
))
|
|
|
|
softmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
|
|
|
|
if have_l2tpv3
|
|
softmmu_ss.add(files('l2tpv3.c'))
|
|
endif
|
|
softmmu_ss.add(when: slirp, if_true: files('slirp.c'))
|
|
softmmu_ss.add(when: vde, if_true: files('vde.c'))
|
|
if have_netmap
|
|
softmmu_ss.add(files('netmap.c'))
|
|
endif
|
|
if have_vhost_net_user
|
|
softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
|
|
softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c'))
|
|
endif
|
|
|
|
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'))
|
|
if have_vhost_net_vdpa
|
|
softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
|
|
softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-vdpa-stub.c'))
|
|
endif
|
|
|
|
vmnet_files = files(
|
|
'vmnet-common.m',
|
|
'vmnet-bridged.m',
|
|
'vmnet-host.c',
|
|
'vmnet-shared.c'
|
|
)
|
|
softmmu_ss.add(when: vmnet, if_true: vmnet_files)
|
|
subdir('can')
|