# HG changeset patch # User timkelly # Date 1264455837 21600 # Node ID 0396114c1f2e60976fefdf221b99c72b460b4192 # Parent b794e25ca74a8650b757a1df00922e08209bb566 Fix bug 10488. Don't add platform_paths.hrh to S60 includes if it does not exist. (merge from default) diff -r b794e25ca74a -r 0396114c1f2e 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 \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 "; + 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 \n#include \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; }