From d2068b0ed09cdc13023d60e2b053032a974cf318 Mon Sep 17 00:00:00 2001 From: CHP Date: Sun, 30 Nov 2025 20:34:26 +0100 Subject: [PATCH 1/4] AX_CORE_PROFILE on by default Update CMakeLists.txt --- core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 433faa4187a..ed558e12c6e 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -111,7 +111,7 @@ cmake_dependent_option(AX_ENABLE_NAVMESH "Build NavMesh support" ON "AX_ENABLE_3 option(AX_UPDATE_BUILD_VERSION "Update build version" ON) option(AX_DISABLE_GLES2 "Whether disable GLES2 support" OFF) -option(AX_CORE_PROFILE "Whether strip deprecated features" OFF) +option(AX_CORE_PROFILE "Whether strip deprecated features" ON) # default value for axmol extensions modules to Build # total supported extensions count: 13 From 46ee00b61d7aa243ad453adee7a3efa85a7b0f8a Mon Sep 17 00:00:00 2001 From: CHP Date: Sun, 30 Nov 2025 21:04:47 +0100 Subject: [PATCH 2/4] fix compilation errors --- core/platform/linux/Application-linux.cpp | 2 ++ core/platform/wasm/Application-wasm.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/core/platform/linux/Application-linux.cpp b/core/platform/linux/Application-linux.cpp index ca5277dd268..221a627abe8 100644 --- a/core/platform/linux/Application-linux.cpp +++ b/core/platform/linux/Application-linux.cpp @@ -132,11 +132,13 @@ Application* Application::getInstance() return sm_pSharedApplication; } +#ifndef AX_CORE_PROFILE // @deprecated Use getInstance() instead Application* Application::sharedApplication() { return Application::getInstance(); } +#endif const char* Application::getCurrentLanguageCode() { diff --git a/core/platform/wasm/Application-wasm.cpp b/core/platform/wasm/Application-wasm.cpp index 8c763a36c1b..8eb27c6cdec 100644 --- a/core/platform/wasm/Application-wasm.cpp +++ b/core/platform/wasm/Application-wasm.cpp @@ -211,6 +211,7 @@ void Application::setAnimationInterval(float interval) s_animationInterval = static_cast(interval * NANOSECONDSPERSECOND); } +#ifndef AX_CORE_PROFILE void Application::setResourceRootPath(const std::string& rootResDir) { _resourceRootPath = rootResDir; @@ -228,6 +229,7 @@ const std::string& Application::getResourceRootPath() { return _resourceRootPath; } +#endif Application::Platform Application::getTargetPlatform() { From fe1032ea2770bae807ddb13db64072a8bf3b5af2 Mon Sep 17 00:00:00 2001 From: CHP Date: Sun, 30 Nov 2025 21:13:26 +0100 Subject: [PATCH 3/4] fix build error --- core/platform/wasm/Application-wasm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/platform/wasm/Application-wasm.cpp b/core/platform/wasm/Application-wasm.cpp index 8eb27c6cdec..8aef66ddb77 100644 --- a/core/platform/wasm/Application-wasm.cpp +++ b/core/platform/wasm/Application-wasm.cpp @@ -257,11 +257,13 @@ Application* Application::getInstance() return sm_pSharedApplication; } +#ifndef AX_CORE_PROFILE // @deprecated Use getInstance() instead Application* Application::sharedApplication() { return Application::getInstance(); } +#endif const char* Application::getCurrentLanguageCode() { From f7db3d658398def03f16dd0bba669b06a782edbf Mon Sep 17 00:00:00 2001 From: CHP Date: Mon, 1 Dec 2025 20:01:25 +0100 Subject: [PATCH 4/4] revert back to OFF --- core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index ed558e12c6e..433faa4187a 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -111,7 +111,7 @@ cmake_dependent_option(AX_ENABLE_NAVMESH "Build NavMesh support" ON "AX_ENABLE_3 option(AX_UPDATE_BUILD_VERSION "Update build version" ON) option(AX_DISABLE_GLES2 "Whether disable GLES2 support" OFF) -option(AX_CORE_PROFILE "Whether strip deprecated features" ON) +option(AX_CORE_PROFILE "Whether strip deprecated features" OFF) # default value for axmol extensions modules to Build # total supported extensions count: 13