Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix: Resolve CI build failures on all platforms

esengineffc739f8369f
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c18c65137..52d776d38 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -24,7 +24,8 @@ jobs:
ninja-build \
libglfw3-dev \
libgl1-mesa-dev \
- xorg-dev
+ xorg-dev \
+ libxkbcommon-dev
- name: Configure CMake
run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
diff --git a/src/esengine/ui/layout/StackLayout.cpp b/src/esengine/ui/layout/StackLayout.cpp
index 6140ea5d4..c54f82a22 100644
--- a/src/esengine/ui/layout/StackLayout.cpp
+++ b/src/esengine/ui/layout/StackLayout.cpp
@@ -12,6 +12,8 @@
#include "StackLayout.hpp"
#include "../widgets/Widget.hpp"
+#include <algorithm>
+
namespace esengine::ui {
// =============================================================================
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
index c24721a57..04f90107a 100644
--- a/third_party/CMakeLists.txt
+++ b/third_party/CMakeLists.txt
@@ -49,7 +49,9 @@ if(NOT ES_BUILD_WEB AND NOT ES_BUILD_WXGAME)
)
add_library(quickjs STATIC ${QUICKJS_SOURCES})
- target_include_directories(quickjs PUBLIC
+ # Use PRIVATE to avoid exposing quickjs internal files (like 'version' text file)
+ # which could be mistakenly included as headers by the compiler
+ target_include_directories(quickjs PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/quickjs
)