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/8.0/unified/20240724.010425^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1ca38576e49c0b66de7f52c3555860fc72c8f5c;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 a2e3659..68b3d91 100644 --- a/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc +++ b/NativeLauncher/installer-plugin/prefer_dotnet_aot_plugin.cc @@ -68,6 +68,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");