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.

232 lines
4.2 KiB

  1. Document Type: WSE
  2. item: Global
  3. Version=7.04
  4. Title=CompileProject
  5. Flags=01000100
  6. Languages=65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  7. Japanese Font Name=MS Gothic
  8. Japanese Font Size=10
  9. Start Gradient=0 0 255
  10. End Gradient=0 0 0
  11. Windows Flags=00010100000000000001010000001010
  12. Message Font=MS Sans Serif
  13. Font Size=8
  14. Disk Filename=SETUP
  15. Patch Flags=0000000000001001
  16. Patch Threshold=85
  17. Patch Memory=4000
  18. FTP Cluster Size=20
  19. Per-User Version ID=1
  20. Dialogs Version=7
  21. Step View=Properties
  22. Variable Name1=_INIT_WINDOW_
  23. Variable Default1=HIDE
  24. end
  25. item: Set Variable
  26. Variable=DISPLAY_USAGE
  27. Value=Yes
  28. end
  29. item: If/While Statement
  30. Variable=CMDLINE
  31. Flags=00000001
  32. end
  33. item: Set Variable
  34. Variable=EXEC_CMD
  35. end
  36. item: Parse String
  37. Source=%CMDLINE%
  38. Pattern=/TYPE:
  39. Variable2=PROJECT_TYPE
  40. Flags=00000011
  41. end
  42. item: Parse String
  43. Source=%PROJECT_TYPE%
  44. Pattern=/CONFIG:
  45. Variable1=PROJECT_TYPE
  46. Variable2=PROJECT_CONFIG
  47. Flags=00000011
  48. end
  49. item: Parse String
  50. Source=%PROJECT_CONFIG%
  51. Pattern=/PROJECT:
  52. Variable1=PROJECT_CONFIG
  53. Variable2=PROJECT_FILE
  54. Flags=00000011
  55. end
  56. item: Parse String
  57. Source=%PROJECT_FILE%
  58. Pattern=/OUTDIR:
  59. Variable1=PROJECT_FILE
  60. Variable2=OUTDIR
  61. Flags=00000011
  62. end
  63. item: Set Variable
  64. Variable=PROJECT_DIR
  65. Value=%PROJECT_FILE%
  66. Flags=00000010
  67. end
  68. item: If/While Statement
  69. Variable=PROJECT_TYPE
  70. Value=VC5
  71. Flags=00000100
  72. end
  73. item: Get Registry Key Value
  74. Variable=VC5_DIR
  75. Key=Software\Microsoft\DevStudio\5.0\Directories
  76. Value Name=Install Dirs
  77. Flags=00000100
  78. end
  79. item: Set Variable
  80. Variable=EXEC_CMD
  81. Value=%VC5_DIR%\MsDev.exe
  82. end
  83. item: Set Variable
  84. Variable=EXEC_OPTIONS
  85. Value="%PROJECT_FILE%" -ex BuildAllProjects
  86. end
  87. item: Else Statement
  88. end
  89. item: If/While Statement
  90. Variable=PROJECT_TYPE
  91. Value=VC6
  92. Flags=00000100
  93. end
  94. item: Get Registry Key Value
  95. Variable=VC6_DIR
  96. Key=Software\Microsoft\VisualStudio\6.0\Setup
  97. Value Name=VsCommonDir
  98. Flags=00000100
  99. end
  100. item: Set Variable
  101. Variable=EXEC_CMD
  102. Value=%VC6_DIR%\MsDev98\Bin\MsDev.exe
  103. end
  104. item: Set Variable
  105. Variable=EXEC_OPTIONS
  106. Value="%PROJECT_FILE%" /MAKE "ALL - %PROJECT_CONFIG%" /OUT "%PROJECT_FILE%
  107. end
  108. item: If/While Statement
  109. Variable=PROJECT_CONFIG
  110. Value=Debug
  111. Flags=00000010
  112. end
  113. item: Set Variable
  114. Variable=EXEC_OPTIONS
  115. Value=_Debug
  116. Flags=00000001
  117. end
  118. item: End Block
  119. end
  120. item: Set Variable
  121. Variable=EXEC_OPTIONS
  122. Value=.log"
  123. Flags=00000001
  124. end
  125. item: Else Statement
  126. end
  127. item: If/While Statement
  128. Variable=PROJECT_TYPE
  129. Value=VB6
  130. Flags=00000100
  131. end
  132. item: Get Registry Key Value
  133. Variable=VB6_DIR
  134. Key=Software\Microsoft\VisualStudio\6.0\Setup\Microsoft Visual Basic
  135. Value Name=ProductDir
  136. Flags=00000100
  137. end
  138. item: Set Variable
  139. Variable=EXEC_CMD
  140. Value=%VB6_DIR%\VB6.exe
  141. Flags=10000000
  142. end
  143. item: Set Variable
  144. Variable=EXEC_OPTIONS
  145. Value=/MAKE "%PROJECT_FILE%" /OUT "%PROJECT_FILE%
  146. end
  147. item: If/While Statement
  148. Variable=PROJECT_CONFIG
  149. Value=Debug
  150. Flags=00000010
  151. end
  152. item: Set Variable
  153. Variable=EXEC_OPTIONS
  154. Value=_Debug
  155. Flags=00000001
  156. end
  157. item: End Block
  158. end
  159. item: Set Variable
  160. Variable=EXEC_OPTIONS
  161. Value=.log"
  162. Flags=00000001
  163. end
  164. item: Remark
  165. end
  166. item: If/While Statement
  167. Variable=OUTDIR
  168. Flags=00000001
  169. end
  170. item: Set Variable
  171. Variable=EXEC_OPTIONS
  172. Value= /OUTDIR %OUTDIR%
  173. Flags=00000001
  174. end
  175. item: End Block
  176. end
  177. item: Else Statement
  178. end
  179. item: Display Message
  180. Title=Project Type Not Supported
  181. Text=%PROJECT_TYPE%
  182. Flags=00101000
  183. end
  184. item: End Block
  185. end
  186. item: End Block
  187. end
  188. item: End Block
  189. end
  190. item: Remark
  191. end
  192. item: If/While Statement
  193. Variable=EXEC_CMD
  194. Flags=00000001
  195. end
  196. remarked item: Display Message
  197. Title=Execute Command
  198. Text=%EXEC_CMD% %EXEC_OPTIONS%
  199. Flags=00100000
  200. end
  201. item: Execute Program
  202. Pathname=%EXEC_CMD%
  203. Command Line=%EXEC_OPTIONS%
  204. Default Directory=%PROJECT_DIR%
  205. Flags=00000010
  206. end
  207. item: Set Variable
  208. Variable=DISPLAY_USAGE
  209. Value=No
  210. end
  211. item: End Block
  212. end
  213. item: End Block
  214. end
  215. item: Remark
  216. end
  217. item: If/While Statement
  218. Variable=DISPLAY_USAGE
  219. Value=Yes
  220. end
  221. item: Display Message
  222. Title=Usage
  223. Text=CompileProject.exe
  224. Text=/TYPE:<Project Type>
  225. Text=/CONFIG:<Configuration | ALL>
  226. Text=/PROJECT:<Path to Project>
  227. Flags=00100100
  228. end
  229. item: End Block
  230. end
  231. item: Remark
  232. end