2020-07-27 06:23:40 +00:00
|
|
|
esx_sources = [
|
|
|
|
'esx_driver.c',
|
|
|
|
'esx_interface_driver.c',
|
|
|
|
'esx_network_driver.c',
|
|
|
|
'esx_storage_driver.c',
|
|
|
|
'esx_storage_backend_vmfs.c',
|
|
|
|
'esx_storage_backend_iscsi.c',
|
|
|
|
'esx_stream.c',
|
|
|
|
'esx_util.c',
|
|
|
|
'esx_vi.c',
|
|
|
|
'esx_vi_methods.c',
|
|
|
|
'esx_vi_types.c',
|
|
|
|
]
|
|
|
|
|
2020-09-23 06:37:20 +00:00
|
|
|
esx_gen_headers = custom_target(
|
|
|
|
'virtesxgenheaders',
|
2020-07-27 06:23:40 +00:00
|
|
|
input: [
|
|
|
|
'esx_vi_generator.input',
|
|
|
|
],
|
|
|
|
output: [
|
|
|
|
'esx_vi.generated.h',
|
|
|
|
'esx_vi_methods.generated.h',
|
|
|
|
'esx_vi_types.generated.h',
|
|
|
|
'esx_vi_types.generated.typedef',
|
|
|
|
'esx_vi_types.generated.typeenum',
|
2020-09-23 06:37:20 +00:00
|
|
|
],
|
|
|
|
command: [
|
|
|
|
meson_python_prog, python3_prog.path(), esx_vi_generator_prog.path(),
|
|
|
|
meson.source_root() / 'src',
|
|
|
|
meson.build_root() / 'src',
|
|
|
|
'header',
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
esx_gen_sources = custom_target(
|
|
|
|
'virtesxgensources',
|
|
|
|
input: [
|
|
|
|
'esx_vi_generator.input',
|
|
|
|
],
|
|
|
|
output: [
|
|
|
|
'esx_vi.generated.c',
|
|
|
|
'esx_vi_methods.generated.macro',
|
|
|
|
'esx_vi_methods.generated.c',
|
|
|
|
'esx_vi_types.generated.c',
|
2020-07-27 06:23:40 +00:00
|
|
|
'esx_vi_types.generated.typefromstring',
|
|
|
|
'esx_vi_types.generated.typetostring',
|
|
|
|
],
|
|
|
|
command: [
|
|
|
|
meson_python_prog, python3_prog.path(), esx_vi_generator_prog.path(),
|
|
|
|
meson.source_root() / 'src',
|
|
|
|
meson.build_root() / 'src',
|
2020-09-23 06:37:20 +00:00
|
|
|
'source',
|
2020-07-27 06:23:40 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
if conf.has('WITH_ESX')
|
|
|
|
esx_lib = static_library(
|
|
|
|
'virt_driver_esx',
|
|
|
|
[
|
|
|
|
esx_sources,
|
2020-09-23 06:37:20 +00:00
|
|
|
esx_gen_headers[1],
|
2020-07-27 06:23:40 +00:00
|
|
|
esx_gen_sources[1],
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
curl_dep,
|
|
|
|
src_dep,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
conf_inc_dir,
|
|
|
|
vmx_inc_dir,
|
|
|
|
],
|
|
|
|
)
|
2020-07-27 06:39:38 +00:00
|
|
|
|
|
|
|
libvirt_libs += esx_lib
|
2020-07-27 06:23:40 +00:00
|
|
|
endif
|
2020-07-27 06:35:58 +00:00
|
|
|
|
|
|
|
if conf.has('WITH_ESX')
|
|
|
|
used_sym_files += 'libvirt_esx.syms'
|
|
|
|
else
|
|
|
|
sym_files += 'libvirt_esx.syms'
|
|
|
|
endif
|
2020-07-27 09:36:22 +00:00
|
|
|
|
|
|
|
esx_inc_dir = include_directories('.')
|