diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-03-25 17:33:03 +0800 |
---|---|---|
committer | Christoph Reiter <creiter@src.gnome.org> | 2019-04-11 16:45:36 +0200 |
commit | 5e8edec25434f475dbca04eba84fc621810e7c37 (patch) | |
tree | 8a97e0fa2418d5a4cc45c22023c54985881256c6 /modules | |
parent | 6b079afa0a6da583ce7918614cbb3b94724ae0e7 (diff) | |
download | gtk+-5e8edec25434f475dbca04eba84fc621810e7c37.tar.gz |
meson: Build the input modules
Build the input modules for GTK+, either as modules or built directly
into GTK. Also provide a configure option to build the specified
immodules, or all, or the backend immodule(s) or none of the immodules
into GTK. Note that for Visual Studio all immodules are built into
the GTK DLL by default, like what is done in the Visual Studio projects.
Note that building the backend immodules for Quartz, X11 and Wayland are
currently untested.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/input/meson.build | 27 | ||||
-rw-r--r-- | modules/meson.build | 2 |
2 files changed, 28 insertions, 1 deletions
diff --git a/modules/input/meson.build b/modules/input/meson.build new file mode 100644 index 0000000000..5d9fd5529b --- /dev/null +++ b/modules/input/meson.build @@ -0,0 +1,27 @@ + +# Note: the list of immodules is in $(srcroot)/meson.build! + +foreach l: immodules + name = l[0] + sources = l[1] + cond = l.get(2, true) + cflags = l.get(3, []) + immod_sources = [] + + # Only get the filename without modules/input + foreach s: sources + immod_sources += s.split('/')[2] + endforeach + + if cond and not (builtin_immodules.contains(name) or builtin_all_immodules) + immodules_cflags += cflags + + shared_module('im-@0@'.format(name), + immod_sources, + c_args: common_cflags + immodules_cflags, + dependencies: [ libgtk_dep ], + install_dir: '@0@/gtk-@1@/@2@/immodules/'.format(gtk_libdir, gtk_api_version, gtk_binary_version), + include_directories: [confinc, gtkinc], + install : true) + endif +endforeach
\ No newline at end of file diff --git a/modules/meson.build b/modules/meson.build index 9779ee6ae8..e4b4b7905b 100644 --- a/modules/meson.build +++ b/modules/meson.build @@ -5,4 +5,4 @@ print_backends = [] #endif -#subdir('input') +subdir('input') |