Fulld_2006.bat 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. @echo off
  2. if (%1)==() goto test_command
  3. if (%1)==(start) goto start
  4. goto endok
  5. :test_command
  6. if (%COMSPEC%)==() goto no_command
  7. %COMSPEC% /E:9216 /C %0 start %1 %2 %3
  8. goto endok
  9. :no_command
  10. echo No Command Interpreter found
  11. goto endok
  12. :start
  13. echo Start
  14. call clean.bat
  15. echo on
  16. rem this generates setenv.bat, containing the environment variables used for compiling
  17. rem e.g.:
  18. rem SET NDD10=\path\to\delphi2006
  19. rem SET NDWINSYS=\path\to\system32
  20. computil SetupD10
  21. if exist setenv.bat call setenv.bat
  22. if (%NDD10%)==() goto enderror
  23. if (%NDWINSYS%)==() goto enderror
  24. set DCC32=%NDD10%\Bin\dcc32.exe
  25. if not exist %DCC32% goto enderror
  26. rem all output for Delphi 2006 goes into D10 (that's the number 1 not a lower case L)
  27. set DOUT=..\D10
  28. if not exist %DOUT%\*.* md %DOUT% >nul
  29. if not exist %DOUT%\dcu\*.* md %DOUT%\dcu >nul
  30. if exist %DOUT%\*.* call clean.bat %DOUT%
  31. rem /B = Build
  32. rem /O = object directories
  33. rem /D = conditionals
  34. rem /JL = generate files for C++
  35. rem /H = output hints
  36. rem /W = output warnings
  37. set OPTIONS=/B /Oobjs /DBCB /JL /H /W
  38. rem /LN = output for .bpl file
  39. rem /LE = output for .dcp file
  40. set EXEOUTPUTDIRS=/LN..\%DOUT% /LE..\%DOUT%
  41. rem /N0 = output for dcu files (that's a zero, not an upper case o)
  42. rem /NH = output for hpp files (these do not go into the dcu subdir
  43. rem /NO = output for obj files
  44. rem /NB = output for bpi files
  45. rem note the additional '..\' here: We descend into subdirs later on
  46. set OTHEROUTPUTDIRS=/N0..\%DOUT%\dcu /NH..\%DOUT% /NO..\%DOUT%\dcu /NB..\%DOUT%\dcu
  47. rem D- = no debug information
  48. rem L- = no local debug symbols
  49. rem N+ = ??
  50. rem P+ = open string parameters
  51. rem R- = no range checking
  52. rem S- = ??
  53. rem T- = no typed @ parameter
  54. rem W- = no stack frames
  55. set SWITCHES=D-L-n+p+r-s-t-w-
  56. ECHO ****************
  57. ECHO Compile System
  58. ECHO ****************
  59. pushd System
  60. %DCC32% IndySystem100.dpk %OPTIONS% %EXEOUTPUTDIRS% %OTHEROUTPUTDIRS% /$%SWITCHES% %2 %3 %4
  61. if errorlevel 1 goto enderror
  62. rem copy ..\..\D100\IndySystem100.bpl %NDWINSYS% >nul
  63. popd
  64. ECHO **************
  65. ECHO Compile Core
  66. ECHO **************
  67. pushd Core
  68. %DCC32% IndyCore100.dpk %OPTIONS% %EXEOUTPUTDIRS% %OTHEROUTPUTDIRS% /$%SWITCHES% %2 %3 %4
  69. if errorlevel 1 goto enderror
  70. %DCC32% dclIndyCore100.dpk %OPTIONS% %EXEOUTPUTDIRS% %OTHEROUTPUTDIRS% /$%SWITCHES% %2 %3 %4
  71. if errorlevel 1 goto enderror
  72. rem copy ..\..\D100\IndyCore100.bpl %NDWINSYS% >nul
  73. rem copy ..\..\D100\dclIndyCore100.bpl %NDWINSYS% >nul
  74. popd
  75. ECHO *******************
  76. ECHO Compile Protocols
  77. ECHO *******************
  78. pushd Protocols
  79. ECHO ************************
  80. ECHO IdCompressionIntercept
  81. ECHO ************************
  82. rem %NDD10%\Bin\dcc32.exe -DBCB -B -M -JPHNE -N..\..\D100 /U..\..\D100 -H -W -Z IdCompressionIntercept.pas -$d-l-
  83. rem if errorlevel 1 goto enderror
  84. %DCC32% IndyProtocols100.dpk %OPTIONS% %EXEOUTPUTDIRS% %OTHEROUTPUTDIRS% /$%SWITCHES% %2 %3 %4
  85. if errorlevel 1 goto enderror
  86. %DCC32% dclIndyProtocols100.dpk %OPTIONS% %EXEOUTPUTDIRS% %OTHEROUTPUTDIRS% /$%SWITCHES% %2 %3 %4
  87. if errorlevel 1 goto enderror
  88. rem copy ..\..\D100\IndyProtocols100.bpl %NDWINSYS% >nul
  89. rem copy ..\..\D100\dclIndyProtocols100.bpl %NDWINSYS% >nul
  90. popd
  91. goto endok
  92. :enderror
  93. popd
  94. call clean.bat
  95. echo Error!
  96. :endok