aboutsummaryrefslogtreecommitdiff
path: root/src/platform/bootstrap/Bootstrap.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-09-23 22:54:09 +0800
committerYuqian Yang <crupest@crupest.life>2025-09-23 22:54:09 +0800
commitd79c8842fac8ddea402e9dd411e55ea583f74f03 (patch)
treecbc611bb7908e4537ae949c64d6a00420af6ee0e /src/platform/bootstrap/Bootstrap.cpp
parent9c7d93cdb85ccc89f0804b4f280eac099c4476c6 (diff)
downloadcru-d79c8842fac8ddea402e9dd411e55ea583f74f03.tar.gz
cru-d79c8842fac8ddea402e9dd411e55ea583f74f03.tar.bz2
cru-d79c8842fac8ddea402e9dd411e55ea583f74f03.zip
Enable bootstrap of xcb.
Diffstat (limited to 'src/platform/bootstrap/Bootstrap.cpp')
-rw-r--r--src/platform/bootstrap/Bootstrap.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/platform/bootstrap/Bootstrap.cpp b/src/platform/bootstrap/Bootstrap.cpp
index e9183550..bcf12613 100644
--- a/src/platform/bootstrap/Bootstrap.cpp
+++ b/src/platform/bootstrap/Bootstrap.cpp
@@ -1,10 +1,11 @@
#include "cru/platform/bootstrap/Bootstrap.h"
-#include "cru/base/Base.h"
#if defined(_WIN32)
#include "cru/platform/gui/win/UiApplication.h"
#elif defined(__APPLE__)
#include "cru/platform/gui/osx/UiApplication.h"
+#elif defined(__unix)
+#include "cru/platform/gui/xcb/UiApplication.h"
#else
#endif
@@ -15,7 +16,8 @@ cru::platform::gui::IUiApplication* CreateUiApplication() {
#elif defined(__APPLE__)
return new cru::platform::gui::osx::OsxUiApplication();
#else
- NotImplemented();
+ return new cru::platform::gui::xcb::XcbUiApplication();
#endif
+ NotImplemented();
}
} // namespace cru::platform::bootstrap