Don't add \epoc32\include to MMP for GUI template if APP_LAYER_SYSTEMINLCUDES is already defined.
authortimkelly
Tue, 02 Feb 2010 09:33:03 -0600
changeset 875 73e89d441558
parent 874 e6d79d096976
child 876 bb5d67b9dbe6
child 878 70054f4362b3
Don't add \epoc32\include to MMP for GUI template if APP_LAYER_SYSTEMINLCUDES is already defined.
core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/processes/CheckS60CustKitSupport.java
templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-PlatsecApp/group/baseName.mmp
templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-TouchUIApplication/group/baseName.mmp
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/processes/CheckS60CustKitSupport.java	Tue Feb 02 09:17:13 2010 -0600
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/processes/CheckS60CustKitSupport.java	Tue Feb 02 09:33:03 2010 -0600
@@ -42,6 +42,7 @@
 	private static final String SBSV2_BUILDER_ATTRIBUTE = "useSBSv2Builder"; //$NON-NLS-1$
 
 	private static final String S60_50_BUILD_MACROS = "S60_50_CustomBuildIncludes";
+	private static final String EXPLICIT_EPOC32_SYSTEM_INCLUDE = "EPOC32SystemInclude";
 	
 	private static final String S60_INC_MACROS = "#include <data_caging_paths.hrh>\n#include <domain/osextensions/platform_paths.hrh>\nMW_LAYER_SYSTEMINCLUDE";
 	private static final String S60_MIDDWARE_INC = "epoc32/include/middleware";
@@ -79,7 +80,13 @@
 		String includesValue = "";
 		includesValue = createCustKitIncludes(template);
 		template.getTemplateValues().put(S60_50_BUILD_MACROS, includesValue);
-
+		
+		String explicitEpoc32Include = "";
+		if (!includesValue.contains(APP_LAYER_SYSTEM_INCLUDES)){
+			explicitEpoc32Include = "SYSTEMINCLUDE	 /epoc32/include";
+		}
+		template.getTemplateValues().put(EXPLICIT_EPOC32_SYSTEM_INCLUDE, explicitEpoc32Include); //$NON-NLS-1$
+		
 		String helpCompiler = findHelpCompiler(template);
 		String enableHelpString = "";
 		String enableHelpSISString = "";
--- a/templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-PlatsecApp/group/baseName.mmp	Tue Feb 02 09:17:13 2010 -0600
+++ b/templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-PlatsecApp/group/baseName.mmp	Tue Feb 02 09:33:03 2010 -0600
@@ -33,12 +33,10 @@
 TARGETPATH 	  \private\10003a3f\apps
 END //RESOURCE
 
-
-
 USERINCLUDE	   ..\$(incDir)
 USERINCLUDE    ..\$(helpDir)
 
-SYSTEMINCLUDE	 \epoc32\include
+$(EPOC32SystemInclude)
 
 LIBRARY		   euser.lib
 LIBRARY		   apparc.lib
--- a/templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-TouchUIApplication/group/baseName.mmp	Tue Feb 02 09:17:13 2010 -0600
+++ b/templates/com.nokia.carbide.cpp.templates/templates/projecttemplates/S60-TouchUIApplication/group/baseName.mmp	Tue Feb 02 09:33:03 2010 -0600
@@ -33,12 +33,10 @@
 TARGETPATH 	  \private\10003a3f\apps
 END //RESOURCE
 
-
-
 USERINCLUDE	   ..\$(incDir)
 USERINCLUDE    ..\$(helpDir)
 
-SYSTEMINCLUDE	 \epoc32\include
+$(EPOC32SystemInclude)
 
 LIBRARY		   euser.lib
 LIBRARY		   apparc.lib