[tepl/master.msvc: 5/7] tepl/meson.build: Use _TEPL_API in enumeration sources
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tepl/master.msvc: 5/7] tepl/meson.build: Use _TEPL_API in enumeration sources
- Date: Tue, 28 Apr 2020 09:20:19 +0000 (UTC)
commit 74bc98f24e2ffa6ed057444ce198403f1225b06c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Apr 28 16:59:40 2020 +0800
tepl/meson.build: Use _TEPL_API 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_API.
tepl/meson.build | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/tepl/meson.build b/tepl/meson.build
index 5b51b2d..b905e71 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_API',
+ 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]