The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
527 B
24 lines
527 B
7 years ago
|
project('Python extension module', 'c',
|
||
|
default_options : ['buildtype=release'])
|
||
|
|
||
|
py_mod = import('python')
|
||
|
|
||
7 years ago
|
py = py_mod.find_installation(get_option('python'), required : false)
|
||
7 years ago
|
|
||
|
if py.found()
|
||
|
py_dep = py.dependency()
|
||
|
|
||
|
if py_dep.found()
|
||
|
subdir('ext')
|
||
|
|
||
|
test('extmod',
|
||
|
py,
|
||
|
args : files('blaster.py'),
|
||
|
env : ['PYTHONPATH=' + pypathdir])
|
||
|
else
|
||
|
error('MESON_SKIP_TEST: Python libraries not found, skipping test.')
|
||
|
endif
|
||
|
else
|
||
|
error('MESON_SKIP_TEST: Python not found, skipping test.')
|
||
|
endif
|