lutris/meson.build
Devilish Spirits 841ae28701 Created basic meson.build config
Python files are installed into `$DESTDIR/lib/lutris`
	Scripts in `/bin` have been edited to search **ALL** module inside this dir
	Datas are also searched in `</lib/lutris>/../../share/lutris`, this allow weird DESTDIR like `/tmp/lutris` (tested)
	Now Lutris assume that libdir is located in `<bindir>/../lib`

	This is minimalist right now and should work for everyone
2019-08-05 19:02:01 -07:00

15 lines
644 B
Meson

project('lutris')
pymod = import('python')
# Checking for Python
python = pymod.find_installation('python3', required: true, modules: ['yaml', 'gi', 'evdev', 'requests'])
python_version = python.language_version()
python_version_min = '>=3.4'
if not python_version.version_compare(python_version_min)
error('Python @0@ required, found Python @1@.'.format(python_version_min, python_version))
endif
# Do installation
install_subdir('lutris', install_dir: 'lib/lutris')
install_subdir('share', install_dir: 'share', strip_directory: true)
install_subdir('bin', install_dir: 'bin' , strip_directory: true, install_mode: 'rwxr-xr-x')