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
528ec741
Commit
528ec741
authored
Apr 13, 2010
by
Erik Verbruggen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add private frameworks when a framework is added.
Task-number: QTCREATORBUG-1102 Reviewed-by: Roberto Raggi
parent
375dd56e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
src/plugins/cpptools/cppmodelmanager.cpp
src/plugins/cpptools/cppmodelmanager.cpp
+35
-1
src/plugins/cpptools/cppmodelmanager.h
src/plugins/cpptools/cppmodelmanager.h
+1
-0
No files found.
src/plugins/cpptools/cppmodelmanager.cpp
View file @
528ec741
...
...
@@ -219,7 +219,41 @@ void CppPreprocessor::setIncludePaths(const QStringList &includePaths)
}
void
CppPreprocessor
::
setFrameworkPaths
(
const
QStringList
&
frameworkPaths
)
{
m_frameworkPaths
=
frameworkPaths
;
}
{
m_frameworkPaths
.
clear
();
foreach
(
const
QString
&
frameworkPath
,
frameworkPaths
)
{
addFrameworkPath
(
frameworkPath
);
}
}
// Add the given framework path, and expand private frameworks.
//
// Example:
// <framework-path>/ApplicationServices.framework
// has private frameworks in:
// <framework-path>/ApplicationServices.framework/Frameworks
// if the "Frameworks" folder exists inside the top level framework.
void
CppPreprocessor
::
addFrameworkPath
(
const
QString
&
frameworkPath
)
{
// The algorithm below is a bit too eager, but that's because we're not getting
// in the frameworks we're linking against. If we would have that, then we could
// add only those private frameworks.
if
(
!
m_frameworkPaths
.
contains
(
frameworkPath
))
{
m_frameworkPaths
.
append
(
frameworkPath
);
}
const
QDir
frameworkDir
(
frameworkPath
);
const
QStringList
filter
=
QStringList
()
<<
QLatin1String
(
"*.framework"
);
foreach
(
const
QFileInfo
&
framework
,
frameworkDir
.
entryInfoList
(
filter
))
{
if
(
!
framework
.
isDir
())
continue
;
const
QFileInfo
privateFrameworks
(
framework
.
absoluteFilePath
(),
QLatin1String
(
"Frameworks"
));
if
(
privateFrameworks
.
exists
()
&&
privateFrameworks
.
isDir
())
{
addFrameworkPath
(
privateFrameworks
.
absoluteFilePath
());
}
}
}
void
CppPreprocessor
::
setProjectFiles
(
const
QStringList
&
files
)
{
m_projectFiles
=
files
;
}
...
...
src/plugins/cpptools/cppmodelmanager.h
View file @
528ec741
...
...
@@ -252,6 +252,7 @@ public:
void
setWorkingCopy
(
const
CppModelManagerInterface
::
WorkingCopy
&
workingCopy
);
void
setIncludePaths
(
const
QStringList
&
includePaths
);
void
setFrameworkPaths
(
const
QStringList
&
frameworkPaths
);
void
addFrameworkPath
(
const
QString
&
frameworkPath
);
void
setProjectFiles
(
const
QStringList
&
files
);
void
setTodo
(
const
QStringList
&
files
);
...
...
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