mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-27 21:39:37 +00:00
Api changes : - removeLastPathElement do not takes extra arguments `removePreSeparator` and `removePostSeparator`. This is not needed as path do not need special tailing separator. - Only one function `split`. Arguments can be implicitly convert to string. No need for overloading functions to explicitly cast them. - `split` function takes another argument `trimEmpty`. If true, empty element are removed. Path manipulation now almost pass trough a vector<string> to store each path's part. Most of the complex works is now made in the normalizeParts function.
28 lines
676 B
Meson
28 lines
676 B
Meson
|
|
|
|
tests = [
|
|
'parseUrl',
|
|
'library',
|
|
'regex',
|
|
'tagParsing',
|
|
'stringTools',
|
|
'pathTools'
|
|
]
|
|
|
|
|
|
gtest_dep = dependency('gtest',
|
|
main:true,
|
|
fallback: ['gtest', 'gtest_dep'],
|
|
required:false)
|
|
|
|
if gtest_dep.found()
|
|
foreach test_name : tests
|
|
test_exe = executable(test_name, [test_name+'.cpp'],
|
|
link_with : kiwixlib,
|
|
link_args: extra_link_args,
|
|
dependencies : all_deps + [gtest_dep],
|
|
build_rpath : '$ORIGIN')
|
|
test(test_name, test_exe)
|
|
endforeach
|
|
endif
|