Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
d5b00aae
Commit
d5b00aae
authored
16 years ago
by
dt
Browse files
Options
Downloads
Patches
Plain Diff
Forgot these two files in previous commit
Should have been part of
83e3524b
parent
6a231553
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/cmakeprojectmanager/cmakestep.cpp
+90
-0
90 additions, 0 deletions
src/plugins/cmakeprojectmanager/cmakestep.cpp
src/plugins/cmakeprojectmanager/cmakestep.h
+48
-0
48 additions, 0 deletions
src/plugins/cmakeprojectmanager/cmakestep.h
with
138 additions
and
0 deletions
src/plugins/cmakeprojectmanager/cmakestep.cpp
0 → 100644
+
90
−
0
View file @
d5b00aae
#include
"cmakestep.h"
#include
"cmakeprojectconstants.h"
#include
"cmakeproject.h"
using
namespace
CMakeProjectManager
;
using
namespace
CMakeProjectManager
::
Internal
;
CMakeStep
::
CMakeStep
(
CMakeProject
*
pro
)
:
BuildStep
(
pro
),
m_pro
(
pro
)
{
}
CMakeStep
::~
CMakeStep
()
{
}
bool
CMakeStep
::
init
(
const
QString
&
buildConfiguration
)
{
// TODO
}
void
CMakeStep
::
run
(
QFutureInterface
<
bool
>
&
fi
)
{
// TODO
fi
.
reportResult
(
true
);
}
QString
CMakeStep
::
name
()
{
return
"CMake"
;
}
QString
CMakeStep
::
displayName
()
{
return
Constants
::
CMAKESTEP
;
}
ProjectExplorer
::
BuildStepConfigWidget
*
CMakeStep
::
createConfigWidget
()
{
return
new
CMakeBuildStepConfigWidget
();
}
bool
CMakeStep
::
immutable
()
const
{
return
true
;
}
//
// CMakeBuildStepConfigWidget
//
QString
CMakeBuildStepConfigWidget
::
displayName
()
const
{
return
"CMake"
;
}
void
CMakeBuildStepConfigWidget
::
init
(
const
QString
&
buildConfiguration
)
{
// TODO
}
//
// CMakeBuildStepFactory
//
bool
CMakeBuildStepFactory
::
canCreate
(
const
QString
&
name
)
const
{
return
(
Constants
::
CMAKESTEP
==
name
);
}
ProjectExplorer
::
BuildStep
*
CMakeBuildStepFactory
::
create
(
ProjectExplorer
::
Project
*
project
,
const
QString
&
name
)
const
{
Q_ASSERT
(
name
==
Constants
::
CMAKESTEP
);
CMakeProject
*
pro
=
qobject_cast
<
CMakeProject
*>
(
project
);
Q_ASSERT
(
pro
);
return
new
CMakeStep
(
pro
);
}
QStringList
CMakeBuildStepFactory
::
canCreateForProject
(
ProjectExplorer
::
Project
*
pro
)
const
{
return
QStringList
();
}
QString
CMakeBuildStepFactory
::
displayNameForName
(
const
QString
&
name
)
const
{
return
"CMake"
;
}
This diff is collapsed.
Click to expand it.
src/plugins/cmakeprojectmanager/cmakestep.h
0 → 100644
+
48
−
0
View file @
d5b00aae
#ifndef CMAKESTEP_H
#define CMAKESTEP_H
#include
<projectexplorer/buildstep.h>
namespace
CMakeProjectManager
{
namespace
Internal
{
class
CMakeProject
;
class
CMakeBuildStepConfigWidget
;
class
CMakeStep
:
public
ProjectExplorer
::
BuildStep
{
public:
CMakeStep
(
CMakeProject
*
pro
);
~
CMakeStep
();
virtual
bool
init
(
const
QString
&
buildConfiguration
);
virtual
void
run
(
QFutureInterface
<
bool
>
&
fi
);
virtual
QString
name
();
virtual
QString
displayName
();
virtual
ProjectExplorer
::
BuildStepConfigWidget
*
createConfigWidget
();
virtual
bool
immutable
()
const
;
private:
CMakeProject
*
m_pro
;
};
class
CMakeBuildStepConfigWidget
:
public
ProjectExplorer
::
BuildStepConfigWidget
{
public:
virtual
QString
displayName
()
const
;
virtual
void
init
(
const
QString
&
buildConfiguration
);
};
class
CMakeBuildStepFactory
:
public
ProjectExplorer
::
IBuildStepFactory
{
virtual
bool
canCreate
(
const
QString
&
name
)
const
;
virtual
ProjectExplorer
::
BuildStep
*
create
(
ProjectExplorer
::
Project
*
pro
,
const
QString
&
name
)
const
;
virtual
QStringList
canCreateForProject
(
ProjectExplorer
::
Project
*
pro
)
const
;
virtual
QString
displayNameForName
(
const
QString
&
name
)
const
;
};
}
}
#endif // CMAKESTEP_H
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment