WIP: Solve meson warnings and deprecations #47

Draft
dimmus wants to merge 14 commits from dimmus/efl:devs/dimmus/meson into master
1 changed files with 5 additions and 6 deletions
Showing only changes of commit 8beff7c4a1 - Show all commits

View File

@ -1,4 +1,3 @@
cmake_src = [
'Ecore',
'EcoreCxx',
@ -39,21 +38,21 @@ foreach cmake_file : cmake_src
input: cmake_file+'Config.cmake.in',
output: cmake_file+'Config.cmake',
install_dir: join_paths(dir_lib, 'cmake', cmake_file),
copy: true,
configuration : conf
Review

In this case I would advise not using configure_file at all. It seems to have nothing to configure, so usong configuration: conf is "wrong" (newer meson actually wants you to use fs.copy()!!) but the purpose of either one is supposed to be for files that you need in the build directory. For installing files, just (rename them to avoid the useless .in and) use install_data() instead.

In this case I would advise not using configure_file at all. It seems to have nothing to configure, so usong configuration: conf is "wrong" (newer meson actually wants you to use fs.copy()!!) but the purpose of either one is supposed to be for files that you need in the build directory. For installing files, just (rename them to avoid the useless .in and) use install_data() instead.
Review

caught it

caught it
)
if cmake_version_src.contains(cmake_src)
configure_file(
input: cmake_version_file+'ConfigVersion.cmake.in',
output: cmake_version_file+'ConfigVersion.cmake',
install_dir: join_paths(dir_lib, 'cmake', cmake_version_file),
configuration : conf,
configuration : conf
)
else
configure_file(
input: 'EflConfigVersion.cmake.in',
output: cmake_file+'ConfigVersion.cmake',
install_dir: join_paths(dir_lib, 'cmake', cmake_file),
configuration : conf,
configuration : conf
)
endif
endforeach
@ -62,5 +61,5 @@ configure_file(
input: 'EolianHelper.cmake.in',
output: 'EolianHelper.cmake',
install_dir: join_paths(dir_lib, 'cmake', 'Eolian'),
copy: true
)
configuration : conf
)