diff options
author | zhuyaliang <[email protected]> | 2023-07-21 11:05:03 +0800 |
---|---|---|
committer | zhuyaliang <[email protected]> | 2023-07-21 11:05:03 +0800 |
commit | 6b49a8c0d49deae5d079a342b4843f8dcb856410 (patch) | |
tree | 38b635fadad4ecb7deaebf46329e6b18a73836c2 /maximus | |
parent | d39bd997538bcae87637a8f98f67296bd622b3e5 (diff) | |
download | mate-netbook-meson.tar.bz2 mate-netbook-meson.tar.xz |
Add meson compilation supportmeson
Diffstat (limited to 'maximus')
-rw-r--r-- | maximus/maximus-bind.c | 3 | ||||
-rw-r--r-- | maximus/meson.build | 39 |
2 files changed, 42 insertions, 0 deletions
diff --git a/maximus/maximus-bind.c b/maximus/maximus-bind.c index cb4b860..893e889 100644 --- a/maximus/maximus-bind.c +++ b/maximus/maximus-bind.c @@ -18,6 +18,9 @@ * */ +#if HAVE_CONFIG_H +#include <config.h> +#endif #include <stdio.h> #include <string.h> diff --git a/maximus/meson.build b/maximus/meson.build new file mode 100644 index 0000000..349942c --- /dev/null +++ b/maximus/meson.build @@ -0,0 +1,39 @@ +man1_dir = join_paths(maximus_mandir, 'man1') + +maximus_sources = [ + 'eggaccelerators.c', + 'main.c', + 'maximus-app.c', + 'maximus-bind.c', + 'tomboykeybinder.c', + 'xutils.c' +] + +executable('mate-maximus', maximus_sources, + include_directories: config_inc, + dependencies: netbook_deps, + install: true) + +# man files + +install_data('mate-maximus.1', + install_dir : man1_dir +) + +# autostart file + +install_data('mate-maximus-autostart.desktop', +install_dir: join_paths(get_option('prefix'), 'etc', 'xdg', 'autostart') +) + +# .gschema file + +schema_data = configuration_data() +schema_data.set('GETTEXT_PACKAGE', meson.project_name()) +configure_file( + input : 'org.mate.maximus.gschema.xml.in', + output : 'org.mate.maximus.gschema.xml', + configuration : schema_data, + install : true, + install_dir : join_paths(datadir, 'glib-2.0', 'schemas') +) |