Changeset 209

Show
Ignore:
Timestamp:
01/13/07 02:20:02 (2 years ago)
Author:
Ant
Message:

fixed setup for windows

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/installer/ui/Exec.d

    r207 r209  
    5454        this.executionEnded = executionEnded; 
    5555         
    56         writefln("\nexec command - %s", command); 
     56        //writefln("\ncwd : ", std.file.getcwd()); 
     57        //writefln("exec command : %s", command); 
    5758         
    5859        version(Win32) 
     
    105106    bool appendOutputLine(char[] line) 
    106107    { 
    107         writefln("Output - %s", line); 
     108        //writefln("Output - %s", line); 
    108109        output ~= line; 
    109110        return false; 
     
    118119    bool appendErrorLine(char[] line) 
    119120    { 
    120         writefln("Error - %s", line); 
     121        //writefln("Error - %s", line); 
    121122        error ~= line; 
    122123        return true; 
  • trunk/installer/ui/Installer.d

    r206 r209  
    273273    private bool installDuitglSimpleGL() 
    274274    { 
    275         writefln("installDuitglSimpleGL"); 
    276275        bool ok = moveDuitDev(); 
    277276        if ( ok ) 
    278277        { 
    279             writefln("installDuitglSimpleGL 1"); 
    280278            char[] cwd = std.file.getcwd(); 
    281279            Compiler compiler; 
     
    286284            compiler.setCompilerExec(compilerExec); 
    287285             
    288             writefln("installDuitglSimpleGL 2"); 
    289286            compiler.addArg("-Isrc"); 
    290287            compiler.addArg("-Isrcgl"); 
     
    299296            compiler.addArg("-lGL"); 
    300297            compiler.addArg("-lGLU"); 
    301             compiler.addArg("-ldl"); 
     298            version(linux)compiler.addArg("-ldl"); 
    302299             
    303300            compiler.addArg("-c"); 
     
    314311                compiler.addArg("-lm"); 
    315312            } 
    316             writefln("installDuitglSimpleGL 3"); 
    317313            compiler.compile(); 
    318             writefln("installDuitglSimpleGL 4"); 
    319314            if ( compiler.compileStatus == 0  
    320315                && compiler.linkStatus == 0 
     
    328323            } 
    329324             
    330             writefln("installDuitglSimpleGL 5"); 
    331325            std.file.chdir(cwd); 
    332326        } 
     
    336330    private bool installDuitglShapesGL() 
    337331    { 
    338         writefln("installDuitglShapesGL"); 
    339332        bool ok = moveDuitDev(); 
    340333        if ( ok ) 
    341334        { 
    342             writefln("installDuitglShapesGL 1"); 
    343335            char[] cwd = std.file.getcwd(); 
    344336            Compiler compiler; 
     
    349341            compiler.setCompilerExec(compilerExec); 
    350342             
    351             writefln("installDuitglShapesGL 2"); 
    352343            compiler.addArg("-Isrc"); 
    353344            compiler.addArg("-Isrcgl"); 
     
    362353            compiler.addArg("-lGL"); 
    363354            compiler.addArg("-lGLU"); 
    364             compiler.addArg("-ldl"); 
     355            version(linux)compiler.addArg("-ldl"); 
    365356             
    366357            compiler.addArg("-c"); 
     
    377368                compiler.addArg("-lm"); 
    378369            } 
    379             writefln("installDuitglShapesGL 3"); 
    380370            compiler.compile(); 
    381             writefln("installDuitglShapesGL 4"); 
    382371            if ( compiler.compileStatus == 0  
    383372                && compiler.linkStatus == 0 
     
    391380            } 
    392381             
    393             writefln("installDuitglShapesGL 5"); 
    394382            std.file.chdir(cwd); 
    395383        } 
     
    399387    private bool installDuitglDev() 
    400388    { 
    401         writefln("installDuitDev"); 
    402389        bool ok = true; 
    403390         
     
    470457    private bool installDuitTests() 
    471458    { 
    472         writefln("installDuitTests"); 
    473459        bool ok = moveDuitDev(); 
    474460        if ( ok ) 
    475461        { 
    476             writefln("installDuitTests 1"); 
    477462            char[] cwd = std.file.getcwd(); 
    478463            Compiler compiler; 
     
    483468            compiler.setCompilerExec(compilerExec); 
    484469             
    485             writefln("installDuitTests 2"); 
    486470            compiler.addArg("-Isrc"); 
    487471            compiler.addArg("-Idemos"); 
     
    492476            compiler.addArg("-L ."); 
    493477            compiler.addArg("-lduit"); 
    494             compiler.addArg("-ldl"); 
     478            version(linux)compiler.addArg("-ldl"); 
    495479             
    496480            compiler.addArg("-c"); 
     
    507491                compiler.addArg("-lm"); 
    508492            } 
    509             writefln("installDuitTests 3"); 
    510493            compiler.compile(); 
    511             writefln("installDuitTests 4"); 
    512494            if ( compiler.compileStatus == 0  
    513495                && compiler.linkStatus == 0 
     
    521503            } 
    522504             
    523             writefln("installDuitTests 5"); 
    524505            std.file.chdir(cwd); 
    525506        } 
     
    532513        version(Win32) 
    533514        { 
    534              ok = system("xcopy /s /-Y "~from~" "~to); 
     515             ok = system("xcopy /s /Y /E /Q "~from~" "~to); 
    535516        } 
    536517        else 
     
    563544    private bool installDuitDev() 
    564545    { 
    565         writefln("installDuitDev"); 
    566546        bool ok = true; 
    567547         
  • trunk/installer/ui/Main.d

    r204 r209  
    689689        { 
    690690            home = std.string.toString(getenv("HOME")); 
    691             writefln("home = %s", home); 
    692691        } 
    693692             
     
    718717                version(Win32) char[] dmd = std.path.join(std.path.join(dir ,"bin"), "dmd.exe"); 
    719718                else  char[] dmd = std.path.join(std.path.join(dir ,"bin"), "dmd"); 
    720                 writefln("validDMDHome dmd = %s", dmd); 
    721719                std.file.isfile(dmd); 
    722720                version(Win32) 
    723721                { 
    724722                    char[] dm = std.path.join(std.path.join(dir,"..\\dm"),"bin"); 
    725                     writefln("validDMDHome dm = %s", dm); 
    726723                    char[] link = std.path.join(dm, "link.exe"); 
    727                     writefln("validDMDHome link = %s", link); 
    728724                    std.file.isfile(link); 
    729725                    char[] lib = std.path.join(dm, "lib.exe"); 
    730                     writefln("validDMDHome lib = %s", lib); 
    731726                    std.file.isfile(lib); 
    732727                } 
     
    827822        version(Win32) 
    828823        { 
    829             guess = "\\Program Files\\Common Files\\GTK\\2.0\\bin"; 
     824            guess = "\\testRelease"; 
    830825        } 
    831826        else 
     
    859854            { 
    860855                completed = validDMDHome(); 
    861                 writefln("Local.selected 1 completed = %s", completed); 
    862856            } 
    863857        } 
     
    867861            { 
    868862                completed = installerUI.getDirectory("duitDevHome").length > 0; 
    869                 writefln("Local.selected 2 completed = %s", completed); 
    870863            } 
    871864        } 
     
    875868            { 
    876869                completed = installerUI.getDirectory("ledsHome").length > 0; 
    877                 writefln("Local.selected 3 completed = %s", completed); 
    878870            } 
    879871        } 
     
    882874        { 
    883875            completed = installerUI.getDirectory("gtkHome").length > 0; 
    884                 writefln("Local.selected 4 completed = %s", completed); 
    885876        } 
    886877        if ( completed ) 
    887878        { 
    888879            completed = installerUI.getDirectory("duitLibHome").length > 0; 
    889                 writefln("Local.selected 5 completed = %s", completed); 
    890880        } 
    891881