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(native): onecore, not kernelbase — the SDK ships no kernelbase.lib

esenginef20a00e88937
diff --git a/native/CMakeLists.txt b/native/CMakeLists.txt
index bdb49d92a..f6821d9bb 100644
--- a/native/CMakeLists.txt
+++ b/native/CMakeLists.txt
@@ -354,9 +354,10 @@ if(ESTELLA_QUICKJS_DIR)
if(ESTELLA_WINDOWS)
# Dawn's D3D12 backend, DirectWrite for the font match, WinHTTP for the
# fetch. miniaudio reaches WASAPI through the COM headers it includes.
- # kernelbase for CompareObjectHandles, which Dawn's D3D shared fences
- # call and which kernel32 does not re-export.
- target_link_libraries(estella_js_host d3d12 dxgi dxguid dwrite winhttp kernelbase)
+ # onecore for CompareObjectHandles, which Dawn's D3D shared fences call:
+ # it lives in kernelbase, kernel32 does not re-export it, and the SDK
+ # ships no kernelbase.lib — onecore is the umbrella that has it.
+ target_link_libraries(estella_js_host d3d12 dxgi dxguid dwrite winhttp onecore)
else()
# As on iOS: miniaudio's CoreAudio backend reaches for the Obj-C runtime,
# so its TU is Objective-C++ on every Apple platform.