Generate version and deprecation macros at build time
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 8 May 2023 18:39:35 +0000 (19:39 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 9 May 2023 15:43:25 +0000 (16:43 +0100)
commit4d1f7a476d9d05e89863764d0c9f7a1fb71b5432
tree0c106cf6d531ebbe02a5e66d03cffd32b607e79b
parenta959fba18afe9d161205d13523205c91c5a23a15
Generate version and deprecation macros at build time

Let's poach the same script used by GLib to avoid having to add all the
version macros by hand every time we increment the GTK version.

This is a work in progress:

- need to rename the GLIB_STATIC_COMPILATION check
- circular dependency: libgtkcss depends on gdkversionmacros.h, but libgdk
  depends on libgtkcss
build-aux/meson/gen-visibility-macros.py [new file with mode: 0755]
gdk/gdktypes.h
gdk/gdkversionmacros.h.in
gdk/meson.build
gtk/css/meson.build
meson.build