feat(python): added python bindings
This commit is contained in:
@@ -1,4 +1,20 @@
|
||||
subdir('mfem')
|
||||
subdir('libconfig')
|
||||
subdir('CLI11')
|
||||
subdir('magic_enum')
|
||||
subdir('magic_enum')
|
||||
|
||||
if get_option('build_python')
|
||||
subdir('python')
|
||||
subdir('pybind')
|
||||
endif
|
||||
|
||||
if get_option('build_python')
|
||||
stroid_pkg_dir = py_installation.get_install_dir() / 'stroid'
|
||||
stroid_includedir = stroid_pkg_dir / 'include'
|
||||
stroid_libdir = stroid_pkg_dir / 'lib'
|
||||
stroid_pcdir = stroid_libdir / 'pkgconfig'
|
||||
else
|
||||
stroid_includedir = get_option('includedir')
|
||||
stroid_libdir = get_option('libdir')
|
||||
stroid_pcdir = get_option('libdir') / 'pkgconfig'
|
||||
endif
|
||||
3
build-config/pybind/meson.build
Normal file
3
build-config/pybind/meson.build
Normal file
@@ -0,0 +1,3 @@
|
||||
pybind11_proj = subproject('pybind11')
|
||||
pybind11_dep = pybind11_proj.get_variable('pybind11_dep')
|
||||
python3_dep = dependency('python3')
|
||||
5
build-config/python/meson.build
Normal file
5
build-config/python/meson.build
Normal file
@@ -0,0 +1,5 @@
|
||||
py_installation = import('python').find_installation('python3', pure: false)
|
||||
|
||||
py_dep = py_installation.dependency()
|
||||
py_module_prefix = ''
|
||||
py_module_suffix = 'so'
|
||||
Reference in New Issue
Block a user