| 1 |
// OSRail -- a network enabled railroad operations simulator and utilities |
|---|
| 2 |
// Copyright (C) 2007,2008 Samuel E. Henley sehenley@comcast.net |
|---|
| 3 |
// |
|---|
| 4 |
// This program is free software; you can redistribute it and/or modify |
|---|
| 5 |
// it under the terms of the GNU General Public License as published by |
|---|
| 6 |
// the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 |
// (at your option) any later version. |
|---|
| 8 |
// |
|---|
| 9 |
// This program is distributed in the hope that it will be useful, |
|---|
| 10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 |
// GNU General Public License for more details. |
|---|
| 13 |
// |
|---|
| 14 |
// You should have received a copy of the GNU General Public License along |
|---|
| 15 |
// with this program; if not, write to the Free Software Foundation, Inc., |
|---|
| 16 |
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|---|
| 17 |
// |
|---|
| 18 |
// |
|---|
| 19 |
//---------------------------------------------------------------------- |
|---|
| 20 |
/// \file |
|---|
| 21 |
/// Header file for CodeBlocks Local (Project Files) Generator for CMake |
|---|
| 22 |
#ifndef cmLocalCodeBlocksGenerator_h |
|---|
| 23 |
#define cmLocalCodeBlocksGenerator_h |
|---|
| 24 |
|
|---|
| 25 |
#include "cmGlobalCodeBlocksGenerator.h" |
|---|
| 26 |
#include "cmLocalGenerator.h" |
|---|
| 27 |
#include "cmGeneratedFileStream.h" |
|---|
| 28 |
|
|---|
| 29 |
///cmLocalCodeBlocksGenerator is responsable for the generation process for a single cmakelists.txt file |
|---|
| 30 |
class cmLocalCodeBlocksGenerator : public cmLocalGenerator |
|---|
| 31 |
{ |
|---|
| 32 |
public: |
|---|
| 33 |
cmLocalCodeBlocksGenerator(){}; |
|---|
| 34 |
virtual ~cmLocalCodeBlocksGenerator(){} |
|---|
| 35 |
|
|---|
| 36 |
/// Generate the project for this directory. |
|---|
| 37 |
virtual void Generate(); |
|---|
| 38 |
|
|---|
| 39 |
/// Process the CMakeLists files for this directory to fill in the |
|---|
| 40 |
/// Makefile ivar |
|---|
| 41 |
virtual void ConfigureFinalPass(); |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
/// Write CodeBlocks Project files for a directory. |
|---|
| 45 |
void writeProject( cmMakefile* mf, const cmTarget& target, const std::string& workspace_directory, |
|---|
| 46 |
const std::string& project_file, std::set<const cmTarget*>& depends ); |
|---|
| 47 |
|
|---|
| 48 |
void writeUtilityProject( cmMakefile* mf, const cmTarget& target, const std::string& workspace_directory, |
|---|
| 49 |
const std::string& project_file ); |
|---|
| 50 |
|
|---|
| 51 |
void writeCommandProject( cmMakefile* mf, const std::string& command, const std::string& title, const std::string& project_file ); |
|---|
| 52 |
|
|---|
| 53 |
private: |
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
}; |
|---|
| 57 |
|
|---|
| 58 |
#endif //cmLocalCodeBlocksGenerator_h |
|---|