fix __PRODUCT_INCLUDE__ macro if it has value, during preprocessing.
authortimkelly
Thu, 09 Sep 2010 13:57:02 -0500
changeset 1977 359f06b54dcc
parent 1976 65ebd4879193
child 1978 9e45f0e58c6e
fix __PRODUCT_INCLUDE__ macro if it has value, during preprocessing.
builder/com.nokia.carbide.cpp.builder.utils/src/com/nokia/carbide/cpp/internal/builder/utils/handlers/PreprocessHandler.java
--- a/builder/com.nokia.carbide.cpp.builder.utils/src/com/nokia/carbide/cpp/internal/builder/utils/handlers/PreprocessHandler.java	Thu Sep 09 13:25:52 2010 -0500
+++ b/builder/com.nokia.carbide.cpp.builder.utils/src/com/nokia/carbide/cpp/internal/builder/utils/handlers/PreprocessHandler.java	Thu Sep 09 13:57:02 2010 -0500
@@ -409,7 +409,11 @@
 		
 		List<IDefine> buildMacros = buildConfig.getBuildContext().getBuildMacros();
 		for (IDefine define : buildMacros){
-			macros.add(define.getName());
+			if (define.getName().equals("__PRODUCT_INCLUDE__")){
+				macros.add(define.getName() + "=" + define.getExpansion());
+			} else {
+				macros.add(define.getName());
+			}
 		}
 		
 		List<IDefine> metaDataMacros = buildConfig.getBuildContext().getMetadataMacros();