f-stack/dpdk/buildtools/meson.build

52 lines
1.6 KiB
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
2020-06-18 16:55:50 +00:00
# Copyright(c) 2017-2019 Intel Corporation
2019-06-25 11:12:58 +00:00
2020-06-18 16:55:50 +00:00
pkgconf = find_program('pkg-config', 'pkgconf', required: false)
2021-02-05 08:48:47 +00:00
check_symbols = find_program('check-symbols.sh')
2020-06-18 16:55:50 +00:00
ldflags_ibverbs_static = find_program('options-ibverbs-static.sh')
2024-10-17 10:26:34 +00:00
python3_required_modules = []
if host_machine.system() != 'windows'
python3_required_modules = ['elftools']
endif
python3 = import('python').find_installation('python3', required: false, modules: python3_required_modules)
2020-06-18 16:55:50 +00:00
if python3.found()
2022-09-06 04:00:10 +00:00
py3 = [python3]
2020-06-18 16:55:50 +00:00
else
2022-09-06 04:00:10 +00:00
py3 = ['meson', 'runpython']
2020-06-18 16:55:50 +00:00
endif
2022-09-02 04:40:05 +00:00
echo = py3 + ['-c', 'import sys; print(*sys.argv[1:])']
list_dir_globs = py3 + files('list-dir-globs.py')
2021-02-05 08:48:47 +00:00
map_to_win_cmd = py3 + files('map_to_win.py')
2021-01-28 17:08:59 +00:00
sphinx_wrapper = py3 + files('call-sphinx-build.py')
2022-09-06 04:00:10 +00:00
get_cpu_count_cmd = py3 + files('get-cpu-count.py')
get_numa_count_cmd = py3 + files('get-numa-count.py')
2025-01-10 11:50:43 +00:00
get_test_suites_cmd = py3 + files('get-test-suites.py')
has_hugepages_cmd = py3 + files('has-hugepages.py')
cmdline_gen_cmd = py3 + files('dpdk-cmdline-gen.py')
# install any build tools that end-users might want also
install_data([
'dpdk-cmdline-gen.py',
],
install_dir: 'bin')
2022-09-06 04:00:10 +00:00
# select library and object file format
pmdinfo = py3 + files('gen-pmdinfo-cfile.py') + [meson.current_build_dir()]
pmdinfogen = py3 + files('pmdinfogen.py')
if host_machine.system() == 'windows'
if cc.get_id() == 'gcc'
pmdinfo += 'ar'
else
pmdinfo += 'llvm-ar'
endif
pmdinfogen += 'coff'
elif host_machine.system() == 'freebsd'
pmdinfo += 'llvm-ar'
pmdinfogen += 'elf'
else
pmdinfo += 'ar'
pmdinfogen += 'elf'
endif