Skip to content

Commit

Permalink
pybind: add PyTags
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Jul 12, 2024
1 parent ed8124e commit 7c43877
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ project(
default_options: ['cpp_std=c++14'],
)

add_global_arguments(['-Wno-unused'],
language: 'cpp')

package = 'elasticapp'

cc = meson.get_compiler('cpp')
Expand Down Expand Up @@ -75,7 +78,7 @@ deps_lib_dirs = [deps_installed / 'lib']
# The strategy for the below required dependencies are as follows
# - First, meson tries to resolve the dependency by searching on the system
# - if it doesn't find it, it fallbacks to the subproject wrap system or the
# ones installed in ./buildscripts
# ones installed in ./buildscripts

blaze_dep = dependency('blaze')
blaze_tensor_dep = dependency('BlazeTensor')
Expand Down
12 changes: 12 additions & 0 deletions backend/src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,15 @@ _PyArrays = py.extension_module(
install: true,
subdir: package,
)

_PyTags = py.extension_module(
'_PyTags',
sources: [
'Systems/Python/Bindings.cpp',
'Systems/Python/BindTags.cpp',
],
dependencies: [py_dep, pybind11_dep] + blaze_deps,
link_language: 'cpp',
install: true,
subdir: package,
)

0 comments on commit 7c43877

Please sign in to comment.