Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
74602f31
Commit
74602f31
authored
Aug 17, 2009
by
dt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove debugging output, running qmake works for most people.
parent
97bf35fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
22 deletions
+30
-22
src/plugins/qt4projectmanager/qt4project.cpp
src/plugins/qt4projectmanager/qt4project.cpp
+6
-4
src/plugins/qt4projectmanager/qtversionmanager.cpp
src/plugins/qt4projectmanager/qtversionmanager.cpp
+24
-18
No files found.
src/plugins/qt4projectmanager/qt4project.cpp
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
;
...
...
src/plugins/qt4projectmanager/qtversionmanager.cpp
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
);
}
}
...
...
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