Author Topic: build targets (debug/release etc)  (Read 16597 times)

Offline hd

  • Multiple posting newcomer
  • *
  • Posts: 45
    • http://www.dynaset.org/dogusanh
build targets (debug/release etc)
« on: January 10, 2005, 12:50:10 am »
Hi,


If a source file used in one more targets, than IDE don't generate build command except one target.

After a small change in makefilegenerator.cpp I can successfully compile
debug/release targets :)) as shown below:


void MakefileGenerator::DoAddMakefileTarget_Objs(wxString& buffer)
{
    //hd... m_ObjectFiles.Clear();
    wxString tmp;
    int targetsCount = m_Project->GetBuildTargetsCount();
    for (int x = 0; x < targetsCount; ++x)
    {
        ProjectBuildTarget* target = m_Project->GetBuildTarget(x);
        if (!target)
            break;
       
        m_ObjectFiles.Clear(); //hd...

        ....
       

--
Regards,
Hakki Dogusan
 :lol:

Offline hd

  • Multiple posting newcomer
  • *
  • Posts: 45
    • http://www.dynaset.org/dogusanh
build targets (debug/release etc)
« Reply #1 on: January 10, 2005, 12:52:55 am »
Hey too much smiling icons there... I think I'm happy :)

Offline hd

  • Multiple posting newcomer
  • *
  • Posts: 45
    • http://www.dynaset.org/dogusanh
build targets (debug/release etc)
« Reply #2 on: January 10, 2005, 12:57:14 am »
I forgat something:

For each target I created a distinct object directory: .objs, objsd etc.

HTH
--
Regards,
Hakki Dogusan