From: Woongsuk Cho Date: Thu, 18 Jul 2024 06:14:25 +0000 (+0900) Subject: Skip AOT in plugin when pkg contains ni files X-Git-Tag: accepted/tizen/unified/20240723.101927^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4ee00172a54603cb929480815288657ddc4114c;p=platform%2Fcore%2Fdotnet%2Flauncher.git Skip AOT in plugin when pkg contains ni files --- diff --git a/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc b/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc index 427eb63..75bb2f9 100644 --- a/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc +++ b/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc @@ -72,6 +72,15 @@ extern "C" int PKGMGR_MDPARSER_PLUGIN_INSTALL(const char *pkgId, const char *app iter = g_list_next(iter); } + // if package contains native image, skip AOT. + std::string rootPath = getRootPath(pkgId); + if (!rootPath.empty()) { + if (exist(concatPath(rootPath, concatPath("bin", APP_NI_SUB_DIR)))) { + _INFO("Package already contains native images. Skip native image generation"); + doAOT = false; + } + } + if (doAOT) { _DBG("Prefer dotnet application AOT set TRUE");