From 29b783155fd3acec6c0b5b65237a70fb0e219260 Mon Sep 17 00:00:00 2001 From: Leo Ufimtsev Date: Thu, 3 Jul 2014 10:40:45 -0400 Subject: [PATCH] Bug 408545 - Added single checkbox to enable gcov. (edit commit msg) I added a checkbox to enable gCov via a single checkbox to enable gcov in the compiler. It then uses the applicability calculator to automatically enable the linker if the compiler option is set. Signed-off-by: Leo Ufimtsev Change-Id: I561d7263d578a7807e890fce5518e6fc2ebb2bb2 Reviewed-on: https://git.eclipse.org/r/29403 Reviewed-by: Elena Laskavaia Tested-by: Elena Laskavaia --- .../plugin.properties | 2 ++ .../plugin.xml | 34 +++++++++++++++++++ .../gnu/ui/GcovAppCalculator.java | 22 ++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/ui/GcovAppCalculator.java diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties index d9688353747..af48e631568 100644 --- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties +++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties @@ -160,6 +160,8 @@ Option.Posix.Verbose=Verbose (-v) Option.OtherFlags=Other flags Option.Posix.Ansi=Support ANSI programs (-ansi) Option.PIC=Position Independent Code (-fPIC) +Option.codecov=Generate gcov information (-ftest-coverage -fprofile-arcs) +Option.codecovTip="Check this flag if you want to enable Profile Code Coverage in your application. Remember to enable this option in both the Compiler-> Miscellaneous and Linker -> General. Then rebuild your project and run Code Coverage again." Option.Posix.Linker.NoStartFiles=Do not use standard start files (-nostartfiles) Option.Posix.Linker.NoDefLibs=Do not use default libraries (-nodefaultlibs) diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml index e26d5b78c04..784e67955d3 100644 --- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml +++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml @@ -220,6 +220,14 @@ name="%Option.Posix.Debug.gprof" valueType="boolean"> + + + +