Nuget with no dependency applies TAC
[platform/core/dotnet/launcher.git] / NativeLauncher / tool / tac_common.cc
index 78c20cf..b767c91 100644 (file)
@@ -286,18 +286,7 @@ tac_error_e regenerateTAC()
 {
        const std::string tacDir[] = {__TAC_DIR};
        removeNiUnderDirs(tacDir, 1);
-
-       auto convert = [](const std::string& path, std::string name) {
-               if (strstr(path.c_str(), TAC_APP_LIST_DB) != NULL ||
-                       strstr(path.c_str(), TAC_APP_LIST_RESTORE_DB) != NULL ||
-                       strstr(path.c_str(), TAC_SHA_256_INFO) != NULL)
-                       return;
-               if(createNiDll(path, false) != NI_ERROR_NONE) {
-                       fprintf(stderr, "Failed to create NI file [%s]\n", path.c_str());
-                       return;
-               }
-       };
-       scanFilesInDir(tacDir[0], convert, -1);
+       createNiUnderTAC(tacDir, 1);
        return TAC_ERROR_NONE;
 }