Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 310819

Summary: Headless Builder need a way to extend set of -Ds -Is and -includes
Product: [Tools] CDT Reporter: James Blackburn <jamesblackburn+eclipse>
Component: cdt-buildAssignee: James Blackburn <jamesblackburn+eclipse>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: enhancement    
Priority: P3    
Version: 7.0   
Target Milestone: 8.0   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch 1 jamesblackburn+eclipse: iplog-

Description James Blackburn CLA 2010-04-28 09:43:36 EDT
With the ability to pre-include header files, builds may have multiple potential artifacts per configuration. Various features can be pre-processed in or out which is important for memory constrained embedded targets.

While this allows each developer to define their own -Ds, and produce a specific build in the IDE, it's not possible to do this (cleanly) with the Headless Builder.

It would be great if the set of defined PREPROCESSOR_SYMBOLS could be extended from the HeadlessBuilder command line invocation.
Comment 1 James Blackburn CLA 2010-05-20 13:31:55 EDT
Created attachment 169384 [details]
patch 1

Turns out this can be really neatly fixed using the external settings provider mechanism.

Simple patch which adds the following to the HeadlessBuilder:
  -D to add a define to the headless build
  -I to add an include path to the headless build
  -include to add a pre-included file to the head less build.

These options, if specified, augment the set of defines, include paths and include files.  They're set on every tool invocation where the tool handles the specific option type.

Will defer to 7.0 + 1 as we're long past feature freeze.
Comment 2 James Blackburn CLA 2010-06-24 09:26:47 EDT
Functionality committed to HEAD.