gplugin/gplugin

Fix some issues with the gtk3 and gtk4 includes when not used in a subproject

Testing Done:
Ran the unit tests and gplugin-gtk4-viewer and verified no issues.

Bugs closed: GPLUGIN-145

Reviewed at https://reviews.imfreedom.org/r/1469/
if get_option('vapi')
if not get_option('introspection')
error('Vala generation requires GObject Introspection.')
endif
add_languages('vala', native: false)
gplugin_vapi = gnome.generate_vapi('gplugin',
sources : gplugin_gir[0],
install : true,
)
if get_option('gtk3')
gplugin_gtk3_vapi = gnome.generate_vapi('gplugin-gtk3',
sources : gplugin_gtk3_gir[0],
packages : [ 'gtk+-3.0' ],
install : true,
gir_dirs : meson.current_build_dir() / '..' / 'gplugin',
)
endif
if get_option('gtk4').allowed()
gplugin_gtk4_vapi = gnome.generate_vapi('gplugin-gtk4',
sources : gplugin_gtk4_gir[0],
packages : [ 'gtk4' ],
install : true,
gir_dirs : meson.current_build_dir() / '..' / 'gplugin',
)
endif
subdir('tests')
endif # vala