summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorPaolo Bonzini2020-01-24 13:08:01 +0100
committerPaolo Bonzini2020-08-21 12:30:39 +0200
commitf556b4a10d3ccd6cad01f704e4ccb2252520d61e (patch)
tree3d9ee5e77ee2b2b193fe9ca7f785bc268c3c8f1c /plugins
parentmeson: cpu-emu (diff)
downloadqemu-f556b4a10d3ccd6cad01f704e4ccb2252520d61e.tar.gz
qemu-f556b4a10d3ccd6cad01f704e4ccb2252520d61e.tar.xz
qemu-f556b4a10d3ccd6cad01f704e4ccb2252520d61e.zip
meson: plugins
For now link arguments end up in Makefile.target, they will move to the right place soon. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Makefile.objs21
-rw-r--r--plugins/meson.build5
2 files changed, 5 insertions, 21 deletions
diff --git a/plugins/Makefile.objs b/plugins/Makefile.objs
deleted file mode 100644
index 6f14d91ccb..0000000000
--- a/plugins/Makefile.objs
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# Plugin Support
-#
-
-obj-y += loader.o
-obj-y += core.o
-obj-y += api.o
-
-# Abuse -libs suffix to only link with --dynamic-list/-exported_symbols_list
-# when the final binary includes the plugin object.
-#
-# Note that simply setting LDFLAGS is not enough: we build binaries that
-# never link plugin.o, and the linker might fail (at least ld64 does)
-# if the symbols in the list are not in the output binary.
-ifdef CONFIG_HAS_LD_DYNAMIC_LIST
-api.o-libs := -Wl,--dynamic-list=$(BUILD_DIR)/qemu-plugins-ld.symbols
-else
-ifdef CONFIG_HAS_LD_EXPORTED_SYMBOLS_LIST
-api.o-libs := -Wl,-exported_symbols_list,$(BUILD_DIR)/qemu-plugins-ld64.symbols
-endif
-endif
diff --git a/plugins/meson.build b/plugins/meson.build
new file mode 100644
index 0000000000..9608e5293f
--- /dev/null
+++ b/plugins/meson.build
@@ -0,0 +1,5 @@
+specific_ss.add(when: 'CONFIG_PLUGIN', if_true: [files(
+ 'loader.c',
+ 'core.c',
+ 'api.c',
+)])