It's easy to exclude from dsc  by !ifdef ….

On 21.08.2013, at 21:07, Tim Lewis wrote:

> Anyone have advice on removing string references/text from a build based on 
> build switches?
>  
> 1.       As far as I can tell, conditionals are not allowed in .uni files.
> 2.       As far as I can tell, conditionals are ignored when StrGather.py 
> looks for STRING_TOKEN (STRING_TOKEN in // or #if 0 are still recognized)
> 3.       FeatureFlag PCDs can’t control source files in an INF, so you can’t 
> exclude the .uni from the build.
>  
> So, even though strings are never used, they are always included. Yes, I 
> realize that there are cases need to force the strings into the build by 
> placing references in comments (a better way must be available surely, 
> perhaps in the .uni file itself)
>  
> The best I’ve been able to come up with is to create two separate INF files: 
> one with the .uni files and one without.
>  
> Thoughts?
>  
> Tim
>  
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and 
> AppDynamics. Performance Central is your source for news, insights, 
> analysis and resources for efficient Application Performance Management. 
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk_______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to