Changeset 209
- Timestamp:
- 01/13/07 02:20:02 (2 years ago)
- Files:
-
- trunk/installer/ui/Exec.d (modified) (3 diffs)
- trunk/installer/ui/Installer.d (modified) (18 diffs)
- trunk/installer/ui/Main.d (modified) (7 diffs)
- trunk/setup.exe (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/installer/ui/Exec.d
r207 r209 54 54 this.executionEnded = executionEnded; 55 55 56 writefln("\nexec command - %s", command); 56 //writefln("\ncwd : ", std.file.getcwd()); 57 //writefln("exec command : %s", command); 57 58 58 59 version(Win32) … … 105 106 bool appendOutputLine(char[] line) 106 107 { 107 writefln("Output - %s", line);108 //writefln("Output - %s", line); 108 109 output ~= line; 109 110 return false; … … 118 119 bool appendErrorLine(char[] line) 119 120 { 120 writefln("Error - %s", line);121 //writefln("Error - %s", line); 121 122 error ~= line; 122 123 return true; trunk/installer/ui/Installer.d
r206 r209 273 273 private bool installDuitglSimpleGL() 274 274 { 275 writefln("installDuitglSimpleGL");276 275 bool ok = moveDuitDev(); 277 276 if ( ok ) 278 277 { 279 writefln("installDuitglSimpleGL 1");280 278 char[] cwd = std.file.getcwd(); 281 279 Compiler compiler; … … 286 284 compiler.setCompilerExec(compilerExec); 287 285 288 writefln("installDuitglSimpleGL 2");289 286 compiler.addArg("-Isrc"); 290 287 compiler.addArg("-Isrcgl"); … … 299 296 compiler.addArg("-lGL"); 300 297 compiler.addArg("-lGLU"); 301 compiler.addArg("-ldl");298 version(linux)compiler.addArg("-ldl"); 302 299 303 300 compiler.addArg("-c"); … … 314 311 compiler.addArg("-lm"); 315 312 } 316 writefln("installDuitglSimpleGL 3");317 313 compiler.compile(); 318 writefln("installDuitglSimpleGL 4");319 314 if ( compiler.compileStatus == 0 320 315 && compiler.linkStatus == 0 … … 328 323 } 329 324 330 writefln("installDuitglSimpleGL 5");331 325 std.file.chdir(cwd); 332 326 } … … 336 330 private bool installDuitglShapesGL() 337 331 { 338 writefln("installDuitglShapesGL");339 332 bool ok = moveDuitDev(); 340 333 if ( ok ) 341 334 { 342 writefln("installDuitglShapesGL 1");343 335 char[] cwd = std.file.getcwd(); 344 336 Compiler compiler; … … 349 341 compiler.setCompilerExec(compilerExec); 350 342 351 writefln("installDuitglShapesGL 2");352 343 compiler.addArg("-Isrc"); 353 344 compiler.addArg("-Isrcgl"); … … 362 353 compiler.addArg("-lGL"); 363 354 compiler.addArg("-lGLU"); 364 compiler.addArg("-ldl");355 version(linux)compiler.addArg("-ldl"); 365 356 366 357 compiler.addArg("-c"); … … 377 368 compiler.addArg("-lm"); 378 369 } 379 writefln("installDuitglShapesGL 3");380 370 compiler.compile(); 381 writefln("installDuitglShapesGL 4");382 371 if ( compiler.compileStatus == 0 383 372 && compiler.linkStatus == 0 … … 391 380 } 392 381 393 writefln("installDuitglShapesGL 5");394 382 std.file.chdir(cwd); 395 383 } … … 399 387 private bool installDuitglDev() 400 388 { 401 writefln("installDuitDev");402 389 bool ok = true; 403 390 … … 470 457 private bool installDuitTests() 471 458 { 472 writefln("installDuitTests");473 459 bool ok = moveDuitDev(); 474 460 if ( ok ) 475 461 { 476 writefln("installDuitTests 1");477 462 char[] cwd = std.file.getcwd(); 478 463 Compiler compiler; … … 483 468 compiler.setCompilerExec(compilerExec); 484 469 485 writefln("installDuitTests 2");486 470 compiler.addArg("-Isrc"); 487 471 compiler.addArg("-Idemos"); … … 492 476 compiler.addArg("-L ."); 493 477 compiler.addArg("-lduit"); 494 compiler.addArg("-ldl");478 version(linux)compiler.addArg("-ldl"); 495 479 496 480 compiler.addArg("-c"); … … 507 491 compiler.addArg("-lm"); 508 492 } 509 writefln("installDuitTests 3");510 493 compiler.compile(); 511 writefln("installDuitTests 4");512 494 if ( compiler.compileStatus == 0 513 495 && compiler.linkStatus == 0 … … 521 503 } 522 504 523 writefln("installDuitTests 5");524 505 std.file.chdir(cwd); 525 506 } … … 532 513 version(Win32) 533 514 { 534 ok = system("xcopy /s / -Y"~from~" "~to);515 ok = system("xcopy /s /Y /E /Q "~from~" "~to); 535 516 } 536 517 else … … 563 544 private bool installDuitDev() 564 545 { 565 writefln("installDuitDev");566 546 bool ok = true; 567 547 trunk/installer/ui/Main.d
r204 r209 689 689 { 690 690 home = std.string.toString(getenv("HOME")); 691 writefln("home = %s", home);692 691 } 693 692 … … 718 717 version(Win32) char[] dmd = std.path.join(std.path.join(dir ,"bin"), "dmd.exe"); 719 718 else char[] dmd = std.path.join(std.path.join(dir ,"bin"), "dmd"); 720 writefln("validDMDHome dmd = %s", dmd);721 719 std.file.isfile(dmd); 722 720 version(Win32) 723 721 { 724 722 char[] dm = std.path.join(std.path.join(dir,"..\\dm"),"bin"); 725 writefln("validDMDHome dm = %s", dm);726 723 char[] link = std.path.join(dm, "link.exe"); 727 writefln("validDMDHome link = %s", link);728 724 std.file.isfile(link); 729 725 char[] lib = std.path.join(dm, "lib.exe"); 730 writefln("validDMDHome lib = %s", lib);731 726 std.file.isfile(lib); 732 727 } … … 827 822 version(Win32) 828 823 { 829 guess = "\\ Program Files\\Common Files\\GTK\\2.0\\bin";824 guess = "\\testRelease"; 830 825 } 831 826 else … … 859 854 { 860 855 completed = validDMDHome(); 861 writefln("Local.selected 1 completed = %s", completed);862 856 } 863 857 } … … 867 861 { 868 862 completed = installerUI.getDirectory("duitDevHome").length > 0; 869 writefln("Local.selected 2 completed = %s", completed);870 863 } 871 864 } … … 875 868 { 876 869 completed = installerUI.getDirectory("ledsHome").length > 0; 877 writefln("Local.selected 3 completed = %s", completed);878 870 } 879 871 } … … 882 874 { 883 875 completed = installerUI.getDirectory("gtkHome").length > 0; 884 writefln("Local.selected 4 completed = %s", completed);885 876 } 886 877 if ( completed ) 887 878 { 888 879 completed = installerUI.getDirectory("duitLibHome").length > 0; 889 writefln("Local.selected 5 completed = %s", completed);890 880 } 891 881
