Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
8f3c5467
Commit
8f3c5467
authored
Aug 03, 2010
by
ck
Browse files
Maemo: Add packaging template files to project.
Reviewed-by: kh1
parent
2d5c6ed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt-maemo/maemotemplatesmanager.cpp
View file @
8f3c5467
...
...
@@ -36,6 +36,8 @@
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h>
#include <projectexplorer/target.h>
#include <qt4projectmanager/qt4nodes.h>
#include <qt4projectmanager/qt4project.h>
#include <qt4projectmanager/qt4projectmanagerconstants.h>
#include <qt4projectmanager/qt4target.h>
...
...
@@ -141,11 +143,17 @@ void MaemoTemplatesManager::createTemplatesIfNecessary(ProjectExplorer::Target *
}
QDir
debianDir
(
packagingTemplatesDir
+
QLatin1String
(
"/debian"
));
const
QStringList
&
files
=
debianDir
.
entryList
(
QStringList
()
<<
QLatin1String
(
"*.??"
),
QDir
::
Files
);
foreach
(
const
QString
&
fileName
,
files
)
debianDir
.
remove
(
fileName
);
const
QStringList
&
files
=
debianDir
.
entryList
(
QDir
::
Files
);
QStringList
filesToAddToProject
;
foreach
(
const
QString
&
fileName
,
files
)
{
if
(
fileName
.
endsWith
(
QLatin1String
(
".ex"
),
Qt
::
CaseInsensitive
))
{
debianDir
.
remove
(
fileName
);
}
else
filesToAddToProject
<<
debianDir
.
absolutePath
()
+
QLatin1Char
(
'/'
)
+
fileName
;
}
qobject_cast
<
Qt4Project
*>
(
m_activeProject
)
->
rootProjectNode
()
->
addFiles
(
UnknownFileType
,
filesToAddToProject
);
const
QString
rulesFilePath
=
packagingTemplatesDir
+
QLatin1String
(
"/debian/rules"
);
...
...
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