Toggle navigation
Toggle navigation
This project
Loading...
Sign in
arcs
/
ARCS2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Yves Didier
2017-08-12 23:50:28 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
45c5fcec2c1eb09c77193263a259e5d7c994e361
45c5fcec
1 parent
35a5d0b2
comments restored in builder
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
tools/builder/arcsbuilder.cpp
tools/builder/arcsbuilder.cpp
View file @
45c5fce
...
...
@@ -105,13 +105,13 @@ QString getLibraryName(QString libpath)
void
exploreProjectFile
(
QString
profile
)
{
*
First
:
strip
the
name
of
the
pro
file
*
/* First : strip the name of the pro file*/
QFileInfo
fi
(
profile
)
;
QString
name
=
fi
.
baseName
();
QString
path
=
fi
.
absolutePath
();
*
Second
open
the
file
and
detect
lines
*
TARGET
=
something
/
* Second open the file and detect lines
* TARGET = something
*/
QString
target
;
QFile
filepro
(
profile
);
...
...
@@ -131,7 +131,7 @@ void exploreProjectFile(QString profile)
}
while
(
!
line
.
isNull
());
*
select
what
to
put
inside
mapper
/* select what to put inside mapper */
if
(
target
.
isEmpty
())
{
std
::
cout
<<
std
::
setw
(
15
)
<<
qPrintable
(
name
)
<<
" => "
<<
qPrintable
(
path
)
<<
std
::
endl
;
...
...
@@ -173,11 +173,11 @@ void buildBounds(QString path)
unsigned
int
i
;
QDir
d
(
path
);
*
Make
sure
path
is
'/'
terminated
/* Make sure path is '/' terminated*/
if
(
path
.
at
(
path
.
length
()
-
1
)
!=
QDir
::
separator
())
path
+=
QDir
::
separator
();
*
First
pass
:
scan
all
.
pro
files
/* First pass : scan all .pro files*/
QStringList
profiles
=
d
.
entryList
(
QStringList
(
"*.pro"
));
for
(
i
=
0
;
i
<
profiles
.
count
()
;
i
++
)
exploreProjectFile
(
path
+
profiles
[
i
]);
...
...
@@ -193,11 +193,11 @@ void buildBounds(QString path)
}
}
*
Second
pass
:
scan
all
directories
/* Second pass : scan all directories */
QStringList
dirs
=
d
.
entryList
(
QDir
::
Dirs
);
for
(
i
=
0
;
i
<
dirs
.
count
()
;
i
++
)
{
*
filter
out
directories
with
leading
'.'
/* filter out directories with leading '.'*/
if
(
dirs
[
i
].
at
(
0
)
!=
'.'
)
buildBounds
(
path
+
dirs
[
i
]);
}
...
...
Please
register
or
login
to post a comment