Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
531fba61
Commit
531fba61
authored
Apr 26, 2017
by
Eike Ziller
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/4.3'
Change-Id: Ie18d823d0940113e8a78c81204b7a7ca07a060ba
parents
73f2c0f4
b6bf1fdf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
3 deletions
+21
-3
doc/images/qtcreator-cmake-build-settings.png
doc/images/qtcreator-cmake-build-settings.png
+0
-0
doc/src/cmake/creator-projects-cmake-building.qdocinc
doc/src/cmake/creator-projects-cmake-building.qdocinc
+5
-0
src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp
src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp
+3
-2
src/plugins/cmakeprojectmanager/servermode.cpp
src/plugins/cmakeprojectmanager/servermode.cpp
+1
-1
src/plugins/projectexplorer/projectmodels.cpp
src/plugins/projectexplorer/projectmodels.cpp
+2
-0
src/plugins/projectexplorer/projectwindow.cpp
src/plugins/projectexplorer/projectwindow.cpp
+10
-0
No files found.
doc/images/qtcreator-cmake-build-settings.png
View replaced file @
73f2c0f4
View file @
531fba61
24.5 KB
|
W:
|
H:
42 KB
|
W:
|
H:
2-up
Swipe
Onion skin
doc/src/cmake/creator-projects-cmake-building.qdocinc
View file @
531fba61
...
...
@@ -38,12 +38,17 @@
To view all settings, select the \uicontrol Advanced check box.
To add build settings, select \uicontrol Add, and then select the type of
the setting that you are adding: \uicontrol Boolean, \uicontrol String,
\uicontrol Directory, or \uicontrol File.
To modify the value of a build setting, select it, and then select
\uicontrol Edit. The new value is displayed in italics until you save the
changes by selecting \uicontrol {Apply Configuration Changes}. Any
configuration change might trigger a follow-up configuration change, so keep
saving until no more values are displayed in italics.
To reset the changes that you made, select \uicontrol Reset.
//! [cmake build configuration]
...
...
src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp
View file @
531fba61
...
...
@@ -250,9 +250,10 @@ QList<void *> CMakeProjectImporter::examineDirectory(const Utils::FileName &impo
}
const
auto
homeDir
=
Utils
::
FileName
::
fromUserInput
(
QString
::
fromUtf8
(
CMakeConfigItem
::
valueOf
(
"CMAKE_HOME_DIRECTORY"
,
config
)));
if
(
homeDir
!=
projectDirectory
())
{
const
Utils
::
FileName
canonicalProjectDirectory
=
Utils
::
FileUtils
::
canonicalPath
(
projectDirectory
());
if
(
homeDir
!=
canonicalProjectDirectory
)
{
qCDebug
(
cmInputLog
())
<<
"Wrong source directory:"
<<
homeDir
.
toUserOutput
()
<<
"expected:"
<<
p
rojectDirectory
()
.
toUserOutput
();
<<
"expected:"
<<
canonicalP
rojectDirectory
.
toUserOutput
();
return
{
};
}
...
...
src/plugins/cmakeprojectmanager/servermode.cpp
View file @
531fba61
...
...
@@ -464,7 +464,7 @@ void ServerMode::handleHello(const QVariantMap &data)
if
(
m_minorProtocol
>=
0
)
version
.
insert
(
"minor"
,
m_minorProtocol
);
extra
.
insert
(
"protocolVersion"
,
version
);
extra
.
insert
(
"sourceDirectory"
,
m_sourceDirectory
.
to
String
());
extra
.
insert
(
"sourceDirectory"
,
m_sourceDirectory
.
to
FileInfo
().
canonicalFilePath
());
extra
.
insert
(
"buildDirectory"
,
m_buildDirectory
.
toString
());
extra
.
insert
(
"generator"
,
m_generator
);
if
(
!
m_platform
.
isEmpty
())
...
...
src/plugins/projectexplorer/projectmodels.cpp
View file @
531fba61
...
...
@@ -195,6 +195,8 @@ void FlatModel::addOrRebuildProjectModel(Project *project)
container
->
appendChild
(
new
WrapperNode
(
projectFileNode
));
}
container
->
sortChildren
(
&
sortWrapperNodes
);
container
->
forAllChildren
([
this
](
WrapperNode
*
node
)
{
if
(
node
->
m_node
)
{
const
QString
path
=
node
->
m_node
->
filePath
().
toString
();
...
...
src/plugins/projectexplorer/projectwindow.cpp
View file @
531fba61
...
...
@@ -548,6 +548,8 @@ public:
dir
);
FileName
path
=
FileName
::
fromString
(
importDir
);
Target
*
lastTarget
=
nullptr
;
BuildConfiguration
*
lastBc
=
nullptr
;
const
QList
<
BuildInfo
*>
toImport
=
projectImporter
->
import
(
path
,
false
);
for
(
BuildInfo
*
info
:
toImport
)
{
Target
*
target
=
project
->
target
(
info
->
kitId
);
...
...
@@ -561,8 +563,16 @@ public:
BuildConfiguration
*
bc
=
info
->
factory
()
->
create
(
target
,
info
);
QTC_ASSERT
(
bc
,
continue
);
target
->
addBuildConfiguration
(
bc
);
lastTarget
=
target
;
lastBc
=
bc
;
}
}
if
(
lastTarget
&&
lastBc
)
{
SessionManager
::
setActiveBuildConfiguration
(
lastTarget
,
lastBc
,
SetActive
::
Cascade
);
SessionManager
::
setActiveTarget
(
project
,
lastTarget
,
SetActive
::
Cascade
);
}
qDeleteAll
(
toImport
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment