Use the build system “meson” (close #32)
Replace the build system “setuptools” with “meson”.
This commit is contained in:
parent
ff0eee8380
commit
fac7a85566
37 changed files with 848 additions and 361 deletions
38
src/meson.build
Normal file
38
src/meson.build
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
||||
moduledir = join_paths(pkgdatadir, 'mcg')
|
||||
|
||||
python = import('python')
|
||||
|
||||
conf = configuration_data()
|
||||
conf.set('PYTHON', python.find_installation('python3').full_path())
|
||||
conf.set('VERSION', meson.project_version())
|
||||
conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir')))
|
||||
conf.set('pkgdatadir', pkgdatadir)
|
||||
|
||||
configure_file(
|
||||
input: 'mcg.in',
|
||||
output: 'mcg',
|
||||
configuration: conf,
|
||||
install: true,
|
||||
install_dir: get_option('bindir')
|
||||
)
|
||||
|
||||
mcg_sources = [
|
||||
'__init__.py',
|
||||
'main.py',
|
||||
'albumheaderbar.py',
|
||||
'application.py',
|
||||
'client.py',
|
||||
'connectionpanel.py',
|
||||
'coverpanel.py',
|
||||
'infodialog.py',
|
||||
'librarypanel.py',
|
||||
'playlistpanel.py',
|
||||
'serverpanel.py',
|
||||
'shortcutsdialog.py',
|
||||
'utils.py',
|
||||
'window.py',
|
||||
'zeroconf.py',
|
||||
]
|
||||
|
||||
install_data(mcg_sources, install_dir: moduledir)
|
||||
Loading…
Add table
Add a link
Reference in a new issue