Fix bug 10488. Don't add platform_paths.hrh to S60 includes if it does not exist. (merge from default) RCL_2_4
authortimkelly
Mon, 25 Jan 2010 15:43:57 -0600
branchRCL_2_4
changeset 829 0396114c1f2e
parent 814 b794e25ca74a
child 830 ce9defbd72a6
Fix bug 10488. Don't add platform_paths.hrh to S60 includes if it does not exist. (merge from default)
core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/processes/CheckS60CustKitSupport.java
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/processes/CheckS60CustKitSupport.java	Mon Jan 25 10:46:04 2010 -0600
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/sdk/core/processes/CheckS60CustKitSupport.java	Mon Jan 25 15:43:57 2010 -0600
@@ -40,8 +40,11 @@
 	private static final String S60_MIDDWARE_INC = "epoc32/include/middleware";
 	
 	private static final String S60_MIDDWARE_INC2 =  "epoc32/include/mw";
-	private static final String S60_INC_MACROS2 = "#include <domain/osextensions/platform_paths.hrh>\nAPP_LAYER_SYSTEMINCLUDE";
 
+	private static final String S60_DOMAND_OSTEXT_PLAT_PATHS = "epoc32/include/domain/osextensions/platform_paths.hrh"; 
+	private static final String S60_DOMAND_OSTEXT_PLAT_PATHS_INCLUDE = "#include <domain/osextensions/platform_paths.hrh>";
+	private static final String APP_LAYER_SYSTEM_INCLUDES = "APP_LAYER_SYSTEMINCLUDE"; 
+	
 	private static final String S60_SF_FOLDER =  "sf";
 	private static final String S60_INC_MACROS_SF = "#include <platform_paths.hrh>\n#include <data_caging_paths.hrh>\nAPP_LAYER_SYSTEMINCLUDE";
 
@@ -145,7 +148,16 @@
 					
 					if (sdk.getSDKVersion().getMajor() >= 5 && middleWareInclude.exists()) {
 						// add symbol as at least one build config is a CustKit
-						S60_50_Macros_String = S60_INC_MACROS2;
+						File domainPath = new File(sdk.getEPOCROOT(), S60_DOMAND_OSTEXT_PLAT_PATHS); 
+						if (domainPath.exists()){ 
+							S60_50_Macros_String = S60_DOMAND_OSTEXT_PLAT_PATHS_INCLUDE + "\n"; 
+						}
+						//else { 
+						// The platform_paths include is in the variant.cfg defined prefix file
+						//} 
+						
+						S60_50_Macros_String += APP_LAYER_SYSTEM_INCLUDES; 
+						
 						break;
 					}