From d9b8eb3fd0061cb8ee70ee458f2ad00a953452ef Mon Sep 17 00:00:00 2001 From: Doug Schaefer Date: Wed, 22 Nov 2017 16:40:14 -0500 Subject: [PATCH] Hook up the old Include Paths and Symbols page to Makefile projs. Makefile projects depend on build output parsing to pick up compiler options to use while indexing. Sometimes, that just doesn't work. As a back up we've always allowed users to manually add them to the project. Long ago when we had pure make projects we had UI for this. This change hooks that old UI up. It was a time before build configs so they get applied to them all but it serves it's role as a backup when users run into problems. Unmarked everything I use here from deprecated until we decide how to replace these with Core build config aware settings. Change-Id: I6fc4d48e5315df3c60c7591b026ae0a53a1f505e --- .../templates/simple/Makefile | 4 + build/org.eclipse.cdt.make.ui/plugin.xml | 4 +- .../cdt/core/build/CBuildConfiguration.java | 83 ++++++++++++++++++- .../cdt/core/build/ScannerInfoCache.java | 32 +++++++ .../cpaths/AbstractPathOptionBlock.java | 4 - .../internal/ui/dialogs/cpaths/CPElement.java | 5 -- .../ui/dialogs/cpaths/CPElementAttribute.java | 5 -- .../ui/dialogs/cpaths/CPElementFilter.java | 7 +- .../ui/dialogs/cpaths/CPElementGroup.java | 5 -- .../cpaths/CPElementLabelProvider.java | 5 -- .../dialogs/cpaths/CPListImageDescriptor.java | 18 ++-- .../ui/dialogs/cpaths/CPathBasePage.java | 4 - .../cpaths/CPathContainerDefaultPage.java | 31 ++++--- .../cpaths/CPathContainerDescriptor.java | 5 -- .../cpaths/CPathContainerSelectionPage.java | 5 -- .../dialogs/cpaths/CPathContainerWizard.java | 5 -- .../ui/dialogs/cpaths/CPathFilterPage.java | 25 +++--- .../CPathIncludeSymbolEntryBasePage.java | 4 - .../cpaths/CPathIncludeSymbolEntryPage.java | 4 - .../CPathIncludeSymbolEntryPerFilePage.java | 4 - .../cpaths/ExclusionPatternDialog.java | 6 -- .../cpaths/ExclusionPatternEntryDialog.java | 5 -- .../dialogs/cpaths/IContainerDescriptor.java | 6 -- .../cpaths/IncludesSymbolsPropertyPage.java | 2 - .../cpaths/NewIncludesSymbolsTabBlock.java | 3 - .../cpaths/ProjectContainerDescriptor.java | 12 +-- .../dialogs/cpaths/ProjectContainerPage.java | 5 -- .../cdt/ui/dialogs/TabFolderOptionBlock.java | 13 ++- .../ui/wizards/IPathEntryContainerPage.java | 6 -- 29 files changed, 160 insertions(+), 157 deletions(-) diff --git a/build/org.eclipse.cdt.make.core/templates/simple/Makefile b/build/org.eclipse.cdt.make.core/templates/simple/Makefile index 8214dabe9d1..bcf0bb59a77 100644 --- a/build/org.eclipse.cdt.make.core/templates/simple/Makefile +++ b/build/org.eclipse.cdt.make.core/templates/simple/Makefile @@ -4,6 +4,10 @@ OBJS = ${projectName}.o ifeq ($(BUILD_MODE),debug) CFLAGS += -g +else ifeq ($(BUILD_MODE),run) + CFLAGS += -O2 +else + $(error Build mode $(BUILD_MODE) not supported by this Makefile) endif all: ${projectName} diff --git a/build/org.eclipse.cdt.make.ui/plugin.xml b/build/org.eclipse.cdt.make.ui/plugin.xml index e4c1f7bbd09..6f3fb11cb0d 100644 --- a/build/org.eclipse.cdt.make.ui/plugin.xml +++ b/build/org.eclipse.cdt.make.ui/plugin.xml @@ -197,7 +197,7 @@ - -