commit 77ef4b9b31e4d5ec9511869e8a943b668e9abfd9 parent 6e141323c833cbd4aa024c20a8c65f2ff207324b Author: falkTX <falktx@falktx.com> Date: Mon, 17 May 2021 05:57:40 +0100 Fix Demo test rebuilds Diffstat:
M | tests/Demo.cpp | | | 7 | ++++++- |
M | tests/Makefile | | | 3 | +++ |
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/tests/Demo.cpp b/tests/Demo.cpp @@ -239,7 +239,12 @@ class DemoWindow : public StandaloneWindow, static const int kSidebarWidth = 81; public: - static constexpr const char* const kExampleWidgetName = "Demo"; +#ifdef DGL_CAIRO + static constexpr const char* const kExampleWidgetName = "Demo - Cairo"; +#endif +#ifdef DGL_OPENGL + static constexpr const char* const kExampleWidgetName = "Demo - OpenGL"; +#endif DemoWindow(Application& app) : StandaloneWindow(app), diff --git a/tests/Makefile b/tests/Makefile @@ -133,5 +133,8 @@ clean: # --------------------------------------------------------------------------------------------------------------------- -include $(OBJS:%.o=%.d) +-include ../build/tests/Demo.cpp.cairo.d +-include ../build/tests/Demo.cpp.opengl.d +-include ../build/tests/Demo.cpp.vulkan.d # ---------------------------------------------------------------------------------------------------------------------