[glade/glade-3-36.msvc: 9/18] gladeui: Add glade-macros.h



commit 711567dcca87d426e27df7a88c76bdd0276b2c5c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jun 3 19:04:25 2020 +0800

    gladeui: Add glade-macros.h
    
    This is a public header that prepares to decorate the public APIs with
    GLADEUI_EXPORTS so that we can use this later to export the symbols when
    we build the gladeui library on compilers that do not support exporting
    automatically nor by regex, such as Visual Studio.

 gladeui/Makefile.am    | 1 +
 gladeui/glade-macros.h | 8 ++++++++
 gladeui/meson.build    | 1 +
 3 files changed, 10 insertions(+)
---
diff --git a/gladeui/Makefile.am b/gladeui/Makefile.am
index a650addc..c885f3d7 100644
--- a/gladeui/Makefile.am
+++ b/gladeui/Makefile.am
@@ -173,6 +173,7 @@ libgladeuiinclude_HEADERS = \
        glade-editor-skeleton.h \
        glade-editor-table.h \
        glade-inspector.h \
+       glade-macros.h \
        glade-name-context.h \
        glade-palette.h \
        glade-placeholder.h \
diff --git a/gladeui/glade-macros.h b/gladeui/glade-macros.h
new file mode 100644
index 00000000..cbcf4a37
--- /dev/null
+++ b/gladeui/glade-macros.h
@@ -0,0 +1,8 @@
+#ifndef __GLADE_MACROS_H__
+#define __GLADE_MACROS_H__
+
+#ifndef GLADEUI_EXPORTS
+# define GLADEUI_EXPORTS
+#endif
+
+#endif
\ No newline at end of file
diff --git a/gladeui/meson.build b/gladeui/meson.build
index 94324efe..b9555b9e 100644
--- a/gladeui/meson.build
+++ b/gladeui/meson.build
@@ -37,6 +37,7 @@ headers = files(
   'glade-editor-skeleton.h',
   'glade-editor-table.h',
   'glade-inspector.h',
+  'glade-macros.h',
   'glade-name-context.h',
   'glade-palette.h',
   'glade-placeholder.h',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]