1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2017-2019 Intel Corporation 3 4pkgconf = find_program('pkg-config', 'pkgconf', required: false) 5check_symbols = find_program('check-symbols.sh') 6ldflags_ibverbs_static = find_program('options-ibverbs-static.sh') 7 8python3_required_modules = [] 9if host_machine.system() != 'windows' 10 python3_required_modules = ['elftools'] 11endif 12python3 = import('python').find_installation('python3', required: false, modules: python3_required_modules) 13if python3.found() 14 py3 = [python3] 15else 16 py3 = ['meson', 'runpython'] 17endif 18echo = py3 + ['-c', 'import sys; print(*sys.argv[1:])'] 19list_dir_globs = py3 + files('list-dir-globs.py') 20map_to_win_cmd = py3 + files('map_to_win.py') 21sphinx_wrapper = py3 + files('call-sphinx-build.py') 22get_cpu_count_cmd = py3 + files('get-cpu-count.py') 23get_numa_count_cmd = py3 + files('get-numa-count.py') 24get_test_suites_cmd = py3 + files('get-test-suites.py') 25header_gen_cmd = py3 + files('gen-header.py') 26has_hugepages_cmd = py3 + files('has-hugepages.py') 27cmdline_gen_cmd = py3 + files('dpdk-cmdline-gen.py') 28check_dts_requirements = py3 + files('check-dts-requirements.py') 29 30# install any build tools that end-users might want also 31install_data([ 32 'dpdk-cmdline-gen.py', 33 ], 34 install_dir: 'bin') 35 36# select library and object file format 37pmdinfo = py3 + files('gen-pmdinfo-cfile.py') + [meson.current_build_dir()] 38pmdinfogen = py3 + files('pmdinfogen.py') 39if host_machine.system() == 'windows' 40 if cc.get_id() == 'gcc' 41 pmdinfo += 'ar' 42 else 43 pmdinfo += 'llvm-ar' 44 endif 45 pmdinfogen += 'coff' 46elif host_machine.system() == 'freebsd' 47 pmdinfo += 'llvm-ar' 48 pmdinfogen += 'elf' 49else 50 pmdinfo += 'ar' 51 pmdinfogen += 'elf' 52endif 53