[gtk/gsk-public-symbols: 2/2] Conditionally include the GSK broadway and vulkan symbols



commit d08310096c623ae749eff587892b1524b93c5216
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sat Apr 11 15:42:51 2020 +0100

    Conditionally include the GSK broadway and vulkan symbols
    
    In case GTK is built without these features.

 gtk/gentypefuncs.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gentypefuncs.py b/gtk/gentypefuncs.py
index 522c04688a..d21622961a 100644
--- a/gtk/gentypefuncs.py
+++ b/gtk/gentypefuncs.py
@@ -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)]
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]