Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/project/builderjob.cpp
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | 88 | switch( type ) { | |||
---|---|---|---|---|---|
91 | case BuilderJob::Clean: | 91 | case BuilderJob::Clean: | ||
92 | return i18nc( "@info:status", "clean" ); | 92 | return i18nc( "@info:status", "clean" ); | ||
93 | case BuilderJob::Configure: | 93 | case BuilderJob::Configure: | ||
94 | return i18nc( "@info:status", "configure" ); | 94 | return i18nc( "@info:status", "configure" ); | ||
95 | case BuilderJob::Install: | 95 | case BuilderJob::Install: | ||
96 | return i18nc( "@info:status", "install" ); | 96 | return i18nc( "@info:status", "install" ); | ||
97 | case BuilderJob::Prune: | 97 | case BuilderJob::Prune: | ||
98 | return i18nc( "@info:status", "prune" ); | 98 | return i18nc( "@info:status", "prune" ); | ||
99 | default: | | |||
100 | return QString(); | | |||
101 | } | 99 | } | ||
100 | return QString(); | ||||
102 | } | 101 | } | ||
103 | 102 | | |||
104 | void BuilderJobPrivate::addJob( BuilderJob::BuildType t, ProjectBaseItem* item ) | 103 | void BuilderJobPrivate::addJob( BuilderJob::BuildType t, ProjectBaseItem* item ) | ||
105 | { | 104 | { | ||
106 | Q_ASSERT(item); | 105 | Q_ASSERT(item); | ||
107 | qCDebug(PROJECT) << "adding build job for item:" << item->text(); | 106 | qCDebug(PROJECT) << "adding build job for item:" << item->text(); | ||
108 | Q_ASSERT(item->project()); | 107 | Q_ASSERT(item->project()); | ||
109 | qCDebug(PROJECT) << "project for item:" << item->project()->name(); | 108 | qCDebug(PROJECT) << "project for item:" << item->project()->name(); | ||
Show All 23 Lines | 131 | if (!hasJobForProject(t, item->project())) { | |||
133 | j = item->project()->buildSystemManager()->builder()->prune( item->project() ); | 132 | j = item->project()->buildSystemManager()->builder()->prune( item->project() ); | ||
134 | } | 133 | } | ||
135 | break; | 134 | break; | ||
136 | case BuilderJob::Configure: | 135 | case BuilderJob::Configure: | ||
137 | if (!hasJobForProject(t, item->project())) { | 136 | if (!hasJobForProject(t, item->project())) { | ||
138 | j = item->project()->buildSystemManager()->builder()->configure( item->project() ); | 137 | j = item->project()->buildSystemManager()->builder()->configure( item->project() ); | ||
139 | } | 138 | } | ||
140 | break; | 139 | break; | ||
141 | default: | | |||
142 | break; | | |||
143 | } | 140 | } | ||
144 | if( j ) | 141 | if( j ) | ||
145 | { | 142 | { | ||
146 | q->addCustomJob( t, j, item ); | 143 | q->addCustomJob( t, j, item ); | ||
147 | } | 144 | } | ||
148 | } | 145 | } | ||
149 | 146 | | |||
150 | BuilderJob::BuilderJob() | 147 | BuilderJob::BuilderJob() | ||
▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines |