[pitivi] meson: Generate renderer.so on macOS instead of dylib
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] meson: Generate renderer.so on macOS instead of dylib
- Date: Wed, 29 Jan 2020 10:29:09 +0000 (UTC)
commit bcacadcafabf8911efb0fddc8d57329237d08cd1
Author: sprhawk <465558+sprhawk users noreply github com>
Date: Mon Feb 11 11:45:10 2019 +0800
meson: Generate renderer.so on macOS instead of dylib
meson.build | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/meson.build b/meson.build
index d55362fc..0885329f 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,5 @@
project('pitivi', 'c', version : '1.90.0.1', meson_version : '>= 0.41.0')
+host_system = host_machine.system()
python = find_program('python3')
@@ -53,10 +54,17 @@ cdata.set('GITVERSION', GITVERSION)
cdata.set('VERSION', meson.project_version())
cdata.set('BUILDDIR', meson.current_build_dir())
+module_suffix = []
+# Python cannot import default .dylib, changed suffix to .so instead
+if ['darwin', 'ios'].contains(host_system)
+ module_suffix = 'so'
+endif
+
coptimizations = shared_library('renderer',
'pitivi/coptimizations/renderer.c',
dependencies: [gst_dep, python_dep, pycairo_dep, cairo_dep],
name_prefix : '',
+ name_suffix: module_suffix,
install: true,
install_dir: get_option('libdir') + '/pitivi/python/pitivi/timeline')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]