Merge pull request #778 from eli-schwartz/meson

Meson: retain compatibility for very old versions
This commit is contained in:
Adam 2021-12-29 12:13:59 -05:00 committed by GitHub
commit d2e02bbed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -2,7 +2,7 @@ project('lite-xl',
['c'], ['c'],
version : '2.0.3', version : '2.0.3',
license : 'MIT', license : 'MIT',
meson_version : '>= 0.54', meson_version : '>= 0.42',
default_options : ['c_std=gnu11'] default_options : ['c_std=gnu11']
) )
@ -52,7 +52,7 @@ if not get_option('source-only')
) )
pcre2_dep = dependency('libpcre2-8') pcre2_dep = dependency('libpcre2-8')
freetype_dep = dependency('freetype2') freetype_dep = dependency('freetype2')
sdl_dep = dependency('sdl2', method: 'config-tool') sdl_dep = dependency('sdl2')
lite_deps = [lua_dep, sdl_dep, freetype_dep, pcre2_dep, libm, libdl, threads_dep] lite_deps = [lua_dep, sdl_dep, freetype_dep, pcre2_dep, libm, libdl, threads_dep]
endif endif
#=============================================================================== #===============================================================================
@ -94,17 +94,16 @@ endif
install_data('licenses/licenses.md', install_dir : lite_docdir) install_data('licenses/licenses.md', install_dir : lite_docdir)
install_subdir('data' / 'core' , install_dir : lite_datadir, exclude_files : 'start.lua') install_subdir('data/core' , install_dir : lite_datadir, exclude_files : 'start.lua')
foreach data_module : ['fonts', 'plugins', 'colors'] foreach data_module : ['fonts', 'plugins', 'colors']
install_subdir('data' / data_module , install_dir : lite_datadir) install_subdir(join_paths('data', data_module), install_dir : lite_datadir)
endforeach endforeach
configure_file( configure_file(
input : 'data/core/start.lua', input : 'data/core/start.lua',
output : 'start.lua', output : 'start.lua',
configuration : conf_data, configuration : conf_data,
install : true, install_dir : join_paths(lite_datadir, 'core'),
install_dir : lite_datadir / 'core',
) )
if not get_option('source-only') if not get_option('source-only')