mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.3k stars 1.52k forks source link

Fix dependencies for vala.links #13162

Closed bcorby closed 2 weeks ago

bcorby commented 2 weeks ago

Using the keyword argument dependencies with compiler.links() for vala doesn't work as the library being linked to needs to be prefixed with --pkg= before being passed to valac.

bcorby commented 2 weeks ago

I closed #13158 by mistake sorry. I have changed if len(a) > 0: to if a: (I didn't know about this syntax). I have also added tests for linking with gio-2.0 which is a little bit tricky.

dcbaker commented 2 weeks ago

In python all values are "truthy" and can be used directly in a context expecting a bool. This matters a lot because of the way the object model works it's generally much faster to query the truthiness of an object directly

bcorby commented 2 weeks ago

Can this pull make 1.4.1 too?