Problems using it in vala: gir does not contain proper .h file; there is no .vapi file
@pborelli
Submitted by Paolo Borelli Link to original bug (#693471)
Description
There are a few problems when trying to use libgweather in vala:
- the gir does not contain the proper .h file
- there is no .vapi file
I worked around in the following way:
-GWeather_3_0_gir_SCANNERFLAGS = --identifier-prefix=GWeather --symbol-prefix=gweather --pkg-export=gweather-3.0 +GWeather_3_0_gir_SCANNERFLAGS = --identifier-prefix=GWeather --symbol-prefix=gweather --pkg-export=gweather-3.0 --c-include "libgweather/gweather-weather.h,libgweather/location-entry.h"
in the libgweather makefile and then generated a vapi with vapigen --pkg gio-2.0 --pkg gtk+-3.0 --library gweather-3.0 GWeather-3.0.gir
I think that
- it would be better to have a single <libgweather/gweather.h> header file
- we should fix the gir generation to include that header
- we should ship the vapi file either in libgweather itself or in vala