xref: /aosp_15_r20/external/libtraceevent/plugins/meson.build (revision 436bf2bcd5202612ffffe471bbcc1f277cc8d28e)
1# SPDX-License-Identifier: LGPL-2.1
2#
3# Copyright (c) 2023 Daniel Wagner, SUSE LLC
4
5plugins = [
6    'plugin_cfg80211.c',
7    'plugin_function.c',
8    'plugin_futex.c',
9    'plugin_hrtimer.c',
10    'plugin_jbd2.c',
11    'plugin_kmem.c',
12    'plugin_kvm.c',
13    'plugin_mac80211.c',
14    'plugin_sched_switch.c',
15    'plugin_scsi.c',
16    'plugin_tlb.c',
17    'plugin_xen.c',
18]
19
20pdeps = []
21foreach plugin : plugins
22    pdeps += shared_module(
23        plugin.replace('.c', ''),
24        plugin,
25        name_prefix: '',
26        dependencies: [libtraceevent_dep],
27        include_directories: [incdir],
28        install: true,
29        install_dir: plugindir)
30endforeach
31
32# perf needs the exported symbol list
33dynamic_list_file = find_program('dynamic_list.sh')
34custom_target(
35    'dynamic_list',
36    depends: pdeps,
37    input: pdeps,
38    output: 'libtraceevent-dynamic-list',
39    command: [dynamic_list_file, '@INPUT@'],
40    capture: true,
41    build_by_default: true,
42    install: true,
43    install_dir: plugindir)
44