Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CREATE_PROJECT: Add stubs for Xcode provider
- Loading branch information
Showing
12 changed files
with
200 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* ScummVM - Graphic Adventure Engine | ||
* | ||
* ScummVM is the legal property of its developers, whose names | ||
* are too numerous to list here. Please refer to the COPYRIGHT | ||
* file distributed with this source distribution. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 2 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
*/ | ||
|
||
#include "xcode.h" | ||
|
||
#include <fstream> | ||
#include <algorithm> | ||
|
||
#if defined(_WIN32) || defined(WIN32) | ||
#include <windows.h> | ||
#else | ||
#include <sys/param.h> | ||
#include <sys/stat.h> | ||
#include <dirent.h> | ||
#include <errno.h> | ||
#endif | ||
|
||
namespace CreateProjectTool { | ||
|
||
XCodeProvider::XCodeProvider(StringList &global_warnings, std::map<std::string, StringList> &project_warnings, const int version) | ||
: ProjectProvider(global_warnings, project_warnings, version) { | ||
} | ||
|
||
void XCodeProvider::createWorkspace(const BuildSetup &setup) { | ||
// TODO | ||
} | ||
|
||
void XCodeProvider::createOtherBuildFiles(const BuildSetup &setup) { | ||
// TODO | ||
} | ||
|
||
void XCodeProvider::createProjectFile(const std::string &, const std::string &, const BuildSetup &setup, const std::string &moduleDir, | ||
const StringList &includeList, const StringList &excludeList) { | ||
// TODO | ||
} | ||
|
||
void XCodeProvider::writeFileListToProject(const FileNode &dir, std::ofstream &projectFile, const int indentation, | ||
const StringList &duplicate, const std::string &objPrefix, const std::string &filePrefix) { | ||
// TODO | ||
} | ||
|
||
} // End of CreateProjectTool namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* ScummVM - Graphic Adventure Engine | ||
* | ||
* ScummVM is the legal property of its developers, whose names | ||
* are too numerous to list here. Please refer to the COPYRIGHT | ||
* file distributed with this source distribution. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation; either version 2 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
*/ | ||
|
||
|
||
#ifndef TOOLS_CREATE_PROJECT_XCODE_H | ||
#define TOOLS_CREATE_PROJECT_XCODE_H | ||
|
||
#include "create_project.h" | ||
|
||
#include <algorithm> | ||
#include <vector> | ||
|
||
namespace CreateProjectTool { | ||
|
||
class XCodeProvider : public ProjectProvider { | ||
public: | ||
XCodeProvider(StringList &global_warnings, std::map<std::string, StringList> &project_warnings, const int version = 0); | ||
|
||
protected: | ||
|
||
void createWorkspace(const BuildSetup &setup); | ||
|
||
void createOtherBuildFiles(const BuildSetup &setup); | ||
|
||
void createProjectFile(const std::string &name, const std::string &uuid, const BuildSetup &setup, const std::string &moduleDir, | ||
const StringList &includeList, const StringList &excludeList); | ||
|
||
void writeFileListToProject(const FileNode &dir, std::ofstream &projectFile, const int indentation, | ||
const StringList &duplicate, const std::string &objPrefix, const std::string &filePrefix); | ||
|
||
}; | ||
|
||
} // End of CreateProjectTool namespace | ||
|
||
#endif // TOOLS_CREATE_PROJECT_XCODE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
The Xcode project files can now be created automatically from the GCC | ||
files using the create_project tool inside the /tools/create_project folder. | ||
|
||
To create the default project files, build create_project.exe, copy it inside | ||
this folder and run the create_xcode.bat file for a default build. You can | ||
run create_project.exe with no parameters to check the possible command-line | ||
options. |