diff --git a/src/sage/meson.build b/src/sage/meson.build index 2ed1c3abe89..1e89aef0d8a 100644 --- a/src/sage/meson.build +++ b/src/sage/meson.build @@ -13,7 +13,6 @@ no_processing = [ 'parallel', 'repl', 'sandpiles', - 'sat', 'tensor', 'topology', 'typeset', @@ -79,3 +78,4 @@ subdir('stats') subdir('symbolic') subdir('tests') subdir('dynamics') +subdir('sat') diff --git a/src/sage/sat/meson.build b/src/sage/sat/meson.build new file mode 100644 index 00000000000..33cdb49894b --- /dev/null +++ b/src/sage/sat/meson.build @@ -0,0 +1,8 @@ +py.install_sources( + 'all.py', + 'boolean_polynomials.py', + subdir: 'sage/sat', +) + +install_subdir('converters', install_dir: sage_install_dir / 'sat') +subdir('solvers') diff --git a/src/sage/sat/solvers/meson.build b/src/sage/sat/solvers/meson.build new file mode 100644 index 00000000000..8815ab02d49 --- /dev/null +++ b/src/sage/sat/solvers/meson.build @@ -0,0 +1,23 @@ +py.install_sources( + '__init__.py', + 'cryptominisat.py', + 'dimacs.py', + 'picosat.py', + 'sat_lp.py', + subdir: 'sage/sat/solvers', +) + +extension_data = { + 'satsolver': files('satsolver.pyx'), +} + +foreach name, pyx : extension_data + py.extension_module(name, + sources: pyx, + subdir: 'sage/sat/solvers', + install: true, + include_directories: [], + dependencies: [py_dep, gmp], + ) +endforeach +