File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
buildcc/lib/target/include/target Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 22
22
namespace buildcc ::base {
23
23
24
24
// TODO, Seperate TargetState into lock_ and other internal boolean variables
25
+ // NOTE, This is because apart from lock_ every other parameter is updated
26
+ // during `Target::Build`
27
+ // TargetInfo does not have a `Build` method, it is only meant to hold
28
+ // information
25
29
struct TargetState {
26
30
void SetSourceState (TargetFileExt file_extension);
27
31
void SetPch ();
28
32
void SetLock ();
29
33
30
34
void ExpectsUnlock () const ;
31
35
void ExpectsLock () const ;
36
+ // TODO, IsLocked
32
37
33
38
bool ContainsPch () const { return contains_pch_; }
34
- // TODO, ContainsAsm
35
- // TODO, ContainsC
36
- // TODO, ContainsCpp
37
-
38
- // TODO, IsLocked
39
- // TODO, IsBuilt
40
39
41
40
// TODO, Make these private getters
42
41
bool contains_asm{false };
Original file line number Diff line number Diff line change @@ -155,7 +155,10 @@ class Target : public BuilderInterface, public TargetInfo {
155
155
// Fbs
156
156
bool Store () override ;
157
157
158
- // Callbacks
158
+ // Tasks
159
+ void TaskDeps ();
160
+
161
+ // Callbacks for unit tests
159
162
void SourceRemoved ();
160
163
void SourceAdded ();
161
164
void SourceUpdated ();
@@ -167,15 +170,13 @@ class Target : public BuilderInterface, public TargetInfo {
167
170
void FlagChanged ();
168
171
void ExternalLibChanged ();
169
172
170
- void TaskDeps ();
171
-
172
173
private:
173
174
std::string name_;
174
175
TargetType type_;
175
176
const Toolchain &toolchain_;
176
177
internal::TargetLoader loader_;
177
178
178
- // Friend
179
+ // Friend classes
179
180
CompilePch compile_pch_;
180
181
CompileObject compile_object_;
181
182
LinkTarget link_target_;
You can’t perform that action at this time.
0 commit comments