1# SPDX-License-Identifier: BSD-3-Clause 2# Copyright(c) 2017-2019 Intel Corporation 3 4subdir('pmdinfogen') 5 6pmdinfo = find_program('gen-pmdinfo-cfile.sh') 7 8# set up map-to-def script using python, either built-in or external 9python3 = import('python').find_installation(required: false) 10if python3.found() 11 map_to_def_cmd = [python3, files('map_to_def.py')] 12else 13 map_to_def_cmd = ['meson', 'runpython', files('map_to_def.py')] 14endif 15