summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeLiteGenerator.h
diff options
context:
space:
mode:
authorEran Ifrah <eran.ifrah@gmail.com>2014-01-10 07:20:11 (GMT)
committerEran Ifrah <eran.ifrah@gmail.com>2014-01-10 07:20:11 (GMT)
commit0c4e8c70a0449bde505d696d120ac0ef207f92a5 (patch)
tree67a60a7c32db82fc8159739c48e1cee3a2963f7e /Source/cmExtraCodeLiteGenerator.h
parent00f53bc260ae7febd13616b1843b241dc3c07966 (diff)
downloadCMake-0c4e8c70a0449bde505d696d120ac0ef207f92a5.zip
CMake-0c4e8c70a0449bde505d696d120ac0ef207f92a5.tar.gz
CMake-0c4e8c70a0449bde505d696d120ac0ef207f92a5.tar.bz2
Add support for codelite IDE project fles
Diffstat (limited to 'Source/cmExtraCodeLiteGenerator.h')
-rw-r--r--Source/cmExtraCodeLiteGenerator.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/Source/cmExtraCodeLiteGenerator.h b/Source/cmExtraCodeLiteGenerator.h
new file mode 100644
index 0000000..984313e
--- /dev/null
+++ b/Source/cmExtraCodeLiteGenerator.h
@@ -0,0 +1,54 @@
+/*============================================================================
+ CMake - Cross Platform Makefile Generator
+ Copyright 2004-2009 Kitware, Inc.
+ Copyright 2004 Alexander Neundorf (neundorf@kde.org)
+ Copyright 2013 Eran Ifrah (eran.ifrah@gmail.com)
+
+ Distributed under the OSI-approved BSD License (the "License");
+ see accompanying file Copyright.txt for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even the
+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License for more information.
+============================================================================*/
+#ifndef cmGlobalCodeLiteGenerator_h
+#define cmGlobalCodeLiteGenerator_h
+
+#include "cmExternalMakefileProjectGenerator.h"
+
+class cmLocalGenerator;
+
+class cmExtraCodeLiteGenerator : public cmExternalMakefileProjectGenerator
+{
+protected:
+ std::string ConfigName;
+ std::string WorkspacePath;
+ unsigned int CpuCount;
+
+protected:
+ std::string GetCodeLiteCompilerName(const cmMakefile* mf) const;
+ std::string GetConfigurationName( const cmMakefile* mf ) const;
+ std::string GetBuildCommand(const cmMakefile* mf) const;
+ std::string GetCleanCommand(const cmMakefile* mf) const;
+ std::string GetRebuildCommand(const cmMakefile* mf) const;
+ std::string GetSingleFileBuildCommand(const cmMakefile* mf) const;
+public:
+ cmExtraCodeLiteGenerator();
+
+ virtual const char* GetName() const
+ { return cmExtraCodeLiteGenerator::GetActualName();}
+ static const char* GetActualName() { return "CodeLite";}
+ static cmExternalMakefileProjectGenerator* New()
+ { return new cmExtraCodeLiteGenerator; }
+ /** Get the documentation entry for this generator. */
+ virtual void GetDocumentation(cmDocumentationEntry& entry,
+ const char* fullName) const;
+
+ virtual void Generate();
+ void CreateProjectFile(const std::vector<cmLocalGenerator*>& lgs);
+
+ void CreateNewProjectFile(const std::vector<cmLocalGenerator*>& lgs,
+ const std::string& filename);
+};
+
+#endif