Conditionally include the GSK broadway and vulkan symbols

In case GTK is built without these features.
This commit is contained in:
Emmanuele Bassi 2020-04-11 15:42:51 +01:00
parent 20d0d6fae2
commit d08310096c

View File

@ -59,7 +59,7 @@ for f in funcs:
file_output += ['#ifdef GDK_WINDOWING_X11']
file_output += ['*tp++ = {0}();'.format(f)]
file_output += ['#endif']
elif f.startswith('gdk_broadway'):
elif f.startswith('gdk_broadway') or f.startswith('gsk_broadway'):
file_output += ['#ifdef GDK_WINDOWING_BROADWAY']
file_output += ['*tp++ = {0}();'.format(f)]
file_output += ['#endif']
@ -75,6 +75,10 @@ for f in funcs:
file_output += ['#ifdef GDK_WINDOWING_QUARTZ']
file_output += ['*tp++ = {0}();'.format(f)]
file_output += ['#endif']
elif f.startswith('gsk_vulkan'):
file_output += ['#ifdef GDK_RENDERING_VULKAN']
file_output += ['*tp++ = {0}();'.format(f)]
file_output += ['#endif']
else:
file_output += ['*tp++ = {0}();'.format(f)]