diff options
author | David Robillard <d@drobilla.net> | 2022-08-31 18:30:11 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-31 18:30:11 -0400 |
commit | 6594c7c90901bb027b288363b8830d724581fbc3 (patch) | |
tree | baf8c57c8cdd7f521d9cd5fb9ba73d55d144a3d1 /plugins/eg-scope.lv2/meson.build | |
parent | 4a4c7cbaa444295b340c912e0f4a203b05be1fe8 (diff) | |
download | lv2-6594c7c90901bb027b288363b8830d724581fbc3.tar.xz |
Fix missing example plugin UI binaries
Diffstat (limited to 'plugins/eg-scope.lv2/meson.build')
-rw-r--r-- | plugins/eg-scope.lv2/meson.build | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/eg-scope.lv2/meson.build b/plugins/eg-scope.lv2/meson.build index ecf01b2..1b66699 100644 --- a/plugins/eg-scope.lv2/meson.build +++ b/plugins/eg-scope.lv2/meson.build @@ -2,9 +2,15 @@ # SPDX-License-Identifier: CC0-1.0 OR ISC plugin_sources = files('examploscope.c') +ui_sources = files('examploscope_ui.c') bundle_name = 'eg-scope.lv2' data_filenames = ['manifest.ttl.in', 'examploscope.ttl.in'] +gtk2_dep = dependency('gtk+-2.0', + include_type: 'system', + required: get_option('plugins'), + version: '>= 2.18.0') + module = shared_library( 'examploscope', plugin_sources, @@ -39,3 +45,16 @@ foreach filename : data_filenames ) endif endforeach + +if gtk2_dep.found() + shared_library( + 'examploscope_ui', + ui_sources, + c_args: c_suppressions, + dependencies: [lv2_dep, gtk2_dep], + gnu_symbol_visibility: 'hidden', + install: true, + install_dir: lv2dir / bundle_name, + name_prefix: '', + ) +endif |