diff options
author | Wu Xiaotian <[email protected]> | 2019-05-11 00:42:21 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-05-21 09:16:57 +0200 |
commit | d98d60a74976e544c2a844f41dd00db9d9ac999a (patch) | |
tree | 8de0408116be4acb09c0769132c25c4c2c71aac2 /Mozo | |
parent | 2beed2049f2822066eb2c571aa289f7a2a9f2dc5 (diff) | |
download | mozo-d98d60a74976e544c2a844f41dd00db9d9ac999a.tar.bz2 mozo-d98d60a74976e544c2a844f41dd00db9d9ac999a.tar.xz |
use meson to build
Diffstat (limited to 'Mozo')
-rw-r--r-- | Mozo/meson.build | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Mozo/meson.build b/Mozo/meson.build new file mode 100644 index 0000000..6dbd12e --- /dev/null +++ b/Mozo/meson.build @@ -0,0 +1,27 @@ +config_py = configuration_data() +config_py.set('prefix', prefix) +config_py.set('datadir', datadir) +config_py.set('pkgdatadir', join_paths(datadir, meson.project_name())) +config_py.set('PACKAGE', meson.project_name()) +config_py.set('VERSION', meson.project_version()) +config_py.set('GETTEXT_PACKAGE', meson.project_name()) + +config = configure_file( + input: 'config.py.in', + output: 'config.py', + configuration: config_py, + ) + +mozo_sources = [ + config, + '__init__.py', + 'MainWindow.py', + 'MenuEditor.py', + 'util.py', +] + +py_inst = python.find_installation('python3') +py_inst.install_sources(mozo_sources, + pure: true, + subdir: 'Mozo' + ) |