build: Use template files for the ATK enumerations
authorEmmanuele Bassi <ebassi@gnome.org>
Sat, 20 May 2017 14:33:43 +0000 (15:33 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 22 May 2017 12:28:54 +0000 (13:28 +0100)
commitcc0e04b1d17c42fd2dad32358de9f6a3af04eac8
treec8f80257033b4e300b0386715ddc984dd362bcab
parent60d7145c68a90e6d6aae4b50e20a50ce49d3052a
build: Use template files for the ATK enumerations

Placing the enumeration GType inline in the Makefile makes them
unreadable, and does not allow to easily update the body of the
get_type() functions. Case in point: ATK still generates thread-unsafe
versions of the enumeration and flags GTypes.

Let's update the build to something more idiomatic, and use template
files, like every other G* library does.
atk/Makefile.am
atk/atk-enum-types.c.template [new file with mode: 0644]
atk/atk-enum-types.h.template [new file with mode: 0644]