gplugin/gplugin

Fix the windows build for real this time

3 months ago, Gary Kramlich
7f400459dbe1
Fix the windows build for real this time

* Mark gplugin_introspection_introspect_plugin and
gplugin_introspection_introspect_plugins as internal as this is a static
library and that is how they should be marked.
* Use G_MODULE_EXPORT to export the G_DEFINE_FINAL_TYPE for IntrospectableType.
* Clean up the gplugin-introspection/tests/meson.build file bit as it's
already shortcut in gplugin-introspection/meson.build.

Testing Done:
Compiled from a clean build on Windows and Linux using `ninja turtles` on both.

Reviewed at https://reviews.imfreedom.org/r/3030/
if not get_option('install-gplugin-gtk4-viewer')
summary('gplugin-gtk4-viewer',
'You have disabled installation of gplugin-gtk4-viewer which is a ' +
'very useful diagnostics tool.',
section : 'Warnings')
endif
gplugin_gtk4_viewer_resources = gnome.compile_resources(
'gplugin-gtk-viewer-resources',
'data/gplugin-gtk-viewer.gresource.xml',
c_name: 'gplugin_gtk_viewer',
source_dir: 'data')
gplugin_gtk4_viewer = executable('gplugin-gtk4-viewer',
'gplugin-gtk-viewer.c',
'gplugin-gtk-viewer-window.c',
gplugin_gtk4_viewer_resources,
dependencies : [gplugin_dep, gplugin_gtk4_dep],
win_subsystem : 'windows',
install : get_option('install-gplugin-gtk4-viewer')
)
if get_option('help2man')
custom_target('gplugin-gtk4-viewer.1',
command : [help2man,
'--name=View installed plugins', '--section=1',
'--help-option=--help-all', '--no-info',
'--output', '@OUTPUT@',
gplugin_gtk4_viewer],
output : 'gplugin-gtk4-viewer.1',
install : get_option('install-gplugin-gtk4-viewer'),
install_dir : get_option('mandir') / 'man1')
endif