meson: add a libmypaint < 1.4.0 warning.

Same as what I did for the configure script. Note that I break commits
in 2 to make the autotools commits easily backportable to gimp-2-10,
i.e. without any meson files.
This commit is contained in:
Jehan 2019-11-12 17:21:25 +01:00
parent 5da252ca18
commit f9752f39b0
1 changed files with 10 additions and 0 deletions

View File

@ -352,6 +352,16 @@ lcms = dependency('lcms2', version: '>=2.8')
libmypaint = dependency('libmypaint', version: '>=1.3.0')
if not libmypaint.version().version_compare('>=1.4.0')
libmypaint_warning='''
libmypaint lower than version 1.4.0 is known to crash when
parsing MyPaint 2 brushes. Please update.
'''
warning(libmypaint_warning)
warnings += libmypaint_warning
endif
mypaint_brushes = dependency('mypaint-brushes-1.0', version: '>=1.3.0')
if relocatable_bundle