Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

211 lines
6.9 KiB

  1. @if "%_echo%" == "" echo off
  2. REM --------------------------------------------------------------------------
  3. REM --------------------------------------------------------------------------
  4. REM
  5. REM Given a DX DDK installation and a Platform DDK installation this script
  6. REM builds the DDK binaries shipped as part of the DX DDK.
  7. REM
  8. REM --------------------------------------------------------------------------
  9. REM --------------------------------------------------------------------------
  10. setlocal ENABLEEXTENSIONS
  11. setlocal ENABLEDELAYEDEXPANSION
  12. REM --------------------------------------------------------------------------
  13. REM --------------------------------------------------------------------------
  14. REM
  15. REM Step 1: Check parameters
  16. REM
  17. REM See :Usage for a description of the command line parameters of this
  18. REM command file
  19. REM
  20. REM --------------------------------------------------------------------------
  21. REM --------------------------------------------------------------------------
  22. REM All parametes are required
  23. if {%1}=={} goto :Usage
  24. if {%2}=={} goto :Usage
  25. if {%3}=={} goto :Usage
  26. REM Give them some better names
  27. set PLATDDKROOT=%1
  28. set DXDDKROOT=%2
  29. set BLDTYPE=%3
  30. REM --------------------------------------------------------------------------
  31. REM --------------------------------------------------------------------------
  32. REM
  33. REM Step 1: Set up the DDK environment
  34. REM
  35. REM --------------------------------------------------------------------------
  36. REM --------------------------------------------------------------------------
  37. call %PLATDDKROOT%\bin\setenv %PLATDDKROOT% %BLDTYPE%
  38. REM --------------------------------------------------------------------------
  39. REM --------------------------------------------------------------------------
  40. REM
  41. REM Step 2: Build the miniport
  42. REM
  43. REM --------------------------------------------------------------------------
  44. REM --------------------------------------------------------------------------
  45. cd /d %DXDDKROOT%\src\video\miniport\p3samp
  46. build -cC -Z
  47. REM --------------------------------------------------------------------------
  48. REM --------------------------------------------------------------------------
  49. REM
  50. REM Step 3: Build the display driver
  51. REM
  52. REM --------------------------------------------------------------------------
  53. REM --------------------------------------------------------------------------
  54. cd /d %DXDDKROOT%\src\video\displays\p3samp
  55. build -cC -Z
  56. REM --------------------------------------------------------------------------
  57. REM --------------------------------------------------------------------------
  58. REM
  59. REM Step 3: Build the refrast
  60. REM
  61. REM --------------------------------------------------------------------------
  62. REM --------------------------------------------------------------------------
  63. cd /d %DXDDKROOT%\src\video\displays\d3dref8
  64. build -cC -Z daytona win9x
  65. REM --------------------------------------------------------------------------
  66. REM --------------------------------------------------------------------------
  67. REM
  68. REM Step 4: Build the Win9x P3 DD/D3D DLL
  69. REM
  70. REM --------------------------------------------------------------------------
  71. REM --------------------------------------------------------------------------
  72. cd /d %DXDDKROOT%\src\video\displays\p3samp\dx\win9x
  73. build -cC -Z
  74. REM --------------------------------------------------------------------------
  75. REM --------------------------------------------------------------------------
  76. REM
  77. REM Step 5: Build the Win9x P3 display driver
  78. REM
  79. REM --------------------------------------------------------------------------
  80. REM --------------------------------------------------------------------------
  81. cd /d %DXDDKROOT%\src\win_me\display\mini\p3samp\drv
  82. if "%BLDTYPE%" == "free" goto :DispFree
  83. echo "Building checked Win9x P3 display driver"
  84. del /q debug
  85. rd debug
  86. nmake debug
  87. goto :DispDone
  88. :DispFree
  89. echo "Building free Win9x P3 display driver"
  90. del /q retail
  91. rd retail
  92. nmake retail
  93. :DispDone
  94. REM --------------------------------------------------------------------------
  95. REM --------------------------------------------------------------------------
  96. REM
  97. REM Step 6: Build the Win9x P3 mini vdd vxd
  98. REM
  99. REM --------------------------------------------------------------------------
  100. REM --------------------------------------------------------------------------
  101. cd /d %DXDDKROOT%\src\win_me\display\minivdd\p3samp
  102. if "%BLDTYPE%" == "free" goto :MiniVDDFree
  103. echo "Building checked Win9x P3 mini vdd vxd"
  104. del /q debug
  105. rd debug
  106. nmake debug
  107. goto :MiniVDDDone
  108. :MiniVDDFree
  109. echo "Building free Win9x P3 mini vdd vxd"
  110. del /q retail
  111. rd retail
  112. nmake retail
  113. :MiniVDDDone
  114. REM --------------------------------------------------------------------------
  115. REM --------------------------------------------------------------------------
  116. REM
  117. REM Step 7: Build the Dinput samples
  118. REM
  119. REM --------------------------------------------------------------------------
  120. REM --------------------------------------------------------------------------
  121. cd /d %DXDDKROOT%\input\Samples\src\cplsvr1
  122. build -cC -Z
  123. cd /d %DXDDKROOT%\input\Samples\src\digijoy
  124. build -cC -Z
  125. cd /d %DXDDKROOT%\input\Samples\src\ffdrv1
  126. build -cC -Z
  127. REM --------------------------------------------------------------------------
  128. REM --------------------------------------------------------------------------
  129. REM
  130. REM Step 8: Build the BDA samples
  131. REM
  132. REM --------------------------------------------------------------------------
  133. REM --------------------------------------------------------------------------
  134. cd /d %DXDDKROOT%\src\wdm\bda\MauiTune
  135. build -cC -Z win9x
  136. REM --------------------------------------------------------------------------
  137. REM --------------------------------------------------------------------------
  138. REM
  139. REM Step 9: Build the DirectVA samples
  140. REM
  141. REM --------------------------------------------------------------------------
  142. REM --------------------------------------------------------------------------
  143. cd /d %DXDDKROOT%\src\wdm\dxva\avstest
  144. build -cC -Z
  145. REM --------------------------------------------------------------------------
  146. REM --------------------------------------------------------------------------
  147. REM
  148. REM Step 10: Done
  149. REM
  150. REM --------------------------------------------------------------------------
  151. REM --------------------------------------------------------------------------
  152. goto :EOF
  153. REM --------------------------------------------------------------------------
  154. REM --------------------------------------------------------------------------
  155. REM
  156. REM :Usage
  157. REM
  158. REM Display usage for this batch file
  159. REM
  160. REM --------------------------------------------------------------------------
  161. REM --------------------------------------------------------------------------
  162. :Usage
  163. echo usage: bldntddk ^<Platform DDK Dir^> ^<DX DDK Dir^> checked ^| free
  164. echo where:
  165. echo ^<Plafrom DDK Dir^> is the root directory of the Platform DDK install
  166. echo ^<DX DDK Dir^> is the root of the DX DDK install point
  167. echo checked ^| free controls whether a checked or free build is performed