Check library extension more accepted/tizen/8.0/unified/20231129.170829 accepted/tizen/unified/20231130.180856
authorWoongsuk Cho <ws77.cho@samsung.com>
Tue, 28 Nov 2023 11:42:47 +0000 (20:42 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Tue, 28 Nov 2023 11:45:36 +0000 (20:45 +0900)
To handle ".so.{number}" case, add more checking logic

NativeLauncher/tool/tac_common.cc

index dcd5c1d..71623b3 100644 (file)
@@ -439,7 +439,7 @@ std::vector<std::string> getLibrariesInfo(const std::string& rootPath)
                return LibrariesInfo;
 
        auto convert = [&LibrariesInfo](const std::string& filepath, const std::string& filename) {
-               if (filename.find(".so", filename.size() - 3) != std::string::npos) {
+               if (filename.find(".so", filename.size() - 3) != std::string::npos || filepath.rfind(".so.") != std::string::npos) {
                        std::string buffer = SHA256(filepath);
                        LibrariesInfo.push_back(filepath + ":" + buffer);
                        _INFO("Library : [%s] / SHA256 : [%s]", filename.c_str(), buffer.c_str());