Patch #2854 2009-12-01 16:23

christobal

Added macro $(TARGET_COMPILER_DIR) to macrosmanager
Download
2854-Added_macro_TA.patch (845 bytes)
Category
Application::FeatureAdd
Status
Accepted
Close date
2009-12-31 16:16
Assigned to
mortenmacfly
Index: src/sdk/macrosmanager.cpp
===================================================================
--- src/sdk/macrosmanager.cpp    (revision 5898)
+++ src/sdk/macrosmanager.cpp    (working copy)
@@ -294,10 +294,13 @@
 
         if(Compiler* c = CompilerFactory::GetCompiler(target->GetCompilerID()))
         {
+            wxFileName  MasterPath;
+            MasterPath.SetPath(c->GetMasterPath(), wxPATH_NATIVE);
             macros[_T("TARGET_CC")]   = c->GetPrograms().C;
             macros[_T("TARGET_CPP")]   = c->GetPrograms().CPP;
             macros[_T("TARGET_LD")]   = c->GetPrograms().LD;
             macros[_T("TARGET_LIB")]   = c->GetPrograms().LIB;
+            macros[_T("TARGET_COMPILER_DIR")] = MasterPath.GetPathWithSep(wxPATH_NATIVE);
         }
         macros[_T("TARGET_OBJECT_DIR")]   = target->GetObjectOutput();
     }