# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
-AC_PATH_PROG([WL_SCANNER], [wayland-scanner])
-if test -z "$WL_SCANNER"; then
- AC_MSG_ERROR([wayland-scanner is not found])
-fi
+
# Checks for libraries.
AC_CHECK_LIB([dl], [dlopen])
if WITH_WAYLAND
libtpl_egl_la_SOURCES += tpl_wayland_egl.c \
tpl_wl_egl_thread.c \
- tpl_wl_vk_thread.c \
- wayland-vulkan/wayland-vulkan-protocol.c
+ tpl_wl_vk_thread.c
endif
# TBM
libtpl_egl_la_SOURCES += tpl_tbm.c
endif
-nodist_libtpl_egl_la_SOURCES = wayland-vulkan/wayland-vulkan-server-protocol.h \
- wayland-vulkan/wayland-vulkan-client-protocol.h
-
-BUILT_SOURCES = wayland-vulkan/wayland-vulkan-server-protocol.h \
- wayland-vulkan/wayland-vulkan-client-protocol.h \
- wayland-vulkan/wayland-vulkan-protocol.c
-
-WAYLAND_VULKAN_PROTOCOLS = wayland-vulkan/wayland-vulkan-protocol.xml
-
-wayland-vulkan/wayland-vulkan-protocol.c : $(WAYLAND_VULKAN_PROTOCOLS)
- wayland-scanner code < $< > $@
-
-wayland-vulkan/wayland-vulkan-server-protocol.h : $(WAYLAND_VULKAN_PROTOCOLS)
- wayland-scanner server-header < $< > $@
-
-wayland-vulkan/wayland-vulkan-client-protocol.h : $(WAYLAND_VULKAN_PROTOCOLS)
- wayland-scanner client-header < $< > $@
-
--- /dev/null
+<protocol name="wayland_vulkan">
+ <interface name="wayland_vulkan" version="1">
+ <enum name="present_mode_type">
+ <entry name="IMMEDIATE" value="1"/>
+ <entry name="MAILBOX" value="2"/>
+ <entry name="FIFO" value="3"/>
+ <entry name="FIFO_RELAXED" value="4"/>
+ </enum>
+ <event name="supported_present_mode">
+ <arg name="mode" type="uint" />
+ </event>
+ <request name="set_present_mode">
+ <arg name="surface" type="object" interface="wl_surface" />
+ <arg name="mode" type="uint" />
+ </request>
+ </interface>
+</protocol>
+++ /dev/null
-<protocol name="wayland_vulkan">
- <interface name="wayland_vulkan" version="1">
- <enum name="present_mode_type">
- <entry name="IMMEDIATE" value="1"/>
- <entry name="MAILBOX" value="2"/>
- <entry name="FIFO" value="3"/>
- <entry name="FIFO_RELAXED" value="4"/>
- </enum>
- <event name="supported_present_mode">
- <arg name="mode" type="uint" />
- </event>
- <request name="set_present_mode">
- <arg name="surface" type="object" interface="wl_surface" />
- <arg name="mode" type="uint" />
- </request>
- </interface>
-</protocol>