Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'xlc/org.eclipse.cdt.managedbuilder.xlc.core/plugin.xml')
-rw-r--r--xlc/org.eclipse.cdt.managedbuilder.xlc.core/plugin.xml43
1 files changed, 43 insertions, 0 deletions
diff --git a/xlc/org.eclipse.cdt.managedbuilder.xlc.core/plugin.xml b/xlc/org.eclipse.cdt.managedbuilder.xlc.core/plugin.xml
new file mode 100644
index 00000000000..7bd7f2b71a7
--- /dev/null
+++ b/xlc/org.eclipse.cdt.managedbuilder.xlc.core/plugin.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+
+ <!-- -->
+ <!-- Xl C ScannerConfigurationDiscoveryProfile definitions -->
+ <!-- -->
+
+ <!-- We have to extend the core of CDT's make so that we can define a new ScannerConfigurationDiscoveryProfile -->
+ <!-- A ScannerConfigurationDiscoveryProfile is used to discover information about the standard options used by the compiler, e.g. the standard include directories -->
+
+ <!-- Xl C Managed Make Per Project Profile -->
+ <!-- The Profile gathers together information about the standard include directories and standard definitions used by the compiler -->
+ <extension
+ id="XLCManagedMakePerProjectProfile"
+ name="%profileName"
+ point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile">
+
+ <!-- The ScannerInfoCollector manages the information generated by the Profile so that it can be easily accessed afterwards -->
+ <scannerInfoCollector
+ class="org.eclipse.cdt.make.xlc.core.scannerconfig.DefaultXlCScannerInfoCollector"
+ scope="project">
+ </scannerInfoCollector>
+
+ <!-- The ScannerInfoProvider search for the information needed by the profile and send it to the ScannerInfoCollector -->
+ <scannerInfoProvider providerId="specsFile">
+ <!-- Specifies the compiler command that returns the information about standard include directories and standard definitions -->
+ <!-- The compiler command used will be always a C compiler command -->
+ <!-- The output for C or C++ projects will be different as the ScannerInfoProvider substitute the ${specs_file} variable below with a dummy "c" file or "cpp" file -->
+ <run
+ arguments="-E -v ${plugin_state_location}/${specs_file}"
+ command="xlc"
+ class="org.eclipse.cdt.make.xlc.core.scannerconfig.XlCSpecsRunSIProvider">
+ </run>
+ <!-- Specifies the parser for the output generated by the compiler with the above command line -->
+ <scannerInfoConsoleParser
+ class="org.eclipse.cdt.make.xlc.core.scannerconfig.XlCSpecsConsoleParser">
+ </scannerInfoConsoleParser>
+ </scannerInfoProvider>
+
+ </extension>
+
+</plugin>

Back to the top