meson: Setup the Meson build infrastructure
This commit is contained in:
7
python/meson.build
Normal file
7
python/meson.build
Normal file
@ -0,0 +1,7 @@
|
||||
pymod = import('python')
|
||||
pyinst = pymod.find_installation('python3')
|
||||
|
||||
PYTHONPATH = meson.current_build_dir()
|
||||
|
||||
subdir('phogen_map')
|
||||
subdir('passgeny')
|
||||
24
python/passgeny/meson.build
Normal file
24
python/passgeny/meson.build
Normal file
@ -0,0 +1,24 @@
|
||||
pysrc = files(
|
||||
'__init__.py',
|
||||
'passgeny.py',
|
||||
'bhash.py',
|
||||
'phogen.py')
|
||||
|
||||
phogen_map_py = custom_target(
|
||||
'phogen_map.py',
|
||||
input : PHOGEN_WORD_LIST,
|
||||
output : 'phogen_map.py',
|
||||
install: true,
|
||||
install_dir: pyinst.get_install_dir() / meson.project_name(),
|
||||
build_by_default: true,
|
||||
command : [PHOGEN_MAP_EXE, '--input=@INPUT@', '--python=@OUTPUT@'])
|
||||
|
||||
custom_target(
|
||||
'python_passgeny',
|
||||
input: pysrc,
|
||||
output: 'passgeny',
|
||||
command: ['cp', '@INPUT@', '@OUTDIR@'],
|
||||
build_by_default: true)
|
||||
|
||||
pyinst.install_sources(pysrc, subdir: meson.project_name())
|
||||
|
||||
2
python/phogen_map/meson.build
Normal file
2
python/phogen_map/meson.build
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
PHOGEN_MAP_PY = files('phogen_map.py')
|
||||
Reference in New Issue
Block a user