From: 최종헌/MDE Lab(SR)/삼성전자 Date: Thu, 30 May 2024 00:25:54 +0000 (+0900) Subject: Fixed build error (#555) X-Git-Tag: accepted/tizen/unified/20240621.010434~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aceeb0c77294fb3581448faf9d9ddb5c191c0604;p=platform%2Fcore%2Fdotnet%2Flauncher.git Fixed build error (#555) --- diff --git a/NativeLauncher/launcher/lib/injection.cc b/NativeLauncher/launcher/lib/injection.cc index ab203a2..f22e1d1 100644 --- a/NativeLauncher/launcher/lib/injection.cc +++ b/NativeLauncher/launcher/lib/injection.cc @@ -15,7 +15,7 @@ */ #include "log.h" - +#include "utils.h" #include #include #include @@ -61,7 +61,7 @@ int checkProfilerInjection() return -1; } - if (env.find(SDK_TOOLS_PATH) == std::string::npos) { + if (strstr(env, SDK_TOOLS_PATH) == NULL) { return -1; } diff --git a/NativeLauncher/tool/ni_common.cc b/NativeLauncher/tool/ni_common.cc index 6cd025f..81ab78d 100644 --- a/NativeLauncher/tool/ni_common.cc +++ b/NativeLauncher/tool/ni_common.cc @@ -825,22 +825,6 @@ static ni_error_e doAOTFile(const std::string& dllFile, const std::string& refPa return doAOTList(dllList, refPaths, opt); } -static ni_error_e removeAndCreateNI(const char* pkgId, NIOption* pOptions) -{ - if (removeNIUnderPkgRoot(pkgId) != NI_ERROR_NONE) { - _SERR("Failed to remove previous dlls from [%s]", pkgId); - return NI_ERROR_UNKNOWN; - } - - if (createNIUnderPkgRoot(pkgId, pOptions) != NI_ERROR_NONE) { - _SERR("Failed to generate NI file [%s]", pkgId); - return NI_ERROR_UNKNOWN; - } - - _SOUT("Complete make native image for pkg (%s)", pkgId); - return NI_ERROR_NONE; -} - // callback function of "pkgmgrinfo_appinfo_metadata_filter_foreach" static int appAotCb(pkgmgrinfo_appinfo_h handle, void *userData) {