Fixed build error (#555)
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Thu, 30 May 2024 00:25:54 +0000 (09:25 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 30 May 2024 00:25:54 +0000 (09:25 +0900)
NativeLauncher/launcher/lib/injection.cc
NativeLauncher/tool/ni_common.cc

index ab203a298a045f0dbf0ffc6363f3e8136830ffec..f22e1d17596a21b14fc8b7af11fb89bab4130a70 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include "log.h"
-
+#include "utils.h"
 #include <cstdlib>
 #include <cstring>
 #include <string>
@@ -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;
        }
 
index 6cd025f78e1744fc33d0b3c999a8d140ead72f58..81ab78d0728580ae78a69d284565e0038b5be570 100644 (file)
@@ -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)
 {