mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
Fixes the following warning > pylibfdt/meson.build:2: WARNING: Project targets '>=0.56.0' but uses feature deprecated since '0.55.0': ExternalProgram.path. use ExternalProgram.full_path() instead Do not use full_path() as suggested. setup_py is being called as a command by custom_target() which understands how to properly inherit the object returned by find_program(). Signed-off-by: Brandon Maier <brandon.maier@collins.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
12 lines
403 B
Meson
12 lines
403 B
Meson
setup_py = find_program('../setup.py')
|
|
setup_py = [setup_py, '--quiet', '--top-builddir', meson.project_build_root()]
|
|
|
|
custom_target(
|
|
'pylibfdt',
|
|
input: 'libfdt.i',
|
|
output: '_libfdt.so',
|
|
command: [setup_py, 'build_ext', '--build-lib=' + meson.current_build_dir()],
|
|
build_by_default: true,
|
|
)
|
|
|
|
meson.add_install_script(setup_py, 'install', '--prefix=' + get_option('prefix'), '--root=$DESTDIR')
|