example.zim is copied only if gtest is available

This commit is contained in:
Veloman Yunkan 2020-08-06 19:23:11 +04:00 committed by Matthieu Gautier
parent 66563d93cc
commit a3bef76083
1 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,3 @@
configure_file(input : 'data/example.zim',
output : 'example.zim',
copy: true )
tests = [ tests = [
'parseUrl', 'parseUrl',
'library', 'library',
@ -26,6 +22,10 @@ gtest_dep = dependency('gtest',
required:false) required:false)
if gtest_dep.found() and not meson.is_cross_build() if gtest_dep.found() and not meson.is_cross_build()
configure_file(input : 'data/example.zim',
output : 'example.zim',
copy: true )
configure_file(input : 'data/wikipedia_en_ray_charles_mini_2020-03.zim', configure_file(input : 'data/wikipedia_en_ray_charles_mini_2020-03.zim',
output : 'zimfile.zim', output : 'zimfile.zim',
copy: true ) copy: true )