Skip to content

Commit

Permalink
properly compile sat
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Nov 12, 2023
1 parent e4afb29 commit c0e6c59
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ no_processing = [
'parallel',
'repl',
'sandpiles',
'sat',
'tensor',
'topology',
'typeset',
Expand Down Expand Up @@ -79,3 +78,4 @@ subdir('stats')
subdir('symbolic')
subdir('tests')
subdir('dynamics')
subdir('sat')
8 changes: 8 additions & 0 deletions src/sage/sat/meson.build
Original file line number Diff line number Diff line change
@@ -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')
23 changes: 23 additions & 0 deletions src/sage/sat/solvers/meson.build
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c0e6c59

Please sign in to comment.