Skip to content

build: make sure enum headers are generated first

Arnaud Ferraris requested to merge a-wai/gnome-todo:fix-build into main

When building in a single-thread environment (minimal VM, for instance), the plugins build is attempted before enum files are generated. In such cases, the build fails as gnome-todo.h includes gtd-enum-types.h, which does not exist yet.

This is fixed by adding the generated header (and only the header) as a dependency to plugins_sources.

Please note this also affects the 41.0 release and should probably be backported to the gnome-41 branch.

Fixes #380 (closed) #398 (closed)

Edited by Arnaud Ferraris

Merge request reports