summaryrefslogtreecommitdiff
path: root/libgail-util/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'libgail-util/meson.build')
-rw-r--r--libgail-util/meson.build29
1 files changed, 29 insertions, 0 deletions
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