+// 1. /appRoot/runtimes/{Platform}-{Architecture}/lib/{TFMs}/xxxxx.dll
+static std::string getExtraTfmDirs(const std::string& appRoot)
+{
+ std::string candidate;
+ std::vector<std::string> tfmList;
+ char* tizen_tfm = vconf_get_str(__TIZEN_TFM_SUPPORT_KEY);
+ if (tizen_tfm) {
+ splitPath(tizen_tfm, tfmList);
+ free(tizen_tfm);
+ }
+
+ std::vector<std::string> paths;
+ splitPath(replaceAll(getRidFallbackGraphDirs(appRoot), "/native", "/lib"), paths);
+
+ if (tfmList.empty() || paths.empty())
+ return candidate;
+
+ std::vector<std::string> tfmDirectoryList;
+ for (unsigned int i = 0; i < paths.size(); i++) {
+ for (unsigned int j = 0; j < tfmList.size(); j++) {
+ tfmDirectoryList.push_back(concatPath(paths[i], tfmList[j]));
+ }
+ }
+
+ for (unsigned int i = 0; i < tfmDirectoryList.size(); i++) {
+ if (!candidate.empty()) {
+ candidate += ":";
+ }
+ candidate += tfmDirectoryList[i];
+ }
+
+ return candidate;
+}
+