diff options
author | saturneric <[email protected]> | 2023-10-15 19:47:52 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-15 19:47:52 +0000 |
commit | 7c21fdd97132e63572a6aca6fa0492d2ce74e777 (patch) | |
tree | b60d1a9bb98e44fa1c8e0cce8ab6d56592e32706 /src/plugin/sdk/GpgFrontendPluginSDKExport.h | |
parent | fix: update screenshot of appstream (diff) | |
download | GpgFrontend-7c21fdd97132e63572a6aca6fa0492d2ce74e777.tar.gz GpgFrontend-7c21fdd97132e63572a6aca6fa0492d2ce74e777.zip |
feat: start to add plugin system and do some improve on project configuration
Diffstat (limited to 'src/plugin/sdk/GpgFrontendPluginSDKExport.h')
-rw-r--r-- | src/plugin/sdk/GpgFrontendPluginSDKExport.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/plugin/sdk/GpgFrontendPluginSDKExport.h b/src/plugin/sdk/GpgFrontendPluginSDKExport.h new file mode 100644 index 00000000..8e508e35 --- /dev/null +++ b/src/plugin/sdk/GpgFrontendPluginSDKExport.h @@ -0,0 +1,42 @@ + +#ifndef GPGFRONTEND_PLUGIN_SDK_EXPORT_H +#define GPGFRONTEND_PLUGIN_SDK_EXPORT_H + +#ifdef GPGFRONTEND_PLUGIN_SDK_STATIC_DEFINE +# define GPGFRONTEND_PLUGIN_SDK_EXPORT +# define GPGFRONTEND_PLUGIN_SDK_NO_EXPORT +#else +# ifndef GPGFRONTEND_PLUGIN_SDK_EXPORT +# ifdef gpgfrontend_plugin_sdk_EXPORTS + /* We are building this library */ +# define GPGFRONTEND_PLUGIN_SDK_EXPORT __attribute__((visibility("default"))) +# else + /* We are using this library */ +# define GPGFRONTEND_PLUGIN_SDK_EXPORT __attribute__((visibility("default"))) +# endif +# endif + +# ifndef GPGFRONTEND_PLUGIN_SDK_NO_EXPORT +# define GPGFRONTEND_PLUGIN_SDK_NO_EXPORT __attribute__((visibility("hidden"))) +# endif +#endif + +#ifndef GPGFRONTEND_PLUGIN_SDK_DEPRECATED +# define GPGFRONTEND_PLUGIN_SDK_DEPRECATED __attribute__ ((__deprecated__)) +#endif + +#ifndef GPGFRONTEND_PLUGIN_SDK_DEPRECATED_EXPORT +# define GPGFRONTEND_PLUGIN_SDK_DEPRECATED_EXPORT GPGFRONTEND_PLUGIN_SDK_EXPORT GPGFRONTEND_PLUGIN_SDK_DEPRECATED +#endif + +#ifndef GPGFRONTEND_PLUGIN_SDK_DEPRECATED_NO_EXPORT +# define GPGFRONTEND_PLUGIN_SDK_DEPRECATED_NO_EXPORT GPGFRONTEND_PLUGIN_SDK_NO_EXPORT GPGFRONTEND_PLUGIN_SDK_DEPRECATED +#endif + +#if 0 /* DEFINE_NO_DEPRECATED */ +# ifndef GPGFRONTEND_PLUGIN_SDK_NO_DEPRECATED +# define GPGFRONTEND_PLUGIN_SDK_NO_DEPRECATED +# endif +#endif + +#endif /* GPGFRONTEND_PLUGIN_SDK_EXPORT_H */ |