[gtk/gtk-3-24-meson: 40/95] meson: Build libgail-util
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24-meson: 40/95] meson: Build libgail-util
- Date: Thu, 11 Apr 2019 14:54:46 +0000 (UTC)
commit 7586e8820446b72af57ef0838abf3cc49d840084
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Mar 25 18:01:24 2019 +0800
meson: Build libgail-util
This adds libgail-util to the build process.
libgail-util/meson.build | 29 +++++++++++++++++++++++++++++
meson.build | 1 +
2 files changed, 30 insertions(+)
---
diff --git a/libgail-util/meson.build b/libgail-util/meson.build
new file mode 100644
index 0000000000..2b7828e724
--- /dev/null
+++ b/libgail-util/meson.build
@@ -0,0 +1,29 @@
+gailutil_sources = files(
+ 'gailmisc.c',
+ 'gailtextutil.c',
+)
+
+gailutil_public_headers = files(
+ 'gailmisc.h',
+ 'gailtextutil.h',
+ 'gail-util.h',
+ )
+
+install_headers(gailutil_public_headers, subdir : 'gail-3.0/libgail-util')
+
+gailutil_link_args = common_ldflags
+
+if cc.get_id() == 'msvc'
+ gailutil_link_args += '-def:@0@/gailutil.def'.format(meson.current_source_dir())
+endif
+
+libgailutil = shared_library('gailutil-3',
+ sources: [gailutil_sources],
+ dependencies: libgtk_dep,
+ include_directories: [confinc, gtkinc],
+ c_args: [
+ '-DGDK_DISABLE_DEPRECATED',
+ '-DGTK_DISABLE_DEPRECATED',
+ ] + common_cflags,
+ link_args: gailutil_link_args,
+ install: true)
\ No newline at end of file
diff --git a/meson.build b/meson.build
index 7466347d3f..8646f8f9a7 100644
--- a/meson.build
+++ b/meson.build
@@ -722,6 +722,7 @@ build_gir = get_option('introspection')
subdir('gdk')
subdir('gtk')
subdir('modules')
+subdir('libgail-util')
if get_option('demos')
subdir('demos')
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]