TAC disables the --inputbubble option
authorj-h.choi <j-h.choi@samsung.com>
Tue, 14 Jan 2025 06:00:38 +0000 (15:00 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Tue, 21 Jan 2025 00:39:51 +0000 (09:39 +0900)
Change-Id: I823b0e941f330da160602f664751e997c171e953

NativeLauncher/tool/ni_common.cc

index c66e0454332ecd74d1c8d8e715abc1cf56ccf938..a404a9a7d30cc68c7fb95346d772ea0f36dca783 100644 (file)
@@ -986,14 +986,11 @@ static ni_error_e createNIUnderTAC(const std::string& targetPath, const std::str
                isAppNI = true;
        }
 
+       // TAC disables the --inputbubble option to remove dependencies with other apps.
+       bool isInputBubble = false;
        if (opt->flags & NI_FLAGS_INPUT_BUBBLE) {
-               std::vector<std::string> refs;
-               splitPath(refPaths, refs);
-               for (auto &p: refs) {
-                       if (isDirectory(p) && checkDllExistInDir(p)) {
-                               opt->inputBubbleRefFiles.push_back(p + "/*.dll");
-                       }
-               }
+               opt->flags &= ~NI_FLAGS_INPUT_BUBBLE;
+               isInputBubble = true;
        }
 
        // get managed file list from targetPath
@@ -1020,6 +1017,10 @@ static ni_error_e createNIUnderTAC(const std::string& targetPath, const std::str
                }
        }
 
+       if (isInputBubble) {
+               opt->flags |= NI_FLAGS_INPUT_BUBBLE;
+       }
+
        if (isAppNI) {
                opt->flags |= NI_FLAGS_APPNI;
                for (auto &niPath : niList) {