Browse Source

eclipse: remove repeated entries in include paths for C/C++

Make sure just unique include paths (both system and local) are
added to prevent overcrowding with useless redundant include paths
that grow up a lot the generated XML file and make the usage of
the GUI messy.
The filter was already there for Java/Python.
merge-requests/2330/head
Federico Pellegrin 2 months ago
parent
commit
557139ecda
  1. 6
      waflib/extras/eclipse.py

6
waflib/extras/eclipse.py

@ -133,9 +133,11 @@ class eclipse(Build.BuildContext):
path = p.path_from(self.srcnode)
if (path.startswith("/")):
cpppath.append(path)
if path not in cpppath:
cpppath.append(path)
else:
workspace_includes.append(path)
if path not in workspace_includes:
workspace_includes.append(path)
if is_cc and path not in source_dirs:
source_dirs.append(path)

Loading…
Cancel
Save