gplugin/gplugin

7027845d098d
Make sure gtk4 was found before trying to build vala bindings against it

This error only showed up when gtk4 was enabled but not found.

Testing Done:
Built on haiku that doesn't have gtk without setting `-Dgtk4=false`.
Built on debian testing normally.

Reviewed at https://reviews.imfreedom.org/r/3069/
/*
* Copyright (C) 2011-2021 Gary Kramlich <grim@reaperworld.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <https://www.gnu.org/licenses/>.
*/
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> may be included directly"
#endif
#ifndef GPLUGIN_PLUGIN_INFO_H
#define GPLUGIN_PLUGIN_INFO_H
#include <glib.h>
#include <glib-object.h>
#include <gplugin/gplugin-version.h>
G_BEGIN_DECLS
#define GPLUGIN_TYPE_PLUGIN_INFO (gplugin_plugin_info_get_type())
GPLUGIN_AVAILABLE_IN_ALL
G_DECLARE_DERIVABLE_TYPE(
GPluginPluginInfo,
gplugin_plugin_info,
GPLUGIN,
PLUGIN_INFO,
GObject)
#include <gplugin/gplugin-loader.h>
struct _GPluginPluginInfoClass {
/*< private >*/
GObjectClass parent;
gpointer reserved[4];
};
/* clang-format off */
#define gplugin_plugin_info_new(id, abi_version, ...) \
GPLUGIN_PLUGIN_INFO(g_object_new( \
GPLUGIN_TYPE_PLUGIN_INFO, \
"id", (id), \
"abi-version", (abi_version), \
__VA_ARGS__))
/* clang-format on */
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_id(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
gchar *gplugin_plugin_info_get_id_normalized(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_0_32
const gchar *const *gplugin_plugin_info_get_provides(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
gint gplugin_plugin_info_get_priority(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
guint32 gplugin_plugin_info_get_abi_version(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
gboolean gplugin_plugin_info_get_internal(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_0_39
gboolean gplugin_plugin_info_get_auto_load(GPluginPluginInfo *info);
GPLUGIN_DEPRECATED_IN_0_39_FOR(gplugin_plugin_info_get_auto_load)
gboolean gplugin_plugin_info_get_load_on_query(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_name(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_version(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_0_39
const gchar *gplugin_plugin_info_get_settings_schema(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_license_id(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_license_text(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_license_url(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_icon_name(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_summary(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_description(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_category(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *const *gplugin_plugin_info_get_authors(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *gplugin_plugin_info_get_website(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
const gchar *const *gplugin_plugin_info_get_dependencies(
GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_ALL
gboolean gplugin_plugin_info_get_bind_global(GPluginPluginInfo *info);
GPLUGIN_AVAILABLE_IN_0_35
gboolean gplugin_plugin_info_get_unloadable(GPluginPluginInfo *info);
G_END_DECLS
#endif /* GPLUGIN_PLUGIN_INFO_H */