[tepl/master.msvc: 5/9] tepl/meson.build: Use _TEPL_EXTERN in enumeration sources



commit 353d5ed2148b4a6fa8a0ac50875fec4bd176dc29
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Apr 28 16:59:40 2020 +0800

    tepl/meson.build: Use _TEPL_EXTERN in enumeration sources
    
    Use the 'header_prefix' and 'decorator' arguments to gnome.mkenums_simple()
    so that we can use glib-mkenums to generate tepl-enum-types.h that
    includes tepl-macros.h and have the symbols marked with _TEPL_EXTERN.

 tepl/meson.build | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/tepl/meson.build b/tepl/meson.build
index 58e07f4..c554961 100644
--- a/tepl/meson.build
+++ b/tepl/meson.build
@@ -97,6 +97,8 @@ install_headers(
 
 tepl_enum_types = GNOME.mkenums_simple(
   'tepl-enum-types',
+  decorator: '_TEPL_EXTERN',
+  header_prefix: '#include <tepl/tepl-macros.h>',
   sources: tepl_public_headers,
   install_header: true,
   install_dir: headers_install_dir


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