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 1 deletions
Showing only changes of commit 44b009c129 - Show all commits

View File

@ -361,7 +361,11 @@ if unwind.found()
endif
#for the case that the iconv library is not part of libc but rather libiconv or smth. like that
iconv = dependency('iconv', required: false)
if meson.version().version_compare('>=0.60')
iconv = dependency('iconv', method: 'auto')
else
iconv = dependency('iconv', required: false)
Review

If you're looking up iconv in both sides of the branch, what's the point? Just use dependency('', required: false) to get a null dependency.

If you're looking up iconv in both sides of the branch, what's the point? Just use `dependency('', required: false)` to get a null dependency.
Review

It is a try to fight with the warning:
* 0.60.0: {'dep 'iconv' custom lookup'}

It is a try to fight with the warning: ` * 0.60.0: {'dep 'iconv' custom lookup'}`
Review

The thing is that you are still hitting the bad codepath for older versions of meson...

The thing is that you are still hitting the bad codepath for older versions of meson...
Review

Would be very appreciated if you could provide a link to the example with the novel meson coding approach.

Would be very appreciated if you could provide a link to the example with the novel meson coding approach.
endif
if iconv.found() == false
iconv = cc.find_library('iconv', required: false)
endif