[devhelp] meson: build enum types
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] meson: build enum types
- Date: Sun, 11 Mar 2018 17:49:26 +0000 (UTC)
commit 72b50c005885f55aab3ef1b74c0859dbd43eb454
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Mar 11 10:43:23 2018 +0100
meson: build enum types
devhelp/meson.build | 15 +++++++++++++--
meson.build | 2 ++
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/devhelp/meson.build b/devhelp/meson.build
index efef5d9..5c3839d 100644
--- a/devhelp/meson.build
+++ b/devhelp/meson.build
@@ -39,14 +39,25 @@ libdevhelp_private_c_files = [
'dh-util-lib.c'
]
+install_headers_subdir = 'devhelp-@0@/devhelp'.format(DEVHELP_API_VERSION)
+install_headers_fulldir = join_paths(get_option('prefix'),
+ get_option('includedir'),
+ install_headers_subdir)
+
+libdevhelp_enums = GNOME.mkenums_simple('dh-enum-types',
+ sources : libdevhelp_public_headers,
+ install_header : true,
+ install_dir : install_headers_fulldir)
+
library('devhelp-@0@'.format(DEVHELP_API_VERSION),
[libdevhelp_public_headers,
libdevhelp_public_c_files,
libdevhelp_private_headers,
- libdevhelp_private_c_files],
+ libdevhelp_private_c_files,
+ libdevhelp_enums],
dependencies : DEVHELP_DEPS,
include_directories : [CONFIG_H_INCLUDE_DIR, ROOT_INCLUDE_DIR],
install : true)
install_headers(libdevhelp_public_headers,
- subdir : 'devhelp-@0@/devhelp'.format(DEVHELP_API_VERSION))
+ subdir : install_headers_subdir)
diff --git a/meson.build b/meson.build
index e2eb1f3..b9b420c 100644
--- a/meson.build
+++ b/meson.build
@@ -7,6 +7,8 @@ project('devhelp', 'c',
meson_version : '>= 0.43',
version : '3.28.1')
+GNOME = import('gnome')
+
# API version, used for parallel installability.
DEVHELP_API_VERSION = '3'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]