mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
CREATE_PROJECT: Output Groups and File references in XCode provider
This commit is contained in:
@@ -75,14 +75,6 @@ namespace {
|
||||
*/
|
||||
std::string unifyPath(const std::string &path);
|
||||
|
||||
/**
|
||||
* Returns the last path component.
|
||||
*
|
||||
* @param path Path string.
|
||||
* @return Last path component.
|
||||
*/
|
||||
std::string getLastPathComponent(const std::string &path);
|
||||
|
||||
/**
|
||||
* Display the help text for the program.
|
||||
*
|
||||
@@ -606,14 +598,6 @@ std::string unifyPath(const std::string &path) {
|
||||
return result;
|
||||
}
|
||||
|
||||
std::string getLastPathComponent(const std::string &path) {
|
||||
std::string::size_type pos = path.find_last_of('/');
|
||||
if (pos == std::string::npos)
|
||||
return path;
|
||||
else
|
||||
return path.substr(pos + 1);
|
||||
}
|
||||
|
||||
void displayHelp(const char *exe) {
|
||||
using std::cout;
|
||||
|
||||
@@ -1001,7 +985,7 @@ bool isInList(const std::string &dir, const std::string &fileName, const StringL
|
||||
continue;
|
||||
}
|
||||
|
||||
const std::string lastPathComponent = getLastPathComponent(*i);
|
||||
const std::string lastPathComponent = ProjectProvider::getLastPathComponent(*i);
|
||||
if (extensionName == "o") {
|
||||
return false;
|
||||
} else if (!producesObjectFile(fileName) && extensionName != "h") {
|
||||
@@ -1304,6 +1288,14 @@ std::string ProjectProvider::createUUID() const {
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string ProjectProvider::getLastPathComponent(const std::string &path) {
|
||||
std::string::size_type pos = path.find_last_of('/');
|
||||
if (pos == std::string::npos)
|
||||
return path;
|
||||
else
|
||||
return path.substr(pos + 1);
|
||||
}
|
||||
|
||||
void ProjectProvider::addFilesToProject(const std::string &dir, std::ofstream &projectFile,
|
||||
const StringList &includeList, const StringList &excludeList,
|
||||
const std::string &filePrefix) {
|
||||
|
||||
Reference in New Issue
Block a user