On 19/10/20 21:58, 罗勇刚(Yonggang Luo) wrote: > >> + if not curses.found() + curses_compile_args = >> ['-DNCURSES_WIDECHAR'] > > Here is what I think need improve in meson, when declare > dependencies, we need a extra option compile_args for easily testing > extra compile args, and maybe also need link_args, and after suceed, > these flags should as a part of the dependencies.
I think it would make sense if cc.find_library had extra arguments that would be added to the dependency and, in case of compile_args, to the has_headers check. It's a tradeoff between keeping the language simple and making the users' code smaller. Another possible extension is for cc.links to allow internal dependencies, as long as they do not depend on sources. Paolo