]> git.proxmox.com Git - mirror_qemu.git/blame - plugins/meson.build
target/hppa: Extract diagnose immediate value
[mirror_qemu.git] / plugins / meson.build
CommitLineData
b906acac
PB
1plugin_ldflags = []
2# Modules need more symbols than just those in plugins/qemu-plugins.symbols
3if not enable_modules
37650689 4 if targetos == 'darwin'
e3af71e9 5 configure_file(
37650689
PB
6 input: files('qemu-plugins.symbols'),
7 output: 'qemu-plugins-ld64.symbols',
8 capture: true,
9 command: ['sed', '-ne', 's/^[[:space:]]*\\(qemu_.*\\);/_\\1/p', '@INPUT@'])
10 plugin_ldflags = ['-Wl,-exported_symbols_list,plugins/qemu-plugins-ld64.symbols']
11 else
12 plugin_ldflags = ['-Xlinker', '--dynamic-list=' + (meson.project_source_root() / 'plugins/qemu-plugins.symbols')]
b906acac 13 endif
64ed6f92
PB
14endif
15
2c13c574
PB
16if get_option('plugins')
17 specific_ss.add(files(
18 'loader.c',
19 'core.c',
20 'api.c',
21 ), declare_dependency(link_args: plugin_ldflags))
22endif