cbp2make
Makefile generation tool for Code::Blocks IDE
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
cbpunit.h
Go to the documentation of this file.
1
/*
2
cbp2make : Makefile generation tool for the Code::Blocks IDE
3
Copyright (C) 2010-2013 Mirai Computing (mirai.computing@gmail.com)
4
5
This program is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
//------------------------------------------------------------------------------
20
#ifndef CBP_UNIT_H
21
#define CBP_UNIT_H
22
//------------------------------------------------------------------------------
23
#include "
stlstrings.h
"
24
#include "
cbptarget.h
"
25
//------------------------------------------------------------------------------
26
27
class
TiXmlNode;
28
class
TiXmlElement;
29
class
CCodeBlocksProject
;
30
31
class
CUnitWeightComparison
;
32
class
CBuildUnit
33
{
34
friend
class
CUnitWeightComparison
;
35
private
:
36
CString
m_FileName
;
37
CStringList
m_Targets
;
38
CString
m_CompilerVariable
;
39
bool
m_DoCompile
;
40
bool
m_DoLink
;
41
int
m_Weight
;
42
//
43
CString
m_ObjectFileName
;
44
public
:
45
CString
FileName
(
void
)
const
{
return
m_FileName
; }
46
CString
Extension
(
void
)
const
;
47
bool
BelongToTarget
(
const
CString
& TargetName);
48
CString
CompilerVariable
(
void
)
const
{
return
m_CompilerVariable
; }
49
bool
DoCompile
(
void
)
const
{
return
m_DoCompile
; }
50
bool
DoLink
(
void
)
const
{
return
m_DoLink
; }
51
int
Weight
(
void
)
const
{
return
m_Weight
; }
52
public
:
53
void
Clear
(
void
);
54
void
Read
(
const
TiXmlElement *UnitRoot);
55
void
Show
(
void
);
56
public
:
57
CBuildUnit
(
void
);
58
~CBuildUnit
(
void
);
59
};
60
61
#endif
62
//------------------------------------------------------------------------------
Generated on Sun Jun 9 2013 10:55:52 for cbp2make by
1.8.4