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
74602f31
Commit
74602f31
authored
15 years ago
by
dt
Browse files
Options
Downloads
Patches
Plain Diff
Remove debugging output, running qmake works for most people.
parent
97bf35fe
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/qt4projectmanager/qt4project.cpp
+6
-4
6 additions, 4 deletions
src/plugins/qt4projectmanager/qt4project.cpp
src/plugins/qt4projectmanager/qtversionmanager.cpp
+24
-18
24 additions, 18 deletions
src/plugins/qt4projectmanager/qtversionmanager.cpp
with
30 additions
and
22 deletions
src/plugins/qt4projectmanager/qt4project.cpp
+
6
−
4
View file @
74602f31
...
...
@@ -1195,10 +1195,12 @@ bool Qt4Project::compareBuildConfigurationToImportFrom(const QString &buildConfi
parsedSpec
=
parsedSpec
.
toLower
();
#endif
qDebug
()
<<
"Actual args:"
<<
actualArgs
;
qDebug
()
<<
"Parsed args:"
<<
parsedArgs
;
qDebug
()
<<
"Actual spec:"
<<
actualSpec
;
qDebug
()
<<
"Parsed spec:"
<<
parsedSpec
;
if
(
debug
)
{
qDebug
()
<<
"Actual args:"
<<
actualArgs
;
qDebug
()
<<
"Parsed args:"
<<
parsedArgs
;
qDebug
()
<<
"Actual spec:"
<<
actualSpec
;
qDebug
()
<<
"Parsed spec:"
<<
parsedSpec
;
}
if
(
actualArgs
==
parsedArgs
&&
actualSpec
==
parsedSpec
)
return
true
;
...
...
This diff is collapsed.
Click to expand it.
src/plugins/qt4projectmanager/qtversionmanager.cpp
+
24
−
18
View file @
74602f31
...
...
@@ -68,6 +68,8 @@ static const char *defaultQtVersionKey = "DefaultQtVersion";
static
const
char
*
newQtVersionsKey
=
"NewQtVersions"
;
static
const
char
*
PATH_AUTODETECTION_SOURCE
=
"PATH"
;
enum
{
debug
=
0
};
QtVersionManager
*
QtVersionManager
::
m_self
=
0
;
QtVersionManager
::
QtVersionManager
()
...
...
@@ -551,29 +553,32 @@ void dumpQMakeAssignments(const QList<QMakeAssignment> &list)
}
}
// New code
QPair
<
QtVersion
::
QmakeBuildConfig
,
QStringList
>
QtVersionManager
::
scanMakeFile
(
const
QString
&
directory
,
QtVersion
::
QmakeBuildConfig
defaultBuildConfig
)
{
qDebug
()
<<
"ScanMakeFile, the gory details:"
;
if
(
debug
)
qDebug
()
<<
"ScanMakeFile, the gory details:"
;
QtVersion
::
QmakeBuildConfig
result
=
QtVersion
::
NoBuild
;
QStringList
result2
;
QString
line
=
findQMakeLine
(
directory
);
if
(
!
line
.
isEmpty
())
{
qDebug
()
<<
"Found line"
<<
line
;
if
(
debug
)
qDebug
()
<<
"Found line"
<<
line
;
line
=
trimLine
(
line
);
qDebug
()
<<
"Trimmed to"
<<
line
;
QStringList
parts
=
splitLine
(
line
);
qDebug
()
<<
"Splitted into"
<<
parts
;
if
(
debug
)
qDebug
()
<<
"Splitted into"
<<
parts
;
QList
<
QMakeAssignment
>
assignments
;
QList
<
QMakeAssignment
>
afterAssignments
;
QStringList
additionalArguments
;
parseParts
(
parts
,
&
assignments
,
&
afterAssignments
,
&
additionalArguments
);
dumpQMakeAssignments
(
assignments
);
if
(
!
afterAssignments
.
isEmpty
())
qDebug
()
<<
"-after"
;
dumpQMakeAssignments
(
afterAssignments
);
if
(
debug
)
{
dumpQMakeAssignments
(
assignments
);
if
(
!
afterAssignments
.
isEmpty
())
qDebug
()
<<
"-after"
;
dumpQMakeAssignments
(
afterAssignments
);
}
// Search in assignments for CONFIG(+=,-=,=)(debug,release,debug_and_release)
// Also remove them from the list
...
...
@@ -592,14 +597,16 @@ QPair<QtVersion::QmakeBuildConfig, QStringList> QtVersionManager::scanMakeFile(c
}
// Dump the gathered information:
qDebug
()
<<
"
\n\n
Dumping information from scanMakeFile"
;
qDebug
()
<<
"QMake CONFIG variable parsing"
;
qDebug
()
<<
" "
<<
(
result
&
QtVersion
::
NoBuild
?
"No Build"
:
QString
::
number
(
int
(
result
)));
qDebug
()
<<
" "
<<
(
result
&
QtVersion
::
DebugBuild
?
"debug"
:
"release"
);
qDebug
()
<<
" "
<<
(
result
&
QtVersion
::
BuildAll
?
"debug_and_release"
:
"no debug_and_release"
);
qDebug
()
<<
"
\n
Addtional Arguments"
;
qDebug
()
<<
result2
;
qDebug
()
<<
"
\n\n
"
;
if
(
debug
)
{
qDebug
()
<<
"
\n\n
Dumping information from scanMakeFile"
;
qDebug
()
<<
"QMake CONFIG variable parsing"
;
qDebug
()
<<
" "
<<
(
result
&
QtVersion
::
NoBuild
?
"No Build"
:
QString
::
number
(
int
(
result
)));
qDebug
()
<<
" "
<<
(
result
&
QtVersion
::
DebugBuild
?
"debug"
:
"release"
);
qDebug
()
<<
" "
<<
(
result
&
QtVersion
::
BuildAll
?
"debug_and_release"
:
"no debug_and_release"
);
qDebug
()
<<
"
\n
Addtional Arguments"
;
qDebug
()
<<
result2
;
qDebug
()
<<
"
\n\n
"
;
}
return
qMakePair
(
result
,
result2
);
}
...
...
@@ -690,7 +697,6 @@ void QtVersionManager::parseParts(const QStringList &parts, QList<QMakeAssignmen
}
else
if
(
part
==
"-o"
)
{
ignoreNext
=
true
;
}
else
{
qDebug
()
<<
"Not parsed"
<<
part
;
additionalArguments
->
append
(
part
);
}
}
...
...
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