build: replace meson OS detection with variable
[dpdk.git] / buildtools / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2019 Intel Corporation
3
4 subdir('pmdinfogen')
5
6 pkgconf = find_program('pkg-config', 'pkgconf', required: false)
7 pmdinfo = find_program('gen-pmdinfo-cfile.sh')
8 list_dir_globs = find_program('list-dir-globs.py')
9 check_symbols = find_program('check-symbols.sh')
10 ldflags_ibverbs_static = find_program('options-ibverbs-static.sh')
11
12 # set up map-to-win script using python, either built-in or external
13 python3 = import('python').find_installation(required: false)
14 if python3.found()
15         py3 = [python3]
16 else
17         py3 = ['meson', 'runpython']
18 endif
19 map_to_win_cmd = py3 + files('map_to_win.py')
20 sphinx_wrapper = py3 + files('call-sphinx-build.py')
21
22 # stable ABI always starts with "DPDK_"
23 is_stable_cmd = [find_program('grep', 'findstr'), '^DPDK_']