aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 38f78d7..e5290f8 100644
--- a/meson.build
+++ b/meson.build
@@ -21,4 +21,13 @@ add_project_arguments(
cjson_dep = dependency('libcjson')
evanix_inc = include_directories('include')
+if get_option('build-python')
+ py = import('python').find_installation()
+ py.extension_module(
+ 'evanix',
+ 'src/evanix-py.c',
+ install: true,
+ )
+endif
+
subdir('src')