Bug 1501507. Make the Eclipse CDT project ignore some directories when indexing. r=botond
authorJonathan Watt <jwatt@jwatt.org>
Tue, 30 Oct 2018 15:56:29 +0000
changeset 503551 9d92116a6e98e57ed4be283eb13d21984db886fd
parent 503550 9cdaafe1830232918fd372a04c49026a90aee2ed
child 503552 58bb44b8cbba05ecdc9bb23cd826fd90f3a88969
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbotond
bugs1501507
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1501507. Make the Eclipse CDT project ignore some directories when indexing. r=botond Differential Revision: https://phabricator.services.mozilla.com/D9606
python/mozbuild/mozbuild/backend/cpp_eclipse.py
--- a/python/mozbuild/mozbuild/backend/cpp_eclipse.py
+++ b/python/mozbuild/mozbuild/backend/cpp_eclipse.py
@@ -409,17 +409,21 @@ CPROJECT_TEMPLATE_FILEINFO = """        
                                                 <tool id="org.eclipse.cdt.build.core.settings.holder.582514939.463639939" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder.582514939">
                                                         <option id="org.eclipse.cdt.build.core.settings.holder.symbols.232300236" superClass="org.eclipse.cdt.build.core.settings.holder.symbols" valueType="definedSymbols">
                                                                 <listOptionValue builtIn="false" value="BENWA=BENWAVAL"/>
                                                         </option>
                                                         <inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1942876228" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
                                                 </tool>
                                         </fileInfo>
 """
-CPROJECT_TEMPLATE_FOOTER = """                                </configuration>
+CPROJECT_TEMPLATE_FOOTER = """
+					<sourceEntries>
+						<entry excluding="**/lib*|**/third_party/|tree/*.xcodeproj/|tree/.cargo/|tree/.vscode/|tree/build/|tree/extensions/|tree/gfx/angle/|tree/gfx/cairo/|tree/gfx/skia/skia/|tree/intl/icu/|tree/js/|tree/media/|tree/modules/freetype2|tree/modules/pdfium/|tree/netwerk/|tree/netwerk/sctp|tree/netwerk/srtp|tree/nsprpub/lib|tree/nsprpub/pr/src|tree/other-licenses/|tree/parser/|tree/python/|tree/security/nss/|tree/tools/" flags="VALUE_WORKSPACE_PATH" kind="sourcePath" name=""/>
+					</sourceEntries>
+                                </configuration>
                         </storageModule>
                         <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
                 </cconfiguration>
         </storageModule>
         <storageModule moduleId="cdtBuildSystem" version="4.0.0">
                 <project id="Empty.null.1281234804" name="Empty"/>
         </storageModule>
         <storageModule moduleId="scannerConfiguration">