[Vala] Preprocessor defines via Meson or valac

2019-12-05 Thread Ken Gilmer via vala-list
Hello! I am trying to bind to libfuse from a Vala program. I see that in libfuse I must specify a define to the version of the API I want to use[4]. I read the Vala documentation as to how to define a symbol[3]. I see that there is documentation in meson for how to add arguments to valac[1]

Re: [Vala] Preprocessor defines via Meson or valac

2019-12-05 Thread Vivien Kraus
Hello! I think that the -D option only applies to the Vala pre-processor (https://wiki.gnome.org/Projects/Vala/Manual/Preprocessor). I don't know meson, but either it uses valac to generate the C source files and then you need to add that option to the CFLAGS, or it does not generate these

Re: [Vala] Preprocessor defines via Meson or valac

2019-12-05 Thread Guillaume Poirier-Morency via vala-list
Le jeudi 05 décembre 2019 à 22:13 -0800, Ken Gilmer via vala-list a écrit : > Hello! > > I am trying to bind to libfuse from a Vala program. I see that in > libfuse > I must specify a define to the version of the API I want to > use[4]. I read > the Vala documentation as to how to define a