blob: 088f24934b4fae38f9babde389a48ae25e9da9f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
setup_py = find_program('setup.py')
setup_py = [setup_py.path(), '--quiet', '--top-builddir', meson.current_build_dir() / '..']
custom_target(
'pylibfdt',
input: 'libfdt.i',
output: '_libfdt.so',
depends: version_gen_h,
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')
|