Merge pull request #4210 from techee/doc_filter
[geany-mirror.git] / plugins / meson.build
blobd292f25f959de58aecf7a5a37a431da461dc6c92
1 plugin_inc = [include_directories('..', '../src', '../src/tagmanager')]
2 plugin_inc += iscintilla
4 plugins = [
5         'Demoplugin',
6         'Demopluginext',
7         'Demoproxy',
8         'Classbuilder',
9         'HTMLChars',
10         'Export',
11         'SaveActions',
12         'FileBrowser',
13         'SplitWindow'
16 plugin_suffix = []
17 if (host_machine.system() == 'darwin')
18         plugin_suffix = 'so'  # use "so" instead of "dylib" so Geany finds plugins correctly
19 endif
21 foreach plugin : plugins
22         id = plugin.to_lower()
23         skip_install = id.startswith('demo')
24         shared_module(id,
25                 id + '.c',
26                 name_prefix: '', # "lib" seems to be the default prefix
27                 name_suffix: plugin_suffix,
28                 link_with: libgeany,
29                 include_directories: plugin_inc,
30                 c_args: [def_cflags, '-DG_LOG_DOMAIN="'+plugin+'"'],
31                 dependencies: [deps, dep_libgeany],
32                 install_dir: join_paths(prefix, get_option('libdir'), 'geany'),
33                 install: not skip_install
34         )
35 endforeach