mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
3247dab74c
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
36 lines
755 B
Meson
36 lines
755 B
Meson
project('virt-manager',
|
|
version: '4.1.0',
|
|
meson_version: '>=0.63.0',
|
|
)
|
|
|
|
python = import('python')
|
|
python3 = python.find_installation('python3')
|
|
|
|
prefix = get_option('prefix')
|
|
datadir = prefix / get_option('datadir')
|
|
pkgdir = datadir / 'virt-manager'
|
|
|
|
# figure out if we are building from git
|
|
git = run_command('test', '-e', '.git', check: false).returncode() == 0
|
|
|
|
subdir('scripts')
|
|
subdir('man')
|
|
subdir('data')
|
|
subdir('ui')
|
|
subdir('virtinst')
|
|
subdir('virtManager')
|
|
|
|
if git
|
|
spec_conf = configuration_data({
|
|
'VERSION': meson.project_version(),
|
|
})
|
|
|
|
spec_file = configure_file(
|
|
input: 'virt-manager.spec.in',
|
|
output: '@BASENAME@',
|
|
configuration: spec_conf,
|
|
)
|
|
|
|
meson.add_dist_script(meson_dist_prog.full_path(), spec_file)
|
|
endif
|