gplugin/gplugin

Merged in develop (pull request #5)
develop
2018-12-16, Gary Kramlich
bd7901188be1
Merged in develop (pull request #5)

Improve/simplify GIR building

Approved-by: Gary Kramlich
--- a/gplugin-gtk/gplugin-gtk-plugin-info.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin-gtk/gplugin-gtk-plugin-info.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GTK_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_GTK_COMPILATION)
#error "only <gplugin/gplugin-gtk.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_GTK_PLUGIN_INFO_H
#define GPLUGIN_GTK_PLUGIN_INFO_H
--- a/gplugin-gtk/gplugin-gtk-store.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin-gtk/gplugin-gtk-store.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GTK_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_GTK_COMPILATION)
#error "only <gplugin/gplugin-gtk.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_GTK_STORE_H
#define GPLUGIN_GTK_STORE_H
--- a/gplugin-gtk/gplugin-gtk-view.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin-gtk/gplugin-gtk-view.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GTK_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_GTK_COMPILATION)
#error "only <gplugin/gplugin-gtk.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_GTK_VIEW_H
#define GPLUGIN_GTK_VIEW_H
--- a/gplugin-gtk/meson.build Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin-gtk/meson.build Sun Dec 16 06:58:00 2018 +0000
@@ -123,7 +123,8 @@
namespace : 'GPluginGtk',
symbol_prefix : 'gplugin_gtk',
nsversion : '@0@.0'.format(GPLUGIN_MAJOR_VERSION),
- install : true)
+ install : true,
+ extra_args : ['--quiet', '-DGPLUGIN_GTK_COMPILATION'])
endif
###############################################################################
--- a/gplugin/gplugin-core.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-core.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_CORE_H
#define GPLUGIN_CORE_H
--- a/gplugin/gplugin-loader.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-loader.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_LOADER_H
#define GPLUGIN_LOADER_H
--- a/gplugin/gplugin-manager.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-manager.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_MANAGER_H
#define GPLUGIN_MANAGER_H
--- a/gplugin/gplugin-native-loader.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-native-loader.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> or <gplugin-native.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_NATIVE_LOADER_H
#define GPLUGIN_NATIVE_LOADER_H
--- a/gplugin/gplugin-native-plugin.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-native-plugin.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> or <gplugin-native.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_NATIVE_PLUGIN_H
#define GPLUGIN_NATIVE_PLUGIN_H
--- a/gplugin/gplugin-native-private.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-native-private.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin-native.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_NATIVE_PRIVATE_H
#define GPLUGIN_NATIVE_PRIVATE_H
--- a/gplugin/gplugin-options.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-options.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_OPTIONS_H
#define GPLUGIN_OPTIONS_H
--- a/gplugin/gplugin-plugin-info.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-plugin-info.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_PLUGIN_INFO_H
#define GPLUGIN_PLUGIN_INFO_H
--- a/gplugin/gplugin-plugin.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-plugin.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_PLUGIN_H
#define GPLUGIN_PLUGIN_H
--- a/gplugin/gplugin-private.h Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-private.h Sun Dec 16 06:58:00 2018 +0000
@@ -15,11 +15,9 @@
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_PRIVATE_H
#define GPLUGIN_PRIVATE_H
--- a/gplugin/gplugin-version.h.in Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/gplugin-version.h.in Sun Dec 16 06:58:00 2018 +0000
@@ -14,11 +14,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef __GI_SCANNER__ /* hide this bit from g-ir-scanner */
+
#if !defined(GPLUGIN_GLOBAL_HEADER_INSIDE) && !defined(GPLUGIN_COMPILATION)
#error "only <gplugin.h> may be included directly"
#endif
-#endif /* __GI_SCANNER__ */
#ifndef GPLUGIN_VERSION_H
#define GPLUGIN_VERSION_H
--- a/gplugin/meson.build Sat Dec 15 02:47:49 2018 -0600
+++ b/gplugin/meson.build Sun Dec 16 06:58:00 2018 +0000
@@ -259,7 +259,8 @@
namespace : 'GPlugin',
symbol_prefix : 'gplugin',
nsversion : '@0@.0'.format(GPLUGIN_MAJOR_VERSION),
- install : true)
+ install : true,
+ extra_args : ['--quiet', '-DGPLUGIN_COMPILATION'])
endif
###############################################################################