26 string compiledFilePath;
27 vector<string> dependencyPaths;
29 for (
size_t i = 1; i < contents.length(); ++i)
31 if (compiledFilePath.empty() && contents[i] ==
':' && contents[i-1] !=
'\\')
33 compiledFilePath = contents.substr(startPos, i-startPos);
36 else if ((contents[i] ==
' ' && contents[i-1] !=
'\\') || i == contents.length()-1)
38 string dependency = contents.substr(startPos, i-startPos);
40 if (! dependency.empty())
41 dependencyPaths.push_back(dependency);
46 if (compiledFilePath.empty())
47 throw VuoException(
"Dependency file '%s' doesn't begin with a target path.");
49 return shared_ptr<VuoMakeDependencies>(
new VuoMakeDependencies(compiledFilePath, dependencyPaths));