From be71bf80d290c98c0f6a66d3dcab28515b4ea371 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Fri, 4 Oct 2024 20:53:17 +0100 Subject: Initial commit --- src/meson.build | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/meson.build (limited to 'src/meson.build') diff --git a/src/meson.build b/src/meson.build new file mode 100644 index 0000000..3225adc --- /dev/null +++ b/src/meson.build @@ -0,0 +1,42 @@ +pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name() +moduledir = pkgdatadir / 'weegtk' +gnome = import('gnome') + +gnome.compile_resources('weegtk', + 'weegtk.gresource.xml', + gresource_bundle: true, + install: true, + install_dir: pkgdatadir, +) + +python = import('python') + +conf = configuration_data() +conf.set('PYTHON', python.find_installation('python3').full_path()) +conf.set('VERSION', meson.project_version()) +conf.set('localedir', get_option('prefix') / get_option('localedir')) +conf.set('pkgdatadir', pkgdatadir) + +configure_file( + input: 'weegtk.in', + output: 'weegtk', + configuration: conf, + install: true, + install_dir: get_option('bindir'), + install_mode: 'r-xr-xr-x' +) + +weegtk_sources = [ + '__init__.py', + 'main.py', + 'window.py', + 'config.py', + 'chat.py', + 'message.py', + 'preferences.py', + 'relay/network.py', + 'relay/protocol.py', + 'relay/color.py' +] + +install_data(weegtk_sources, install_dir: moduledir) -- cgit