gplugin/gplugin

Fix loader-registration build on Windows

6 months ago, Elliott Sales de Andrade
855520bce434
Parents 199dc0cfccfb
Children 142bb3bce8b9
Fix loader-registration build on Windows

This test uses internal API, so it needs to directly use the sources and not the shared library.

Testing Done:
Build on Linux and Windows.

Reviewed at https://reviews.imfreedom.org/r/2666/
--- a/gplugin/tests/meson.build Tue Oct 17 01:04:39 2023 -0500
+++ b/gplugin/tests/meson.build Tue Oct 17 01:14:33 2023 -0500
@@ -30,7 +30,6 @@
'id-collision': ['id-collision'],
'id-normalize': [],
'loader': [],
- 'loader-registration': [],
'newest-version': ['newest-version'],
'option-group': [],
'plugin-manager-paths': [],
@@ -72,6 +71,18 @@
depends: depends)
endforeach
+# This test requires internal private API.
+e = executable('test-loader-registration', 'test-loader-registration.c',
+ dependencies: [
+ gplugin_dep.partial_dependency(compile_args: true,
+ includes: true,
+ sources: true),
+ GLIB,
+ GOBJECT,
+ GMODULE],
+ objects: gplugin.extract_all_objects(recursive: true))
+test('loader-registration', e)
+
#######################################
# Native Loader
#######################################