Skip to content

Commit

Permalink
sdl build config
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Dec 24, 2024
1 parent 8068eee commit 4424c37
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 9 additions & 1 deletion tests/app/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4424c37

Please sign in to comment.