diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 4d090b9..d12bb85 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -49,6 +49,13 @@ "problemMatcher": [], "group": "build" }, + { + "label": "run-app-sdl-dbg", + "type": "shell", + "command": "make run-app config=dbg sdl=true", + "problemMatcher": [], + "group": "build" + }, { "label": "run-app-dbg-ogles2", "type": "shell", diff --git a/tests/app/makefile b/tests/app/makefile index 74ed7ea..f95a952 100644 --- a/tests/app/makefile +++ b/tests/app/makefile @@ -10,7 +10,15 @@ this_srcs += $(call prorab-src-dir, src) this_cxxflags += -I ../../src ifeq ($(os),linux) - this__cfg_suffix := $(if $(ogles2),opengles,opengl)-$(if $(wayland),wayland,xorg) + ifeq ($(wayland),true) + this__backend := wayland + else ifeq ($(sdl),true) + this__backend := sdl + else + this__backend := xorg + endif + + this__cfg_suffix := $(if $(ogles2),opengles,opengl)-$(this__backend) this_libruisapp := libruisapp-$(this__cfg_suffix) else this__cfg_suffix := $(if $(ogles2),opengles,opengl)