aboutsummaryrefslogtreecommitdiff
path: root/tools/create_project/msvc.h
diff options
context:
space:
mode:
authorJulien Templier2010-11-23 11:22:31 +0000
committerJulien Templier2010-11-23 11:22:31 +0000
commit3cb5c64477845e5306d75f394692b2e57267ffb8 (patch)
treeb88b096297ea2790ab7b98ff4d69b54e8fa7d8b9 /tools/create_project/msvc.h
parent569ad6caba1287810ff09b76133a0dae675da1f9 (diff)
downloadscummvm-rg350-3cb5c64477845e5306d75f394692b2e57267ffb8.tar.gz
scummvm-rg350-3cb5c64477845e5306d75f394692b2e57267ffb8.tar.bz2
scummvm-rg350-3cb5c64477845e5306d75f394692b2e57267ffb8.zip
TOOLS: Move MSBuild and Visual Studio project providers to separate files
- Add option --build-events to run custom pre/post build events as part of the build (defaults to false and VS2010 only ATM) - Only run build events as part of VS2010 build with all engines enabled (ie. dev build) svn-id: r54424
Diffstat (limited to 'tools/create_project/msvc.h')
-rw-r--r--tools/create_project/msvc.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/tools/create_project/msvc.h b/tools/create_project/msvc.h
index d5c90972f4..f41ecc3aba 100644
--- a/tools/create_project/msvc.h
+++ b/tools/create_project/msvc.h
@@ -95,75 +95,6 @@ protected:
std::string getPostBuildEvent(bool isWin32) const;
};
-class VisualStudioProvider : public MSVCProvider {
-public:
- VisualStudioProvider(StringList &global_warnings, std::map<std::string, StringList> &project_warnings, const int version);
-
-protected:
- 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);
-
- void writeReferences(std::ofstream &output);
-
- void outputGlobalPropFile(std::ofstream &properties, int bits, const StringList &defines, const std::string &prefix);
-
- void createBuildProp(const BuildSetup &setup, bool isRelease, bool isWin32, bool enableAnalysis);
-
- const char *getProjectExtension();
- const char *getPropertiesExtension();
- int getVisualStudioVersion();
-};
-
-class MSBuildProvider : public MSVCProvider {
-public:
- MSBuildProvider(StringList &global_warnings, std::map<std::string, StringList> &project_warnings, const int version);
-
-protected:
- void createProjectFile(const std::string &name, const std::string &uuid, const BuildSetup &setup, const std::string &moduleDir,
- const StringList &includeList, const StringList &excludeList);
-
- void outputProjectSettings(std::ofstream &project, const std::string &name, const BuildSetup &setup, bool isRelease, bool isWin32, bool enableAnalysis);
-
- void writeFileListToProject(const FileNode &dir, std::ofstream &projectFile, const int indentation,
- const StringList &duplicate, const std::string &objPrefix, const std::string &filePrefix);
-
- void writeReferences(std::ofstream &output);
-
- void outputGlobalPropFile(std::ofstream &properties, int bits, const StringList &defines, const std::string &prefix);
-
- void createBuildProp(const BuildSetup &setup, bool isRelease, bool isWin32, bool enableAnalysis);
-
- const char *getProjectExtension();
- const char *getPropertiesExtension();
- int getVisualStudioVersion();
-
-private:
- struct FileEntry {
- std::string name;
- std::string path;
- std::string filter;
- std::string prefix;
-
- bool operator<(const FileEntry& rhs) const {
- return path.compare(rhs.path) == -1; // Not exactly right for alphabetical order, but good enough
- }
- };
- typedef std::list<FileEntry> FileEntries;
-
- std::list<std::string> _filters; // list of filters (we need to create a GUID for each filter id)
- FileEntries _compileFiles;
- FileEntries _includeFiles;
- FileEntries _otherFiles;
- FileEntries _asmFiles;
- FileEntries _resourceFiles;
-
- void computeFileList(const FileNode &dir, const StringList &duplicate, const std::string &objPrefix, const std::string &filePrefix);
- void createFiltersFile(const BuildSetup &setup, const std::string &name);
-};
-
} // End of CreateProjectTool namespace
#endif // TOOLS_CREATE_PROJECT_MSVC_H