From 7c438777c13f56574163b02309644ad96f34c029 Mon Sep 17 00:00:00 2001 From: Seung Hyun Kim Date: Fri, 12 Jul 2024 00:22:58 -0500 Subject: [PATCH] pybind: add PyTags --- backend/meson.build | 5 ++++- backend/src/meson.build | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/backend/meson.build b/backend/meson.build index dc97db5f..6ef884f5 100644 --- a/backend/meson.build +++ b/backend/meson.build @@ -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') @@ -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') diff --git a/backend/src/meson.build b/backend/src/meson.build index fcbda76b..9e8a52a2 100644 --- a/backend/src/meson.build +++ b/backend/src/meson.build @@ -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, +)