From 2e379441f69c4fd3049d186f76b25457e6250282 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 12 Aug 2021 21:44:32 +0800 Subject: ... --- src/platform/bootstrap/Bootstrap.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/platform/bootstrap/Bootstrap.cpp (limited to 'src/platform/bootstrap/Bootstrap.cpp') diff --git a/src/platform/bootstrap/Bootstrap.cpp b/src/platform/bootstrap/Bootstrap.cpp new file mode 100644 index 00000000..99b5badb --- /dev/null +++ b/src/platform/bootstrap/Bootstrap.cpp @@ -0,0 +1,15 @@ +#include "cru/platform/bootstrap/Bootstrap.hpp" + +#ifdef CRU_PLATFORM_WINDOWS +#include "cru/win/gui/UiApplication.hpp" +#else +#endif + +namespace cru::platform::boostrap { +cru::platform::gui::IUiApplication* CreateUiApplication() { +#ifdef CRU_PLATFORM_WINDOWS + return new cru::platform::gui::win::WinUiApplication(); +#else +#endif +} +} // namespace cru::platform::boostrap -- cgit v1.2.3