@pnpm/exe 11.9.0 → 12.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (445) hide show
  1. package/{dist/node_modules/v8-compile-cache/LICENSE → LICENSE} +2 -1
  2. package/README.md +259 -12
  3. package/install.js +175 -0
  4. package/package.json +30 -59
  5. package/pnpm +4 -1
  6. package/dist/node-gyp-bin/node-gyp +0 -6
  7. package/dist/node-gyp-bin/node-gyp.cmd +0 -5
  8. package/dist/node_modules/.package-map.json +0 -1
  9. package/dist/node_modules/@isaacs/fs-minipass/LICENSE +0 -15
  10. package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +0 -430
  11. package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +0 -3
  12. package/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js +0 -420
  13. package/dist/node_modules/@isaacs/fs-minipass/dist/esm/package.json +0 -3
  14. package/dist/node_modules/@isaacs/fs-minipass/package.json +0 -72
  15. package/dist/node_modules/abbrev/LICENSE +0 -46
  16. package/dist/node_modules/abbrev/lib/index.js +0 -53
  17. package/dist/node_modules/abbrev/package.json +0 -41
  18. package/dist/node_modules/chownr/dist/commonjs/index.js +0 -93
  19. package/dist/node_modules/chownr/dist/commonjs/package.json +0 -3
  20. package/dist/node_modules/chownr/dist/esm/index.js +0 -85
  21. package/dist/node_modules/chownr/dist/esm/package.json +0 -3
  22. package/dist/node_modules/chownr/package.json +0 -69
  23. package/dist/node_modules/env-paths/index.js +0 -74
  24. package/dist/node_modules/env-paths/license +0 -9
  25. package/dist/node_modules/env-paths/package.json +0 -45
  26. package/dist/node_modules/exponential-backoff/LICENSE +0 -202
  27. package/dist/node_modules/exponential-backoff/dist/backoff.js +0 -124
  28. package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +0 -25
  29. package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +0 -45
  30. package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +0 -17
  31. package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +0 -3
  32. package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +0 -82
  33. package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +0 -8
  34. package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +0 -15
  35. package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +0 -7
  36. package/dist/node_modules/exponential-backoff/dist/options.js +0 -31
  37. package/dist/node_modules/exponential-backoff/package.json +0 -62
  38. package/dist/node_modules/fdir/LICENSE +0 -7
  39. package/dist/node_modules/fdir/dist/index.cjs +0 -588
  40. package/dist/node_modules/fdir/dist/index.d.cts +0 -155
  41. package/dist/node_modules/fdir/dist/index.d.mts +0 -155
  42. package/dist/node_modules/fdir/dist/index.mjs +0 -570
  43. package/dist/node_modules/fdir/package.json +0 -103
  44. package/dist/node_modules/graceful-fs/LICENSE +0 -15
  45. package/dist/node_modules/graceful-fs/clone.js +0 -23
  46. package/dist/node_modules/graceful-fs/graceful-fs.js +0 -448
  47. package/dist/node_modules/graceful-fs/legacy-streams.js +0 -118
  48. package/dist/node_modules/graceful-fs/package.json +0 -53
  49. package/dist/node_modules/graceful-fs/polyfills.js +0 -355
  50. package/dist/node_modules/isexe/dist/commonjs/index.js +0 -56
  51. package/dist/node_modules/isexe/dist/commonjs/index.min.js +0 -2
  52. package/dist/node_modules/isexe/dist/commonjs/options.js +0 -3
  53. package/dist/node_modules/isexe/dist/commonjs/package.json +0 -3
  54. package/dist/node_modules/isexe/dist/commonjs/posix.js +0 -67
  55. package/dist/node_modules/isexe/dist/commonjs/win32.js +0 -63
  56. package/dist/node_modules/isexe/dist/esm/index.js +0 -16
  57. package/dist/node_modules/isexe/dist/esm/index.min.js +0 -2
  58. package/dist/node_modules/isexe/dist/esm/options.js +0 -2
  59. package/dist/node_modules/isexe/dist/esm/package.json +0 -3
  60. package/dist/node_modules/isexe/dist/esm/posix.js +0 -62
  61. package/dist/node_modules/isexe/dist/esm/win32.js +0 -58
  62. package/dist/node_modules/isexe/package.json +0 -78
  63. package/dist/node_modules/minipass/dist/commonjs/index.js +0 -1038
  64. package/dist/node_modules/minipass/dist/commonjs/package.json +0 -3
  65. package/dist/node_modules/minipass/dist/esm/index.js +0 -1020
  66. package/dist/node_modules/minipass/dist/esm/package.json +0 -3
  67. package/dist/node_modules/minipass/package.json +0 -77
  68. package/dist/node_modules/minizlib/LICENSE +0 -26
  69. package/dist/node_modules/minizlib/dist/commonjs/constants.js +0 -123
  70. package/dist/node_modules/minizlib/dist/commonjs/index.js +0 -416
  71. package/dist/node_modules/minizlib/dist/commonjs/package.json +0 -3
  72. package/dist/node_modules/minizlib/dist/esm/constants.js +0 -117
  73. package/dist/node_modules/minizlib/dist/esm/index.js +0 -363
  74. package/dist/node_modules/minizlib/dist/esm/package.json +0 -3
  75. package/dist/node_modules/minizlib/package.json +0 -80
  76. package/dist/node_modules/node-gyp/.release-please-manifest.json +0 -3
  77. package/dist/node_modules/node-gyp/LICENSE +0 -24
  78. package/dist/node_modules/node-gyp/addon.gypi +0 -204
  79. package/dist/node_modules/node-gyp/bin/node-gyp.js +0 -145
  80. package/dist/node_modules/node-gyp/eslint.config.js +0 -3
  81. package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
  82. package/dist/node_modules/node-gyp/gyp/LICENSE +0 -28
  83. package/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
  84. package/dist/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  85. package/dist/node_modules/node-gyp/gyp/gyp +0 -8
  86. package/dist/node_modules/node-gyp/gyp/gyp.bat +0 -5
  87. package/dist/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  88. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  89. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  90. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1283
  91. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1545
  92. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  93. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  94. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  95. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -607
  96. package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -706
  97. package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -725
  98. package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -186
  99. package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -170
  100. package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  101. package/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  102. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  103. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  104. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1169
  105. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1316
  106. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  107. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  108. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -461
  109. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -88
  110. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -55
  111. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2755
  112. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3970
  113. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  114. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2957
  115. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -77
  116. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1389
  117. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  118. package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3097
  119. package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  120. package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -765
  121. package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1255
  122. package/dist/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  123. package/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  124. package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -371
  125. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1936
  126. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  127. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -301
  128. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3180
  129. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -64
  130. package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  131. package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  132. package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  133. package/dist/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  134. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -107
  135. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  136. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  137. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  138. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  139. package/dist/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  140. package/dist/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -251
  141. package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -807
  142. package/dist/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  143. package/dist/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  144. package/dist/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  145. package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -541
  146. package/dist/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  147. package/dist/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  148. package/dist/node_modules/node-gyp/gyp/pyproject.toml +0 -116
  149. package/dist/node_modules/node-gyp/gyp/release-please-config.json +0 -11
  150. package/dist/node_modules/node-gyp/gyp/test_gyp.py +0 -260
  151. package/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
  152. package/dist/node_modules/node-gyp/lib/build.js +0 -230
  153. package/dist/node_modules/node-gyp/lib/clean.js +0 -15
  154. package/dist/node_modules/node-gyp/lib/configure.js +0 -328
  155. package/dist/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
  156. package/dist/node_modules/node-gyp/lib/download.js +0 -86
  157. package/dist/node_modules/node-gyp/lib/find-node-directory.js +0 -63
  158. package/dist/node_modules/node-gyp/lib/find-python.js +0 -304
  159. package/dist/node_modules/node-gyp/lib/find-visualstudio.js +0 -606
  160. package/dist/node_modules/node-gyp/lib/install.js +0 -411
  161. package/dist/node_modules/node-gyp/lib/list.js +0 -26
  162. package/dist/node_modules/node-gyp/lib/log.js +0 -168
  163. package/dist/node_modules/node-gyp/lib/node-gyp.js +0 -199
  164. package/dist/node_modules/node-gyp/lib/process-release.js +0 -144
  165. package/dist/node_modules/node-gyp/lib/rebuild.js +0 -12
  166. package/dist/node_modules/node-gyp/lib/remove.js +0 -43
  167. package/dist/node_modules/node-gyp/lib/util.js +0 -81
  168. package/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  169. package/dist/node_modules/node-gyp/package.json +0 -52
  170. package/dist/node_modules/node-gyp/release-please-config.json +0 -40
  171. package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +0 -41
  172. package/dist/node_modules/nopt/LICENSE +0 -15
  173. package/dist/node_modules/nopt/bin/nopt.js +0 -29
  174. package/dist/node_modules/nopt/lib/debug.js +0 -5
  175. package/dist/node_modules/nopt/lib/nopt-lib.js +0 -514
  176. package/dist/node_modules/nopt/lib/nopt.js +0 -34
  177. package/dist/node_modules/nopt/lib/type-defs.js +0 -91
  178. package/dist/node_modules/nopt/package.json +0 -52
  179. package/dist/node_modules/picomatch/LICENSE +0 -21
  180. package/dist/node_modules/picomatch/index.js +0 -17
  181. package/dist/node_modules/picomatch/lib/constants.js +0 -184
  182. package/dist/node_modules/picomatch/lib/parse.js +0 -1386
  183. package/dist/node_modules/picomatch/lib/picomatch.js +0 -349
  184. package/dist/node_modules/picomatch/lib/scan.js +0 -391
  185. package/dist/node_modules/picomatch/lib/utils.js +0 -72
  186. package/dist/node_modules/picomatch/package.json +0 -82
  187. package/dist/node_modules/picomatch/posix.js +0 -3
  188. package/dist/node_modules/proc-log/LICENSE +0 -15
  189. package/dist/node_modules/proc-log/lib/index.js +0 -158
  190. package/dist/node_modules/proc-log/package.json +0 -46
  191. package/dist/node_modules/semver/LICENSE +0 -15
  192. package/dist/node_modules/semver/bin/semver.js +0 -195
  193. package/dist/node_modules/semver/classes/comparator.js +0 -143
  194. package/dist/node_modules/semver/classes/index.js +0 -7
  195. package/dist/node_modules/semver/classes/range.js +0 -577
  196. package/dist/node_modules/semver/classes/semver.js +0 -350
  197. package/dist/node_modules/semver/functions/clean.js +0 -8
  198. package/dist/node_modules/semver/functions/cmp.js +0 -54
  199. package/dist/node_modules/semver/functions/coerce.js +0 -62
  200. package/dist/node_modules/semver/functions/compare-build.js +0 -9
  201. package/dist/node_modules/semver/functions/compare-loose.js +0 -5
  202. package/dist/node_modules/semver/functions/compare.js +0 -7
  203. package/dist/node_modules/semver/functions/diff.js +0 -60
  204. package/dist/node_modules/semver/functions/eq.js +0 -5
  205. package/dist/node_modules/semver/functions/gt.js +0 -5
  206. package/dist/node_modules/semver/functions/gte.js +0 -5
  207. package/dist/node_modules/semver/functions/inc.js +0 -21
  208. package/dist/node_modules/semver/functions/lt.js +0 -5
  209. package/dist/node_modules/semver/functions/lte.js +0 -5
  210. package/dist/node_modules/semver/functions/major.js +0 -5
  211. package/dist/node_modules/semver/functions/minor.js +0 -5
  212. package/dist/node_modules/semver/functions/neq.js +0 -5
  213. package/dist/node_modules/semver/functions/parse.js +0 -18
  214. package/dist/node_modules/semver/functions/patch.js +0 -5
  215. package/dist/node_modules/semver/functions/prerelease.js +0 -8
  216. package/dist/node_modules/semver/functions/rcompare.js +0 -5
  217. package/dist/node_modules/semver/functions/rsort.js +0 -5
  218. package/dist/node_modules/semver/functions/satisfies.js +0 -12
  219. package/dist/node_modules/semver/functions/sort.js +0 -5
  220. package/dist/node_modules/semver/functions/truncate.js +0 -48
  221. package/dist/node_modules/semver/functions/valid.js +0 -8
  222. package/dist/node_modules/semver/index.js +0 -93
  223. package/dist/node_modules/semver/internal/constants.js +0 -37
  224. package/dist/node_modules/semver/internal/debug.js +0 -11
  225. package/dist/node_modules/semver/internal/identifiers.js +0 -29
  226. package/dist/node_modules/semver/internal/lrucache.js +0 -42
  227. package/dist/node_modules/semver/internal/parse-options.js +0 -17
  228. package/dist/node_modules/semver/internal/re.js +0 -223
  229. package/dist/node_modules/semver/package.json +0 -78
  230. package/dist/node_modules/semver/preload.js +0 -4
  231. package/dist/node_modules/semver/range.bnf +0 -17
  232. package/dist/node_modules/semver/ranges/gtr.js +0 -6
  233. package/dist/node_modules/semver/ranges/intersects.js +0 -9
  234. package/dist/node_modules/semver/ranges/ltr.js +0 -6
  235. package/dist/node_modules/semver/ranges/max-satisfying.js +0 -27
  236. package/dist/node_modules/semver/ranges/min-satisfying.js +0 -26
  237. package/dist/node_modules/semver/ranges/min-version.js +0 -63
  238. package/dist/node_modules/semver/ranges/outside.js +0 -82
  239. package/dist/node_modules/semver/ranges/simplify.js +0 -49
  240. package/dist/node_modules/semver/ranges/subset.js +0 -249
  241. package/dist/node_modules/semver/ranges/to-comparators.js +0 -10
  242. package/dist/node_modules/semver/ranges/valid.js +0 -13
  243. package/dist/node_modules/tar/dist/commonjs/create.js +0 -82
  244. package/dist/node_modules/tar/dist/commonjs/cwd-error.js +0 -18
  245. package/dist/node_modules/tar/dist/commonjs/extract.js +0 -88
  246. package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +0 -32
  247. package/dist/node_modules/tar/dist/commonjs/header.js +0 -347
  248. package/dist/node_modules/tar/dist/commonjs/index.js +0 -64
  249. package/dist/node_modules/tar/dist/commonjs/index.min.js +0 -4
  250. package/dist/node_modules/tar/dist/commonjs/large-numbers.js +0 -99
  251. package/dist/node_modules/tar/dist/commonjs/list.js +0 -145
  252. package/dist/node_modules/tar/dist/commonjs/make-command.js +0 -52
  253. package/dist/node_modules/tar/dist/commonjs/mkdir.js +0 -187
  254. package/dist/node_modules/tar/dist/commonjs/mode-fix.js +0 -29
  255. package/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +0 -38
  256. package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +0 -12
  257. package/dist/node_modules/tar/dist/commonjs/options.js +0 -66
  258. package/dist/node_modules/tar/dist/commonjs/pack.js +0 -544
  259. package/dist/node_modules/tar/dist/commonjs/package.json +0 -3
  260. package/dist/node_modules/tar/dist/commonjs/parse.js +0 -610
  261. package/dist/node_modules/tar/dist/commonjs/path-reservations.js +0 -170
  262. package/dist/node_modules/tar/dist/commonjs/pax.js +0 -158
  263. package/dist/node_modules/tar/dist/commonjs/process-umask.js +0 -7
  264. package/dist/node_modules/tar/dist/commonjs/read-entry.js +0 -136
  265. package/dist/node_modules/tar/dist/commonjs/replace.js +0 -227
  266. package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +0 -29
  267. package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +0 -18
  268. package/dist/node_modules/tar/dist/commonjs/symlink-error.js +0 -19
  269. package/dist/node_modules/tar/dist/commonjs/types.js +0 -70
  270. package/dist/node_modules/tar/dist/commonjs/unpack.js +0 -932
  271. package/dist/node_modules/tar/dist/commonjs/update.js +0 -33
  272. package/dist/node_modules/tar/dist/commonjs/warn-method.js +0 -31
  273. package/dist/node_modules/tar/dist/commonjs/winchars.js +0 -14
  274. package/dist/node_modules/tar/dist/commonjs/write-entry.js +0 -698
  275. package/dist/node_modules/tar/dist/esm/create.js +0 -76
  276. package/dist/node_modules/tar/dist/esm/cwd-error.js +0 -14
  277. package/dist/node_modules/tar/dist/esm/extract.js +0 -49
  278. package/dist/node_modules/tar/dist/esm/get-write-flag.js +0 -26
  279. package/dist/node_modules/tar/dist/esm/header.js +0 -310
  280. package/dist/node_modules/tar/dist/esm/index.js +0 -20
  281. package/dist/node_modules/tar/dist/esm/index.min.js +0 -4
  282. package/dist/node_modules/tar/dist/esm/large-numbers.js +0 -94
  283. package/dist/node_modules/tar/dist/esm/list.js +0 -105
  284. package/dist/node_modules/tar/dist/esm/make-command.js +0 -48
  285. package/dist/node_modules/tar/dist/esm/mkdir.js +0 -179
  286. package/dist/node_modules/tar/dist/esm/mode-fix.js +0 -25
  287. package/dist/node_modules/tar/dist/esm/normalize-unicode.js +0 -34
  288. package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +0 -9
  289. package/dist/node_modules/tar/dist/esm/options.js +0 -54
  290. package/dist/node_modules/tar/dist/esm/pack.js +0 -502
  291. package/dist/node_modules/tar/dist/esm/package.json +0 -3
  292. package/dist/node_modules/tar/dist/esm/parse.js +0 -606
  293. package/dist/node_modules/tar/dist/esm/path-reservations.js +0 -166
  294. package/dist/node_modules/tar/dist/esm/pax.js +0 -154
  295. package/dist/node_modules/tar/dist/esm/process-umask.js +0 -3
  296. package/dist/node_modules/tar/dist/esm/read-entry.js +0 -132
  297. package/dist/node_modules/tar/dist/esm/replace.js +0 -221
  298. package/dist/node_modules/tar/dist/esm/strip-absolute-path.js +0 -25
  299. package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +0 -14
  300. package/dist/node_modules/tar/dist/esm/symlink-error.js +0 -15
  301. package/dist/node_modules/tar/dist/esm/types.js +0 -65
  302. package/dist/node_modules/tar/dist/esm/unpack.js +0 -891
  303. package/dist/node_modules/tar/dist/esm/update.js +0 -30
  304. package/dist/node_modules/tar/dist/esm/warn-method.js +0 -27
  305. package/dist/node_modules/tar/dist/esm/winchars.js +0 -9
  306. package/dist/node_modules/tar/dist/esm/write-entry.js +0 -656
  307. package/dist/node_modules/tar/package.json +0 -298
  308. package/dist/node_modules/tinyglobby/LICENSE +0 -21
  309. package/dist/node_modules/tinyglobby/dist/index.cjs +0 -335
  310. package/dist/node_modules/tinyglobby/dist/index.d.cts +0 -148
  311. package/dist/node_modules/tinyglobby/dist/index.d.mts +0 -148
  312. package/dist/node_modules/tinyglobby/dist/index.mjs +0 -307
  313. package/dist/node_modules/tinyglobby/package.json +0 -70
  314. package/dist/node_modules/undici/LICENSE +0 -21
  315. package/dist/node_modules/undici/index-fetch.js +0 -35
  316. package/dist/node_modules/undici/index.js +0 -169
  317. package/dist/node_modules/undici/lib/api/abort-signal.js +0 -57
  318. package/dist/node_modules/undici/lib/api/api-connect.js +0 -108
  319. package/dist/node_modules/undici/lib/api/api-pipeline.js +0 -251
  320. package/dist/node_modules/undici/lib/api/api-request.js +0 -214
  321. package/dist/node_modules/undici/lib/api/api-stream.js +0 -220
  322. package/dist/node_modules/undici/lib/api/api-upgrade.js +0 -108
  323. package/dist/node_modules/undici/lib/api/index.js +0 -7
  324. package/dist/node_modules/undici/lib/api/readable.js +0 -385
  325. package/dist/node_modules/undici/lib/api/util.js +0 -93
  326. package/dist/node_modules/undici/lib/core/connect.js +0 -240
  327. package/dist/node_modules/undici/lib/core/constants.js +0 -118
  328. package/dist/node_modules/undici/lib/core/diagnostics.js +0 -202
  329. package/dist/node_modules/undici/lib/core/errors.js +0 -425
  330. package/dist/node_modules/undici/lib/core/request.js +0 -405
  331. package/dist/node_modules/undici/lib/core/symbols.js +0 -67
  332. package/dist/node_modules/undici/lib/core/tree.js +0 -152
  333. package/dist/node_modules/undici/lib/core/util.js +0 -719
  334. package/dist/node_modules/undici/lib/dispatcher/agent.js +0 -129
  335. package/dist/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -209
  336. package/dist/node_modules/undici/lib/dispatcher/client-h1.js +0 -1487
  337. package/dist/node_modules/undici/lib/dispatcher/client-h2.js +0 -744
  338. package/dist/node_modules/undici/lib/dispatcher/client.js +0 -623
  339. package/dist/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -199
  340. package/dist/node_modules/undici/lib/dispatcher/dispatcher.js +0 -65
  341. package/dist/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -160
  342. package/dist/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -117
  343. package/dist/node_modules/undici/lib/dispatcher/pool-base.js +0 -194
  344. package/dist/node_modules/undici/lib/dispatcher/pool-stats.js +0 -34
  345. package/dist/node_modules/undici/lib/dispatcher/pool.js +0 -107
  346. package/dist/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -274
  347. package/dist/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
  348. package/dist/node_modules/undici/lib/global.js +0 -32
  349. package/dist/node_modules/undici/lib/handler/decorator-handler.js +0 -44
  350. package/dist/node_modules/undici/lib/handler/redirect-handler.js +0 -232
  351. package/dist/node_modules/undici/lib/handler/retry-handler.js +0 -374
  352. package/dist/node_modules/undici/lib/interceptor/dns.js +0 -375
  353. package/dist/node_modules/undici/lib/interceptor/dump.js +0 -123
  354. package/dist/node_modules/undici/lib/interceptor/redirect-interceptor.js +0 -21
  355. package/dist/node_modules/undici/lib/interceptor/redirect.js +0 -24
  356. package/dist/node_modules/undici/lib/interceptor/response-error.js +0 -86
  357. package/dist/node_modules/undici/lib/interceptor/retry.js +0 -19
  358. package/dist/node_modules/undici/lib/llhttp/.gitkeep +0 -0
  359. package/dist/node_modules/undici/lib/llhttp/constants.js +0 -278
  360. package/dist/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -5
  361. package/dist/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -5
  362. package/dist/node_modules/undici/lib/llhttp/utils.js +0 -15
  363. package/dist/node_modules/undici/lib/mock/mock-agent.js +0 -160
  364. package/dist/node_modules/undici/lib/mock/mock-client.js +0 -59
  365. package/dist/node_modules/undici/lib/mock/mock-errors.js +0 -28
  366. package/dist/node_modules/undici/lib/mock/mock-interceptor.js +0 -207
  367. package/dist/node_modules/undici/lib/mock/mock-pool.js +0 -59
  368. package/dist/node_modules/undici/lib/mock/mock-symbols.js +0 -23
  369. package/dist/node_modules/undici/lib/mock/mock-utils.js +0 -367
  370. package/dist/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
  371. package/dist/node_modules/undici/lib/mock/pluralizer.js +0 -29
  372. package/dist/node_modules/undici/lib/util/timers.js +0 -423
  373. package/dist/node_modules/undici/lib/web/cache/cache.js +0 -859
  374. package/dist/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
  375. package/dist/node_modules/undici/lib/web/cache/symbols.js +0 -5
  376. package/dist/node_modules/undici/lib/web/cache/util.js +0 -45
  377. package/dist/node_modules/undici/lib/web/cookies/constants.js +0 -12
  378. package/dist/node_modules/undici/lib/web/cookies/index.js +0 -184
  379. package/dist/node_modules/undici/lib/web/cookies/parse.js +0 -310
  380. package/dist/node_modules/undici/lib/web/cookies/util.js +0 -282
  381. package/dist/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -398
  382. package/dist/node_modules/undici/lib/web/eventsource/eventsource.js +0 -480
  383. package/dist/node_modules/undici/lib/web/eventsource/util.js +0 -37
  384. package/dist/node_modules/undici/lib/web/fetch/LICENSE +0 -21
  385. package/dist/node_modules/undici/lib/web/fetch/body.js +0 -529
  386. package/dist/node_modules/undici/lib/web/fetch/constants.js +0 -124
  387. package/dist/node_modules/undici/lib/web/fetch/data-url.js +0 -744
  388. package/dist/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +0 -46
  389. package/dist/node_modules/undici/lib/web/fetch/file.js +0 -126
  390. package/dist/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -474
  391. package/dist/node_modules/undici/lib/web/fetch/formdata.js +0 -252
  392. package/dist/node_modules/undici/lib/web/fetch/global.js +0 -40
  393. package/dist/node_modules/undici/lib/web/fetch/headers.js +0 -687
  394. package/dist/node_modules/undici/lib/web/fetch/index.js +0 -2272
  395. package/dist/node_modules/undici/lib/web/fetch/request.js +0 -1037
  396. package/dist/node_modules/undici/lib/web/fetch/response.js +0 -610
  397. package/dist/node_modules/undici/lib/web/fetch/symbols.js +0 -9
  398. package/dist/node_modules/undici/lib/web/fetch/util.js +0 -1632
  399. package/dist/node_modules/undici/lib/web/fetch/webidl.js +0 -695
  400. package/dist/node_modules/undici/lib/web/fileapi/encoding.js +0 -290
  401. package/dist/node_modules/undici/lib/web/fileapi/filereader.js +0 -344
  402. package/dist/node_modules/undici/lib/web/fileapi/progressevent.js +0 -78
  403. package/dist/node_modules/undici/lib/web/fileapi/symbols.js +0 -10
  404. package/dist/node_modules/undici/lib/web/fileapi/util.js +0 -391
  405. package/dist/node_modules/undici/lib/web/websocket/connection.js +0 -371
  406. package/dist/node_modules/undici/lib/web/websocket/constants.js +0 -66
  407. package/dist/node_modules/undici/lib/web/websocket/events.js +0 -329
  408. package/dist/node_modules/undici/lib/web/websocket/frame.js +0 -96
  409. package/dist/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -100
  410. package/dist/node_modules/undici/lib/web/websocket/receiver.js +0 -513
  411. package/dist/node_modules/undici/lib/web/websocket/sender.js +0 -104
  412. package/dist/node_modules/undici/lib/web/websocket/symbols.js +0 -12
  413. package/dist/node_modules/undici/lib/web/websocket/util.js +0 -322
  414. package/dist/node_modules/undici/lib/web/websocket/websocket.js +0 -595
  415. package/dist/node_modules/undici/package.json +0 -160
  416. package/dist/node_modules/undici/scripts/strip-comments.js +0 -8
  417. package/dist/node_modules/v8-compile-cache/package.json +0 -34
  418. package/dist/node_modules/v8-compile-cache/v8-compile-cache.js +0 -373
  419. package/dist/node_modules/which/LICENSE +0 -15
  420. package/dist/node_modules/which/bin/which.js +0 -52
  421. package/dist/node_modules/which/lib/index.js +0 -111
  422. package/dist/node_modules/which/package.json +0 -52
  423. package/dist/node_modules/yallist/dist/commonjs/index.js +0 -384
  424. package/dist/node_modules/yallist/dist/commonjs/package.json +0 -3
  425. package/dist/node_modules/yallist/dist/esm/index.js +0 -379
  426. package/dist/node_modules/yallist/dist/esm/package.json +0 -3
  427. package/dist/node_modules/yallist/package.json +0 -68
  428. package/dist/pnpm.mjs +0 -306294
  429. package/dist/pnpmrc +0 -2
  430. package/dist/templates/completion.bash +0 -31
  431. package/dist/templates/completion.fish +0 -22
  432. package/dist/templates/completion.ps1 +0 -193
  433. package/dist/templates/completion.zsh +0 -27
  434. package/dist/vendor/fastlist-0.3.0-x64.exe +0 -0
  435. package/dist/vendor/fastlist-0.3.0-x86.exe +0 -0
  436. package/dist/worker.js +0 -11938
  437. package/platform-pkg-name.js +0 -18
  438. package/pn.cmd +0 -2
  439. package/pn.ps1 +0 -1
  440. package/pnpx.cmd +0 -2
  441. package/pnpx.ps1 +0 -1
  442. package/pnx.cmd +0 -2
  443. package/pnx.ps1 +0 -1
  444. package/prepare.js +0 -29
  445. package/setup.js +0 -106
@@ -1,1545 +0,0 @@
1
- #!/usr/bin/env python3
2
-
3
- # Copyright (c) 2012 Google Inc. All rights reserved.
4
- # Use of this source code is governed by a BSD-style license that can be
5
- # found in the LICENSE file.
6
-
7
- """Unit tests for the MSVSSettings.py file."""
8
-
9
- import unittest
10
- from io import StringIO
11
-
12
- from gyp import MSVSSettings
13
-
14
-
15
- class TestSequenceFunctions(unittest.TestCase):
16
- def setUp(self):
17
- self.stderr = StringIO()
18
-
19
- def _ExpectedWarnings(self, expected):
20
- """Compares recorded lines to expected warnings."""
21
- self.stderr.seek(0)
22
- actual = self.stderr.read().split("\n")
23
- actual = [line for line in actual if line]
24
- self.assertEqual(sorted(expected), sorted(actual))
25
-
26
- def testValidateMSVSSettings_tool_names(self):
27
- """Tests that only MSVS tool names are allowed."""
28
- MSVSSettings.ValidateMSVSSettings(
29
- {
30
- "VCCLCompilerTool": {},
31
- "VCLinkerTool": {},
32
- "VCMIDLTool": {},
33
- "foo": {},
34
- "VCResourceCompilerTool": {},
35
- "VCLibrarianTool": {},
36
- "VCManifestTool": {},
37
- "ClCompile": {},
38
- },
39
- self.stderr,
40
- )
41
- self._ExpectedWarnings(
42
- ["Warning: unrecognized tool foo", "Warning: unrecognized tool ClCompile"]
43
- )
44
-
45
- def testValidateMSVSSettings_settings(self):
46
- """Tests that for invalid MSVS settings."""
47
- MSVSSettings.ValidateMSVSSettings(
48
- {
49
- "VCCLCompilerTool": {
50
- "AdditionalIncludeDirectories": "folder1;folder2",
51
- "AdditionalOptions": ["string1", "string2"],
52
- "AdditionalUsingDirectories": "folder1;folder2",
53
- "AssemblerListingLocation": "a_file_name",
54
- "AssemblerOutput": "0",
55
- "BasicRuntimeChecks": "5",
56
- "BrowseInformation": "fdkslj",
57
- "BrowseInformationFile": "a_file_name",
58
- "BufferSecurityCheck": "true",
59
- "CallingConvention": "-1",
60
- "CompileAs": "1",
61
- "DebugInformationFormat": "2",
62
- "DefaultCharIsUnsigned": "true",
63
- "Detect64BitPortabilityProblems": "true",
64
- "DisableLanguageExtensions": "true",
65
- "DisableSpecificWarnings": "string1;string2",
66
- "EnableEnhancedInstructionSet": "1",
67
- "EnableFiberSafeOptimizations": "true",
68
- "EnableFunctionLevelLinking": "true",
69
- "EnableIntrinsicFunctions": "true",
70
- "EnablePREfast": "true",
71
- "Enableprefast": "bogus",
72
- "ErrorReporting": "1",
73
- "ExceptionHandling": "1",
74
- "ExpandAttributedSource": "true",
75
- "FavorSizeOrSpeed": "1",
76
- "FloatingPointExceptions": "true",
77
- "FloatingPointModel": "1",
78
- "ForceConformanceInForLoopScope": "true",
79
- "ForcedIncludeFiles": "file1;file2",
80
- "ForcedUsingFiles": "file1;file2",
81
- "GeneratePreprocessedFile": "1",
82
- "GenerateXMLDocumentationFiles": "true",
83
- "IgnoreStandardIncludePath": "true",
84
- "InlineFunctionExpansion": "1",
85
- "KeepComments": "true",
86
- "MinimalRebuild": "true",
87
- "ObjectFile": "a_file_name",
88
- "OmitDefaultLibName": "true",
89
- "OmitFramePointers": "true",
90
- "OpenMP": "true",
91
- "Optimization": "1",
92
- "PrecompiledHeaderFile": "a_file_name",
93
- "PrecompiledHeaderThrough": "a_file_name",
94
- "PreprocessorDefinitions": "string1;string2",
95
- "ProgramDataBaseFileName": "a_file_name",
96
- "RuntimeLibrary": "1",
97
- "RuntimeTypeInfo": "true",
98
- "ShowIncludes": "true",
99
- "SmallerTypeCheck": "true",
100
- "StringPooling": "true",
101
- "StructMemberAlignment": "1",
102
- "SuppressStartupBanner": "true",
103
- "TreatWChar_tAsBuiltInType": "true",
104
- "UndefineAllPreprocessorDefinitions": "true",
105
- "UndefinePreprocessorDefinitions": "string1;string2",
106
- "UseFullPaths": "true",
107
- "UsePrecompiledHeader": "1",
108
- "UseUnicodeResponseFiles": "true",
109
- "WarnAsError": "true",
110
- "WarningLevel": "1",
111
- "WholeProgramOptimization": "true",
112
- "XMLDocumentationFileName": "a_file_name",
113
- "ZZXYZ": "bogus",
114
- },
115
- "VCLinkerTool": {
116
- "AdditionalDependencies": "file1;file2",
117
- "AdditionalDependencies_excluded": "file3",
118
- "AdditionalLibraryDirectories": "folder1;folder2",
119
- "AdditionalManifestDependencies": "file1;file2",
120
- "AdditionalOptions": "a string1",
121
- "AddModuleNamesToAssembly": "file1;file2",
122
- "AllowIsolation": "true",
123
- "AssemblyDebug": "2",
124
- "AssemblyLinkResource": "file1;file2",
125
- "BaseAddress": "a string1",
126
- "CLRImageType": "2",
127
- "CLRThreadAttribute": "2",
128
- "CLRUnmanagedCodeCheck": "true",
129
- "DataExecutionPrevention": "2",
130
- "DelayLoadDLLs": "file1;file2",
131
- "DelaySign": "true",
132
- "Driver": "2",
133
- "EmbedManagedResourceFile": "file1;file2",
134
- "EnableCOMDATFolding": "2",
135
- "EnableUAC": "true",
136
- "EntryPointSymbol": "a string1",
137
- "ErrorReporting": "2",
138
- "FixedBaseAddress": "2",
139
- "ForceSymbolReferences": "file1;file2",
140
- "FunctionOrder": "a_file_name",
141
- "GenerateDebugInformation": "true",
142
- "GenerateManifest": "true",
143
- "GenerateMapFile": "true",
144
- "HeapCommitSize": "a string1",
145
- "HeapReserveSize": "a string1",
146
- "IgnoreAllDefaultLibraries": "true",
147
- "IgnoreDefaultLibraryNames": "file1;file2",
148
- "IgnoreEmbeddedIDL": "true",
149
- "IgnoreImportLibrary": "true",
150
- "ImportLibrary": "a_file_name",
151
- "KeyContainer": "a_file_name",
152
- "KeyFile": "a_file_name",
153
- "LargeAddressAware": "2",
154
- "LinkIncremental": "2",
155
- "LinkLibraryDependencies": "true",
156
- "LinkTimeCodeGeneration": "2",
157
- "ManifestFile": "a_file_name",
158
- "MapExports": "true",
159
- "MapFileName": "a_file_name",
160
- "MergedIDLBaseFileName": "a_file_name",
161
- "MergeSections": "a string1",
162
- "MidlCommandFile": "a_file_name",
163
- "ModuleDefinitionFile": "a_file_name",
164
- "OptimizeForWindows98": "1",
165
- "OptimizeReferences": "2",
166
- "OutputFile": "a_file_name",
167
- "PerUserRedirection": "true",
168
- "Profile": "true",
169
- "ProfileGuidedDatabase": "a_file_name",
170
- "ProgramDatabaseFile": "a_file_name",
171
- "RandomizedBaseAddress": "2",
172
- "RegisterOutput": "true",
173
- "ResourceOnlyDLL": "true",
174
- "SetChecksum": "true",
175
- "ShowProgress": "2",
176
- "StackCommitSize": "a string1",
177
- "StackReserveSize": "a string1",
178
- "StripPrivateSymbols": "a_file_name",
179
- "SubSystem": "2",
180
- "SupportUnloadOfDelayLoadedDLL": "true",
181
- "SuppressStartupBanner": "true",
182
- "SwapRunFromCD": "true",
183
- "SwapRunFromNet": "true",
184
- "TargetMachine": "2",
185
- "TerminalServerAware": "2",
186
- "TurnOffAssemblyGeneration": "true",
187
- "TypeLibraryFile": "a_file_name",
188
- "TypeLibraryResourceID": "33",
189
- "UACExecutionLevel": "2",
190
- "UACUIAccess": "true",
191
- "UseLibraryDependencyInputs": "true",
192
- "UseUnicodeResponseFiles": "true",
193
- "Version": "a string1",
194
- },
195
- "VCMIDLTool": {
196
- "AdditionalIncludeDirectories": "folder1;folder2",
197
- "AdditionalOptions": "a string1",
198
- "CPreprocessOptions": "a string1",
199
- "DefaultCharType": "1",
200
- "DLLDataFileName": "a_file_name",
201
- "EnableErrorChecks": "1",
202
- "ErrorCheckAllocations": "true",
203
- "ErrorCheckBounds": "true",
204
- "ErrorCheckEnumRange": "true",
205
- "ErrorCheckRefPointers": "true",
206
- "ErrorCheckStubData": "true",
207
- "GenerateStublessProxies": "true",
208
- "GenerateTypeLibrary": "true",
209
- "HeaderFileName": "a_file_name",
210
- "IgnoreStandardIncludePath": "true",
211
- "InterfaceIdentifierFileName": "a_file_name",
212
- "MkTypLibCompatible": "true",
213
- "notgood": "bogus",
214
- "OutputDirectory": "a string1",
215
- "PreprocessorDefinitions": "string1;string2",
216
- "ProxyFileName": "a_file_name",
217
- "RedirectOutputAndErrors": "a_file_name",
218
- "StructMemberAlignment": "1",
219
- "SuppressStartupBanner": "true",
220
- "TargetEnvironment": "1",
221
- "TypeLibraryName": "a_file_name",
222
- "UndefinePreprocessorDefinitions": "string1;string2",
223
- "ValidateParameters": "true",
224
- "WarnAsError": "true",
225
- "WarningLevel": "1",
226
- },
227
- "VCResourceCompilerTool": {
228
- "AdditionalOptions": "a string1",
229
- "AdditionalIncludeDirectories": "folder1;folder2",
230
- "Culture": "1003",
231
- "IgnoreStandardIncludePath": "true",
232
- "notgood2": "bogus",
233
- "PreprocessorDefinitions": "string1;string2",
234
- "ResourceOutputFileName": "a string1",
235
- "ShowProgress": "true",
236
- "SuppressStartupBanner": "true",
237
- "UndefinePreprocessorDefinitions": "string1;string2",
238
- },
239
- "VCLibrarianTool": {
240
- "AdditionalDependencies": "file1;file2",
241
- "AdditionalLibraryDirectories": "folder1;folder2",
242
- "AdditionalOptions": "a string1",
243
- "ExportNamedFunctions": "string1;string2",
244
- "ForceSymbolReferences": "a string1",
245
- "IgnoreAllDefaultLibraries": "true",
246
- "IgnoreSpecificDefaultLibraries": "file1;file2",
247
- "LinkLibraryDependencies": "true",
248
- "ModuleDefinitionFile": "a_file_name",
249
- "OutputFile": "a_file_name",
250
- "SuppressStartupBanner": "true",
251
- "UseUnicodeResponseFiles": "true",
252
- },
253
- "VCManifestTool": {
254
- "AdditionalManifestFiles": "file1;file2",
255
- "AdditionalOptions": "a string1",
256
- "AssemblyIdentity": "a string1",
257
- "ComponentFileName": "a_file_name",
258
- "DependencyInformationFile": "a_file_name",
259
- "GenerateCatalogFiles": "true",
260
- "InputResourceManifests": "a string1",
261
- "ManifestResourceFile": "a_file_name",
262
- "OutputManifestFile": "a_file_name",
263
- "RegistrarScriptFile": "a_file_name",
264
- "ReplacementsFile": "a_file_name",
265
- "SuppressStartupBanner": "true",
266
- "TypeLibraryFile": "a_file_name",
267
- "UpdateFileHashes": "truel",
268
- "UpdateFileHashesSearchPath": "a_file_name",
269
- "UseFAT32Workaround": "true",
270
- "UseUnicodeResponseFiles": "true",
271
- "VerboseOutput": "true",
272
- },
273
- },
274
- self.stderr,
275
- )
276
- self._ExpectedWarnings(
277
- [
278
- "Warning: for VCCLCompilerTool/BasicRuntimeChecks, "
279
- "index value (5) not in expected range [0, 4)",
280
- "Warning: for VCCLCompilerTool/BrowseInformation, "
281
- "invalid literal for int() with base 10: 'fdkslj'",
282
- "Warning: for VCCLCompilerTool/CallingConvention, "
283
- "index value (-1) not in expected range [0, 4)",
284
- "Warning: for VCCLCompilerTool/DebugInformationFormat, "
285
- "converted value for 2 not specified.",
286
- "Warning: unrecognized setting VCCLCompilerTool/Enableprefast",
287
- "Warning: unrecognized setting VCCLCompilerTool/ZZXYZ",
288
- "Warning: for VCLinkerTool/TargetMachine, "
289
- "converted value for 2 not specified.",
290
- "Warning: unrecognized setting VCMIDLTool/notgood",
291
- "Warning: unrecognized setting VCResourceCompilerTool/notgood2",
292
- "Warning: for VCManifestTool/UpdateFileHashes, "
293
- "expected bool; got 'truel'"
294
- "",
295
- ]
296
- )
297
-
298
- def testValidateMSBuildSettings_settings(self):
299
- """Tests that for invalid MSBuild settings."""
300
- MSVSSettings.ValidateMSBuildSettings(
301
- {
302
- "ClCompile": {
303
- "AdditionalIncludeDirectories": "folder1;folder2",
304
- "AdditionalOptions": ["string1", "string2"],
305
- "AdditionalUsingDirectories": "folder1;folder2",
306
- "AssemblerListingLocation": "a_file_name",
307
- "AssemblerOutput": "NoListing",
308
- "BasicRuntimeChecks": "StackFrameRuntimeCheck",
309
- "BrowseInformation": "false",
310
- "BrowseInformationFile": "a_file_name",
311
- "BufferSecurityCheck": "true",
312
- "BuildingInIDE": "true",
313
- "CallingConvention": "Cdecl",
314
- "CompileAs": "CompileAsC",
315
- "CompileAsManaged": "true",
316
- "CreateHotpatchableImage": "true",
317
- "DebugInformationFormat": "ProgramDatabase",
318
- "DisableLanguageExtensions": "true",
319
- "DisableSpecificWarnings": "string1;string2",
320
- "EnableEnhancedInstructionSet": "StreamingSIMDExtensions",
321
- "EnableFiberSafeOptimizations": "true",
322
- "EnablePREfast": "true",
323
- "Enableprefast": "bogus",
324
- "ErrorReporting": "Prompt",
325
- "ExceptionHandling": "SyncCThrow",
326
- "ExpandAttributedSource": "true",
327
- "FavorSizeOrSpeed": "Neither",
328
- "FloatingPointExceptions": "true",
329
- "FloatingPointModel": "Precise",
330
- "ForceConformanceInForLoopScope": "true",
331
- "ForcedIncludeFiles": "file1;file2",
332
- "ForcedUsingFiles": "file1;file2",
333
- "FunctionLevelLinking": "false",
334
- "GenerateXMLDocumentationFiles": "true",
335
- "IgnoreStandardIncludePath": "true",
336
- "InlineFunctionExpansion": "OnlyExplicitInline",
337
- "IntrinsicFunctions": "false",
338
- "MinimalRebuild": "true",
339
- "MultiProcessorCompilation": "true",
340
- "ObjectFileName": "a_file_name",
341
- "OmitDefaultLibName": "true",
342
- "OmitFramePointers": "true",
343
- "OpenMPSupport": "true",
344
- "Optimization": "Disabled",
345
- "PrecompiledHeader": "NotUsing",
346
- "PrecompiledHeaderFile": "a_file_name",
347
- "PrecompiledHeaderOutputFile": "a_file_name",
348
- "PreprocessKeepComments": "true",
349
- "PreprocessorDefinitions": "string1;string2",
350
- "PreprocessOutputPath": "a string1",
351
- "PreprocessSuppressLineNumbers": "false",
352
- "PreprocessToFile": "false",
353
- "ProcessorNumber": "33",
354
- "ProgramDataBaseFileName": "a_file_name",
355
- "RuntimeLibrary": "MultiThreaded",
356
- "RuntimeTypeInfo": "true",
357
- "ShowIncludes": "true",
358
- "SmallerTypeCheck": "true",
359
- "StringPooling": "true",
360
- "StructMemberAlignment": "1Byte",
361
- "SuppressStartupBanner": "true",
362
- "TrackerLogDirectory": "a_folder",
363
- "TreatSpecificWarningsAsErrors": "string1;string2",
364
- "TreatWarningAsError": "true",
365
- "TreatWChar_tAsBuiltInType": "true",
366
- "UndefineAllPreprocessorDefinitions": "true",
367
- "UndefinePreprocessorDefinitions": "string1;string2",
368
- "UseFullPaths": "true",
369
- "UseUnicodeForAssemblerListing": "true",
370
- "WarningLevel": "TurnOffAllWarnings",
371
- "WholeProgramOptimization": "true",
372
- "XMLDocumentationFileName": "a_file_name",
373
- "ZZXYZ": "bogus",
374
- },
375
- "Link": {
376
- "AdditionalDependencies": "file1;file2",
377
- "AdditionalLibraryDirectories": "folder1;folder2",
378
- "AdditionalManifestDependencies": "file1;file2",
379
- "AdditionalOptions": "a string1",
380
- "AddModuleNamesToAssembly": "file1;file2",
381
- "AllowIsolation": "true",
382
- "AssemblyDebug": "",
383
- "AssemblyLinkResource": "file1;file2",
384
- "BaseAddress": "a string1",
385
- "BuildingInIDE": "true",
386
- "CLRImageType": "ForceIJWImage",
387
- "CLRSupportLastError": "Enabled",
388
- "CLRThreadAttribute": "MTAThreadingAttribute",
389
- "CLRUnmanagedCodeCheck": "true",
390
- "CreateHotPatchableImage": "X86Image",
391
- "DataExecutionPrevention": "false",
392
- "DelayLoadDLLs": "file1;file2",
393
- "DelaySign": "true",
394
- "Driver": "NotSet",
395
- "EmbedManagedResourceFile": "file1;file2",
396
- "EnableCOMDATFolding": "false",
397
- "EnableUAC": "true",
398
- "EntryPointSymbol": "a string1",
399
- "FixedBaseAddress": "false",
400
- "ForceFileOutput": "Enabled",
401
- "ForceSymbolReferences": "file1;file2",
402
- "FunctionOrder": "a_file_name",
403
- "GenerateDebugInformation": "true",
404
- "GenerateMapFile": "true",
405
- "HeapCommitSize": "a string1",
406
- "HeapReserveSize": "a string1",
407
- "IgnoreAllDefaultLibraries": "true",
408
- "IgnoreEmbeddedIDL": "true",
409
- "IgnoreSpecificDefaultLibraries": "a_file_list",
410
- "ImageHasSafeExceptionHandlers": "true",
411
- "ImportLibrary": "a_file_name",
412
- "KeyContainer": "a_file_name",
413
- "KeyFile": "a_file_name",
414
- "LargeAddressAware": "false",
415
- "LinkDLL": "true",
416
- "LinkErrorReporting": "SendErrorReport",
417
- "LinkStatus": "true",
418
- "LinkTimeCodeGeneration": "UseLinkTimeCodeGeneration",
419
- "ManifestFile": "a_file_name",
420
- "MapExports": "true",
421
- "MapFileName": "a_file_name",
422
- "MergedIDLBaseFileName": "a_file_name",
423
- "MergeSections": "a string1",
424
- "MidlCommandFile": "a_file_name",
425
- "MinimumRequiredVersion": "a string1",
426
- "ModuleDefinitionFile": "a_file_name",
427
- "MSDOSStubFileName": "a_file_name",
428
- "NoEntryPoint": "true",
429
- "OptimizeReferences": "false",
430
- "OutputFile": "a_file_name",
431
- "PerUserRedirection": "true",
432
- "PreventDllBinding": "true",
433
- "Profile": "true",
434
- "ProfileGuidedDatabase": "a_file_name",
435
- "ProgramDatabaseFile": "a_file_name",
436
- "RandomizedBaseAddress": "false",
437
- "RegisterOutput": "true",
438
- "SectionAlignment": "33",
439
- "SetChecksum": "true",
440
- "ShowProgress": "LinkVerboseREF",
441
- "SpecifySectionAttributes": "a string1",
442
- "StackCommitSize": "a string1",
443
- "StackReserveSize": "a string1",
444
- "StripPrivateSymbols": "a_file_name",
445
- "SubSystem": "Console",
446
- "SupportNobindOfDelayLoadedDLL": "true",
447
- "SupportUnloadOfDelayLoadedDLL": "true",
448
- "SuppressStartupBanner": "true",
449
- "SwapRunFromCD": "true",
450
- "SwapRunFromNET": "true",
451
- "TargetMachine": "MachineX86",
452
- "TerminalServerAware": "false",
453
- "TrackerLogDirectory": "a_folder",
454
- "TreatLinkerWarningAsErrors": "true",
455
- "TurnOffAssemblyGeneration": "true",
456
- "TypeLibraryFile": "a_file_name",
457
- "TypeLibraryResourceID": "33",
458
- "UACExecutionLevel": "AsInvoker",
459
- "UACUIAccess": "true",
460
- "Version": "a string1",
461
- },
462
- "ResourceCompile": {
463
- "AdditionalIncludeDirectories": "folder1;folder2",
464
- "AdditionalOptions": "a string1",
465
- "Culture": "0x236",
466
- "IgnoreStandardIncludePath": "true",
467
- "NullTerminateStrings": "true",
468
- "PreprocessorDefinitions": "string1;string2",
469
- "ResourceOutputFileName": "a string1",
470
- "ShowProgress": "true",
471
- "SuppressStartupBanner": "true",
472
- "TrackerLogDirectory": "a_folder",
473
- "UndefinePreprocessorDefinitions": "string1;string2",
474
- },
475
- "Midl": {
476
- "AdditionalIncludeDirectories": "folder1;folder2",
477
- "AdditionalOptions": "a string1",
478
- "ApplicationConfigurationMode": "true",
479
- "ClientStubFile": "a_file_name",
480
- "CPreprocessOptions": "a string1",
481
- "DefaultCharType": "Signed",
482
- "DllDataFileName": "a_file_name",
483
- "EnableErrorChecks": "EnableCustom",
484
- "ErrorCheckAllocations": "true",
485
- "ErrorCheckBounds": "true",
486
- "ErrorCheckEnumRange": "true",
487
- "ErrorCheckRefPointers": "true",
488
- "ErrorCheckStubData": "true",
489
- "GenerateClientFiles": "Stub",
490
- "GenerateServerFiles": "None",
491
- "GenerateStublessProxies": "true",
492
- "GenerateTypeLibrary": "true",
493
- "HeaderFileName": "a_file_name",
494
- "IgnoreStandardIncludePath": "true",
495
- "InterfaceIdentifierFileName": "a_file_name",
496
- "LocaleID": "33",
497
- "MkTypLibCompatible": "true",
498
- "OutputDirectory": "a string1",
499
- "PreprocessorDefinitions": "string1;string2",
500
- "ProxyFileName": "a_file_name",
501
- "RedirectOutputAndErrors": "a_file_name",
502
- "ServerStubFile": "a_file_name",
503
- "StructMemberAlignment": "NotSet",
504
- "SuppressCompilerWarnings": "true",
505
- "SuppressStartupBanner": "true",
506
- "TargetEnvironment": "Itanium",
507
- "TrackerLogDirectory": "a_folder",
508
- "TypeLibFormat": "NewFormat",
509
- "TypeLibraryName": "a_file_name",
510
- "UndefinePreprocessorDefinitions": "string1;string2",
511
- "ValidateAllParameters": "true",
512
- "WarnAsError": "true",
513
- "WarningLevel": "1",
514
- },
515
- "Lib": {
516
- "AdditionalDependencies": "file1;file2",
517
- "AdditionalLibraryDirectories": "folder1;folder2",
518
- "AdditionalOptions": "a string1",
519
- "DisplayLibrary": "a string1",
520
- "ErrorReporting": "PromptImmediately",
521
- "ExportNamedFunctions": "string1;string2",
522
- "ForceSymbolReferences": "a string1",
523
- "IgnoreAllDefaultLibraries": "true",
524
- "IgnoreSpecificDefaultLibraries": "file1;file2",
525
- "LinkTimeCodeGeneration": "true",
526
- "MinimumRequiredVersion": "a string1",
527
- "ModuleDefinitionFile": "a_file_name",
528
- "Name": "a_file_name",
529
- "OutputFile": "a_file_name",
530
- "RemoveObjects": "file1;file2",
531
- "SubSystem": "Console",
532
- "SuppressStartupBanner": "true",
533
- "TargetMachine": "MachineX86i",
534
- "TrackerLogDirectory": "a_folder",
535
- "TreatLibWarningAsErrors": "true",
536
- "UseUnicodeResponseFiles": "true",
537
- "Verbose": "true",
538
- },
539
- "Manifest": {
540
- "AdditionalManifestFiles": "file1;file2",
541
- "AdditionalOptions": "a string1",
542
- "AssemblyIdentity": "a string1",
543
- "ComponentFileName": "a_file_name",
544
- "EnableDPIAwareness": "fal",
545
- "GenerateCatalogFiles": "truel",
546
- "GenerateCategoryTags": "true",
547
- "InputResourceManifests": "a string1",
548
- "ManifestFromManagedAssembly": "a_file_name",
549
- "notgood3": "bogus",
550
- "OutputManifestFile": "a_file_name",
551
- "OutputResourceManifests": "a string1",
552
- "RegistrarScriptFile": "a_file_name",
553
- "ReplacementsFile": "a_file_name",
554
- "SuppressDependencyElement": "true",
555
- "SuppressStartupBanner": "true",
556
- "TrackerLogDirectory": "a_folder",
557
- "TypeLibraryFile": "a_file_name",
558
- "UpdateFileHashes": "true",
559
- "UpdateFileHashesSearchPath": "a_file_name",
560
- "VerboseOutput": "true",
561
- },
562
- "ProjectReference": {
563
- "LinkLibraryDependencies": "true",
564
- "UseLibraryDependencyInputs": "true",
565
- },
566
- "ManifestResourceCompile": {"ResourceOutputFileName": "a_file_name"},
567
- "": {
568
- "EmbedManifest": "true",
569
- "GenerateManifest": "true",
570
- "IgnoreImportLibrary": "true",
571
- "LinkIncremental": "false",
572
- },
573
- },
574
- self.stderr,
575
- )
576
- self._ExpectedWarnings(
577
- [
578
- "Warning: unrecognized setting ClCompile/Enableprefast",
579
- "Warning: unrecognized setting ClCompile/ZZXYZ",
580
- "Warning: unrecognized setting Manifest/notgood3",
581
- "Warning: for Manifest/GenerateCatalogFiles, "
582
- "expected bool; got 'truel'",
583
- "Warning: for Lib/TargetMachine, unrecognized enumerated value "
584
- "MachineX86i",
585
- "Warning: for Manifest/EnableDPIAwareness, expected bool; got 'fal'",
586
- ]
587
- )
588
-
589
- def testConvertToMSBuildSettings_empty(self):
590
- """Tests an empty conversion."""
591
- msvs_settings = {}
592
- expected_msbuild_settings = {}
593
- actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
594
- msvs_settings, self.stderr
595
- )
596
- self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
597
- self._ExpectedWarnings([])
598
-
599
- def testConvertToMSBuildSettings_minimal(self):
600
- """Tests a minimal conversion."""
601
- msvs_settings = {
602
- "VCCLCompilerTool": {
603
- "AdditionalIncludeDirectories": "dir1",
604
- "AdditionalOptions": "/foo",
605
- "BasicRuntimeChecks": "0",
606
- },
607
- "VCLinkerTool": {
608
- "LinkTimeCodeGeneration": "1",
609
- "ErrorReporting": "1",
610
- "DataExecutionPrevention": "2",
611
- },
612
- }
613
- expected_msbuild_settings = {
614
- "ClCompile": {
615
- "AdditionalIncludeDirectories": "dir1",
616
- "AdditionalOptions": "/foo",
617
- "BasicRuntimeChecks": "Default",
618
- },
619
- "Link": {
620
- "LinkTimeCodeGeneration": "UseLinkTimeCodeGeneration",
621
- "LinkErrorReporting": "PromptImmediately",
622
- "DataExecutionPrevention": "true",
623
- },
624
- }
625
- actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
626
- msvs_settings, self.stderr
627
- )
628
- self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
629
- self._ExpectedWarnings([])
630
-
631
- def testConvertToMSBuildSettings_warnings(self):
632
- """Tests conversion that generates warnings."""
633
- msvs_settings = {
634
- "VCCLCompilerTool": {
635
- "AdditionalIncludeDirectories": "1",
636
- "AdditionalOptions": "2",
637
- # These are incorrect values:
638
- "BasicRuntimeChecks": "12",
639
- "BrowseInformation": "21",
640
- "UsePrecompiledHeader": "13",
641
- "GeneratePreprocessedFile": "14",
642
- },
643
- "VCLinkerTool": {
644
- # These are incorrect values:
645
- "Driver": "10",
646
- "LinkTimeCodeGeneration": "31",
647
- "ErrorReporting": "21",
648
- "FixedBaseAddress": "6",
649
- },
650
- "VCResourceCompilerTool": {
651
- # Custom
652
- "Culture": "1003"
653
- },
654
- }
655
- expected_msbuild_settings = {
656
- "ClCompile": {
657
- "AdditionalIncludeDirectories": "1",
658
- "AdditionalOptions": "2",
659
- },
660
- "Link": {},
661
- "ResourceCompile": {
662
- # Custom
663
- "Culture": "0x03eb"
664
- },
665
- }
666
- actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
667
- msvs_settings, self.stderr
668
- )
669
- self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
670
- self._ExpectedWarnings(
671
- [
672
- "Warning: while converting VCCLCompilerTool/BasicRuntimeChecks to "
673
- "MSBuild, index value (12) not in expected range [0, 4)",
674
- "Warning: while converting VCCLCompilerTool/BrowseInformation to "
675
- "MSBuild, index value (21) not in expected range [0, 3)",
676
- "Warning: while converting VCCLCompilerTool/UsePrecompiledHeader to "
677
- "MSBuild, index value (13) not in expected range [0, 3)",
678
- "Warning: while converting "
679
- "VCCLCompilerTool/GeneratePreprocessedFile to "
680
- "MSBuild, value must be one of [0, 1, 2]; got 14",
681
- "Warning: while converting VCLinkerTool/Driver to "
682
- "MSBuild, index value (10) not in expected range [0, 4)",
683
- "Warning: while converting VCLinkerTool/LinkTimeCodeGeneration to "
684
- "MSBuild, index value (31) not in expected range [0, 5)",
685
- "Warning: while converting VCLinkerTool/ErrorReporting to "
686
- "MSBuild, index value (21) not in expected range [0, 3)",
687
- "Warning: while converting VCLinkerTool/FixedBaseAddress to "
688
- "MSBuild, index value (6) not in expected range [0, 3)",
689
- ]
690
- )
691
-
692
- def testConvertToMSBuildSettings_full_synthetic(self):
693
- """Tests conversion of all the MSBuild settings."""
694
- msvs_settings = {
695
- "VCCLCompilerTool": {
696
- "AdditionalIncludeDirectories": "folder1;folder2;folder3",
697
- "AdditionalOptions": "a_string",
698
- "AdditionalUsingDirectories": "folder1;folder2;folder3",
699
- "AssemblerListingLocation": "a_file_name",
700
- "AssemblerOutput": "0",
701
- "BasicRuntimeChecks": "1",
702
- "BrowseInformation": "2",
703
- "BrowseInformationFile": "a_file_name",
704
- "BufferSecurityCheck": "true",
705
- "CallingConvention": "0",
706
- "CompileAs": "1",
707
- "DebugInformationFormat": "4",
708
- "DefaultCharIsUnsigned": "true",
709
- "Detect64BitPortabilityProblems": "true",
710
- "DisableLanguageExtensions": "true",
711
- "DisableSpecificWarnings": "d1;d2;d3",
712
- "EnableEnhancedInstructionSet": "0",
713
- "EnableFiberSafeOptimizations": "true",
714
- "EnableFunctionLevelLinking": "true",
715
- "EnableIntrinsicFunctions": "true",
716
- "EnablePREfast": "true",
717
- "ErrorReporting": "1",
718
- "ExceptionHandling": "2",
719
- "ExpandAttributedSource": "true",
720
- "FavorSizeOrSpeed": "0",
721
- "FloatingPointExceptions": "true",
722
- "FloatingPointModel": "1",
723
- "ForceConformanceInForLoopScope": "true",
724
- "ForcedIncludeFiles": "file1;file2;file3",
725
- "ForcedUsingFiles": "file1;file2;file3",
726
- "GeneratePreprocessedFile": "1",
727
- "GenerateXMLDocumentationFiles": "true",
728
- "IgnoreStandardIncludePath": "true",
729
- "InlineFunctionExpansion": "2",
730
- "KeepComments": "true",
731
- "MinimalRebuild": "true",
732
- "ObjectFile": "a_file_name",
733
- "OmitDefaultLibName": "true",
734
- "OmitFramePointers": "true",
735
- "OpenMP": "true",
736
- "Optimization": "3",
737
- "PrecompiledHeaderFile": "a_file_name",
738
- "PrecompiledHeaderThrough": "a_file_name",
739
- "PreprocessorDefinitions": "d1;d2;d3",
740
- "ProgramDataBaseFileName": "a_file_name",
741
- "RuntimeLibrary": "0",
742
- "RuntimeTypeInfo": "true",
743
- "ShowIncludes": "true",
744
- "SmallerTypeCheck": "true",
745
- "StringPooling": "true",
746
- "StructMemberAlignment": "1",
747
- "SuppressStartupBanner": "true",
748
- "TreatWChar_tAsBuiltInType": "true",
749
- "UndefineAllPreprocessorDefinitions": "true",
750
- "UndefinePreprocessorDefinitions": "d1;d2;d3",
751
- "UseFullPaths": "true",
752
- "UsePrecompiledHeader": "1",
753
- "UseUnicodeResponseFiles": "true",
754
- "WarnAsError": "true",
755
- "WarningLevel": "2",
756
- "WholeProgramOptimization": "true",
757
- "XMLDocumentationFileName": "a_file_name",
758
- },
759
- "VCLinkerTool": {
760
- "AdditionalDependencies": "file1;file2;file3",
761
- "AdditionalLibraryDirectories": "folder1;folder2;folder3",
762
- "AdditionalLibraryDirectories_excluded": "folder1;folder2;folder3",
763
- "AdditionalManifestDependencies": "file1;file2;file3",
764
- "AdditionalOptions": "a_string",
765
- "AddModuleNamesToAssembly": "file1;file2;file3",
766
- "AllowIsolation": "true",
767
- "AssemblyDebug": "0",
768
- "AssemblyLinkResource": "file1;file2;file3",
769
- "BaseAddress": "a_string",
770
- "CLRImageType": "1",
771
- "CLRThreadAttribute": "2",
772
- "CLRUnmanagedCodeCheck": "true",
773
- "DataExecutionPrevention": "0",
774
- "DelayLoadDLLs": "file1;file2;file3",
775
- "DelaySign": "true",
776
- "Driver": "1",
777
- "EmbedManagedResourceFile": "file1;file2;file3",
778
- "EnableCOMDATFolding": "0",
779
- "EnableUAC": "true",
780
- "EntryPointSymbol": "a_string",
781
- "ErrorReporting": "0",
782
- "FixedBaseAddress": "1",
783
- "ForceSymbolReferences": "file1;file2;file3",
784
- "FunctionOrder": "a_file_name",
785
- "GenerateDebugInformation": "true",
786
- "GenerateManifest": "true",
787
- "GenerateMapFile": "true",
788
- "HeapCommitSize": "a_string",
789
- "HeapReserveSize": "a_string",
790
- "IgnoreAllDefaultLibraries": "true",
791
- "IgnoreDefaultLibraryNames": "file1;file2;file3",
792
- "IgnoreEmbeddedIDL": "true",
793
- "IgnoreImportLibrary": "true",
794
- "ImportLibrary": "a_file_name",
795
- "KeyContainer": "a_file_name",
796
- "KeyFile": "a_file_name",
797
- "LargeAddressAware": "2",
798
- "LinkIncremental": "1",
799
- "LinkLibraryDependencies": "true",
800
- "LinkTimeCodeGeneration": "2",
801
- "ManifestFile": "a_file_name",
802
- "MapExports": "true",
803
- "MapFileName": "a_file_name",
804
- "MergedIDLBaseFileName": "a_file_name",
805
- "MergeSections": "a_string",
806
- "MidlCommandFile": "a_file_name",
807
- "ModuleDefinitionFile": "a_file_name",
808
- "OptimizeForWindows98": "1",
809
- "OptimizeReferences": "0",
810
- "OutputFile": "a_file_name",
811
- "PerUserRedirection": "true",
812
- "Profile": "true",
813
- "ProfileGuidedDatabase": "a_file_name",
814
- "ProgramDatabaseFile": "a_file_name",
815
- "RandomizedBaseAddress": "1",
816
- "RegisterOutput": "true",
817
- "ResourceOnlyDLL": "true",
818
- "SetChecksum": "true",
819
- "ShowProgress": "0",
820
- "StackCommitSize": "a_string",
821
- "StackReserveSize": "a_string",
822
- "StripPrivateSymbols": "a_file_name",
823
- "SubSystem": "2",
824
- "SupportUnloadOfDelayLoadedDLL": "true",
825
- "SuppressStartupBanner": "true",
826
- "SwapRunFromCD": "true",
827
- "SwapRunFromNet": "true",
828
- "TargetMachine": "3",
829
- "TerminalServerAware": "2",
830
- "TurnOffAssemblyGeneration": "true",
831
- "TypeLibraryFile": "a_file_name",
832
- "TypeLibraryResourceID": "33",
833
- "UACExecutionLevel": "1",
834
- "UACUIAccess": "true",
835
- "UseLibraryDependencyInputs": "false",
836
- "UseUnicodeResponseFiles": "true",
837
- "Version": "a_string",
838
- },
839
- "VCResourceCompilerTool": {
840
- "AdditionalIncludeDirectories": "folder1;folder2;folder3",
841
- "AdditionalOptions": "a_string",
842
- "Culture": "1003",
843
- "IgnoreStandardIncludePath": "true",
844
- "PreprocessorDefinitions": "d1;d2;d3",
845
- "ResourceOutputFileName": "a_string",
846
- "ShowProgress": "true",
847
- "SuppressStartupBanner": "true",
848
- "UndefinePreprocessorDefinitions": "d1;d2;d3",
849
- },
850
- "VCMIDLTool": {
851
- "AdditionalIncludeDirectories": "folder1;folder2;folder3",
852
- "AdditionalOptions": "a_string",
853
- "CPreprocessOptions": "a_string",
854
- "DefaultCharType": "0",
855
- "DLLDataFileName": "a_file_name",
856
- "EnableErrorChecks": "2",
857
- "ErrorCheckAllocations": "true",
858
- "ErrorCheckBounds": "true",
859
- "ErrorCheckEnumRange": "true",
860
- "ErrorCheckRefPointers": "true",
861
- "ErrorCheckStubData": "true",
862
- "GenerateStublessProxies": "true",
863
- "GenerateTypeLibrary": "true",
864
- "HeaderFileName": "a_file_name",
865
- "IgnoreStandardIncludePath": "true",
866
- "InterfaceIdentifierFileName": "a_file_name",
867
- "MkTypLibCompatible": "true",
868
- "OutputDirectory": "a_string",
869
- "PreprocessorDefinitions": "d1;d2;d3",
870
- "ProxyFileName": "a_file_name",
871
- "RedirectOutputAndErrors": "a_file_name",
872
- "StructMemberAlignment": "3",
873
- "SuppressStartupBanner": "true",
874
- "TargetEnvironment": "1",
875
- "TypeLibraryName": "a_file_name",
876
- "UndefinePreprocessorDefinitions": "d1;d2;d3",
877
- "ValidateParameters": "true",
878
- "WarnAsError": "true",
879
- "WarningLevel": "4",
880
- },
881
- "VCLibrarianTool": {
882
- "AdditionalDependencies": "file1;file2;file3",
883
- "AdditionalLibraryDirectories": "folder1;folder2;folder3",
884
- "AdditionalLibraryDirectories_excluded": "folder1;folder2;folder3",
885
- "AdditionalOptions": "a_string",
886
- "ExportNamedFunctions": "d1;d2;d3",
887
- "ForceSymbolReferences": "a_string",
888
- "IgnoreAllDefaultLibraries": "true",
889
- "IgnoreSpecificDefaultLibraries": "file1;file2;file3",
890
- "LinkLibraryDependencies": "true",
891
- "ModuleDefinitionFile": "a_file_name",
892
- "OutputFile": "a_file_name",
893
- "SuppressStartupBanner": "true",
894
- "UseUnicodeResponseFiles": "true",
895
- },
896
- "VCManifestTool": {
897
- "AdditionalManifestFiles": "file1;file2;file3",
898
- "AdditionalOptions": "a_string",
899
- "AssemblyIdentity": "a_string",
900
- "ComponentFileName": "a_file_name",
901
- "DependencyInformationFile": "a_file_name",
902
- "EmbedManifest": "true",
903
- "GenerateCatalogFiles": "true",
904
- "InputResourceManifests": "a_string",
905
- "ManifestResourceFile": "my_name",
906
- "OutputManifestFile": "a_file_name",
907
- "RegistrarScriptFile": "a_file_name",
908
- "ReplacementsFile": "a_file_name",
909
- "SuppressStartupBanner": "true",
910
- "TypeLibraryFile": "a_file_name",
911
- "UpdateFileHashes": "true",
912
- "UpdateFileHashesSearchPath": "a_file_name",
913
- "UseFAT32Workaround": "true",
914
- "UseUnicodeResponseFiles": "true",
915
- "VerboseOutput": "true",
916
- },
917
- }
918
- expected_msbuild_settings = {
919
- "ClCompile": {
920
- "AdditionalIncludeDirectories": "folder1;folder2;folder3",
921
- "AdditionalOptions": "a_string /J",
922
- "AdditionalUsingDirectories": "folder1;folder2;folder3",
923
- "AssemblerListingLocation": "a_file_name",
924
- "AssemblerOutput": "NoListing",
925
- "BasicRuntimeChecks": "StackFrameRuntimeCheck",
926
- "BrowseInformation": "true",
927
- "BrowseInformationFile": "a_file_name",
928
- "BufferSecurityCheck": "true",
929
- "CallingConvention": "Cdecl",
930
- "CompileAs": "CompileAsC",
931
- "DebugInformationFormat": "EditAndContinue",
932
- "DisableLanguageExtensions": "true",
933
- "DisableSpecificWarnings": "d1;d2;d3",
934
- "EnableEnhancedInstructionSet": "NotSet",
935
- "EnableFiberSafeOptimizations": "true",
936
- "EnablePREfast": "true",
937
- "ErrorReporting": "Prompt",
938
- "ExceptionHandling": "Async",
939
- "ExpandAttributedSource": "true",
940
- "FavorSizeOrSpeed": "Neither",
941
- "FloatingPointExceptions": "true",
942
- "FloatingPointModel": "Strict",
943
- "ForceConformanceInForLoopScope": "true",
944
- "ForcedIncludeFiles": "file1;file2;file3",
945
- "ForcedUsingFiles": "file1;file2;file3",
946
- "FunctionLevelLinking": "true",
947
- "GenerateXMLDocumentationFiles": "true",
948
- "IgnoreStandardIncludePath": "true",
949
- "InlineFunctionExpansion": "AnySuitable",
950
- "IntrinsicFunctions": "true",
951
- "MinimalRebuild": "true",
952
- "ObjectFileName": "a_file_name",
953
- "OmitDefaultLibName": "true",
954
- "OmitFramePointers": "true",
955
- "OpenMPSupport": "true",
956
- "Optimization": "Full",
957
- "PrecompiledHeader": "Create",
958
- "PrecompiledHeaderFile": "a_file_name",
959
- "PrecompiledHeaderOutputFile": "a_file_name",
960
- "PreprocessKeepComments": "true",
961
- "PreprocessorDefinitions": "d1;d2;d3",
962
- "PreprocessSuppressLineNumbers": "false",
963
- "PreprocessToFile": "true",
964
- "ProgramDataBaseFileName": "a_file_name",
965
- "RuntimeLibrary": "MultiThreaded",
966
- "RuntimeTypeInfo": "true",
967
- "ShowIncludes": "true",
968
- "SmallerTypeCheck": "true",
969
- "StringPooling": "true",
970
- "StructMemberAlignment": "1Byte",
971
- "SuppressStartupBanner": "true",
972
- "TreatWarningAsError": "true",
973
- "TreatWChar_tAsBuiltInType": "true",
974
- "UndefineAllPreprocessorDefinitions": "true",
975
- "UndefinePreprocessorDefinitions": "d1;d2;d3",
976
- "UseFullPaths": "true",
977
- "WarningLevel": "Level2",
978
- "WholeProgramOptimization": "true",
979
- "XMLDocumentationFileName": "a_file_name",
980
- },
981
- "Link": {
982
- "AdditionalDependencies": "file1;file2;file3",
983
- "AdditionalLibraryDirectories": "folder1;folder2;folder3",
984
- "AdditionalManifestDependencies": "file1;file2;file3",
985
- "AdditionalOptions": "a_string",
986
- "AddModuleNamesToAssembly": "file1;file2;file3",
987
- "AllowIsolation": "true",
988
- "AssemblyDebug": "",
989
- "AssemblyLinkResource": "file1;file2;file3",
990
- "BaseAddress": "a_string",
991
- "CLRImageType": "ForceIJWImage",
992
- "CLRThreadAttribute": "STAThreadingAttribute",
993
- "CLRUnmanagedCodeCheck": "true",
994
- "DataExecutionPrevention": "",
995
- "DelayLoadDLLs": "file1;file2;file3",
996
- "DelaySign": "true",
997
- "Driver": "Driver",
998
- "EmbedManagedResourceFile": "file1;file2;file3",
999
- "EnableCOMDATFolding": "",
1000
- "EnableUAC": "true",
1001
- "EntryPointSymbol": "a_string",
1002
- "FixedBaseAddress": "false",
1003
- "ForceSymbolReferences": "file1;file2;file3",
1004
- "FunctionOrder": "a_file_name",
1005
- "GenerateDebugInformation": "true",
1006
- "GenerateMapFile": "true",
1007
- "HeapCommitSize": "a_string",
1008
- "HeapReserveSize": "a_string",
1009
- "IgnoreAllDefaultLibraries": "true",
1010
- "IgnoreEmbeddedIDL": "true",
1011
- "IgnoreSpecificDefaultLibraries": "file1;file2;file3",
1012
- "ImportLibrary": "a_file_name",
1013
- "KeyContainer": "a_file_name",
1014
- "KeyFile": "a_file_name",
1015
- "LargeAddressAware": "true",
1016
- "LinkErrorReporting": "NoErrorReport",
1017
- "LinkTimeCodeGeneration": "PGInstrument",
1018
- "ManifestFile": "a_file_name",
1019
- "MapExports": "true",
1020
- "MapFileName": "a_file_name",
1021
- "MergedIDLBaseFileName": "a_file_name",
1022
- "MergeSections": "a_string",
1023
- "MidlCommandFile": "a_file_name",
1024
- "ModuleDefinitionFile": "a_file_name",
1025
- "NoEntryPoint": "true",
1026
- "OptimizeReferences": "",
1027
- "OutputFile": "a_file_name",
1028
- "PerUserRedirection": "true",
1029
- "Profile": "true",
1030
- "ProfileGuidedDatabase": "a_file_name",
1031
- "ProgramDatabaseFile": "a_file_name",
1032
- "RandomizedBaseAddress": "false",
1033
- "RegisterOutput": "true",
1034
- "SetChecksum": "true",
1035
- "ShowProgress": "NotSet",
1036
- "StackCommitSize": "a_string",
1037
- "StackReserveSize": "a_string",
1038
- "StripPrivateSymbols": "a_file_name",
1039
- "SubSystem": "Windows",
1040
- "SupportUnloadOfDelayLoadedDLL": "true",
1041
- "SuppressStartupBanner": "true",
1042
- "SwapRunFromCD": "true",
1043
- "SwapRunFromNET": "true",
1044
- "TargetMachine": "MachineARM",
1045
- "TerminalServerAware": "true",
1046
- "TurnOffAssemblyGeneration": "true",
1047
- "TypeLibraryFile": "a_file_name",
1048
- "TypeLibraryResourceID": "33",
1049
- "UACExecutionLevel": "HighestAvailable",
1050
- "UACUIAccess": "true",
1051
- "Version": "a_string",
1052
- },
1053
- "ResourceCompile": {
1054
- "AdditionalIncludeDirectories": "folder1;folder2;folder3",
1055
- "AdditionalOptions": "a_string",
1056
- "Culture": "0x03eb",
1057
- "IgnoreStandardIncludePath": "true",
1058
- "PreprocessorDefinitions": "d1;d2;d3",
1059
- "ResourceOutputFileName": "a_string",
1060
- "ShowProgress": "true",
1061
- "SuppressStartupBanner": "true",
1062
- "UndefinePreprocessorDefinitions": "d1;d2;d3",
1063
- },
1064
- "Midl": {
1065
- "AdditionalIncludeDirectories": "folder1;folder2;folder3",
1066
- "AdditionalOptions": "a_string",
1067
- "CPreprocessOptions": "a_string",
1068
- "DefaultCharType": "Unsigned",
1069
- "DllDataFileName": "a_file_name",
1070
- "EnableErrorChecks": "All",
1071
- "ErrorCheckAllocations": "true",
1072
- "ErrorCheckBounds": "true",
1073
- "ErrorCheckEnumRange": "true",
1074
- "ErrorCheckRefPointers": "true",
1075
- "ErrorCheckStubData": "true",
1076
- "GenerateStublessProxies": "true",
1077
- "GenerateTypeLibrary": "true",
1078
- "HeaderFileName": "a_file_name",
1079
- "IgnoreStandardIncludePath": "true",
1080
- "InterfaceIdentifierFileName": "a_file_name",
1081
- "MkTypLibCompatible": "true",
1082
- "OutputDirectory": "a_string",
1083
- "PreprocessorDefinitions": "d1;d2;d3",
1084
- "ProxyFileName": "a_file_name",
1085
- "RedirectOutputAndErrors": "a_file_name",
1086
- "StructMemberAlignment": "4",
1087
- "SuppressStartupBanner": "true",
1088
- "TargetEnvironment": "Win32",
1089
- "TypeLibraryName": "a_file_name",
1090
- "UndefinePreprocessorDefinitions": "d1;d2;d3",
1091
- "ValidateAllParameters": "true",
1092
- "WarnAsError": "true",
1093
- "WarningLevel": "4",
1094
- },
1095
- "Lib": {
1096
- "AdditionalDependencies": "file1;file2;file3",
1097
- "AdditionalLibraryDirectories": "folder1;folder2;folder3",
1098
- "AdditionalOptions": "a_string",
1099
- "ExportNamedFunctions": "d1;d2;d3",
1100
- "ForceSymbolReferences": "a_string",
1101
- "IgnoreAllDefaultLibraries": "true",
1102
- "IgnoreSpecificDefaultLibraries": "file1;file2;file3",
1103
- "ModuleDefinitionFile": "a_file_name",
1104
- "OutputFile": "a_file_name",
1105
- "SuppressStartupBanner": "true",
1106
- "UseUnicodeResponseFiles": "true",
1107
- },
1108
- "Manifest": {
1109
- "AdditionalManifestFiles": "file1;file2;file3",
1110
- "AdditionalOptions": "a_string",
1111
- "AssemblyIdentity": "a_string",
1112
- "ComponentFileName": "a_file_name",
1113
- "GenerateCatalogFiles": "true",
1114
- "InputResourceManifests": "a_string",
1115
- "OutputManifestFile": "a_file_name",
1116
- "RegistrarScriptFile": "a_file_name",
1117
- "ReplacementsFile": "a_file_name",
1118
- "SuppressStartupBanner": "true",
1119
- "TypeLibraryFile": "a_file_name",
1120
- "UpdateFileHashes": "true",
1121
- "UpdateFileHashesSearchPath": "a_file_name",
1122
- "VerboseOutput": "true",
1123
- },
1124
- "ManifestResourceCompile": {"ResourceOutputFileName": "my_name"},
1125
- "ProjectReference": {
1126
- "LinkLibraryDependencies": "true",
1127
- "UseLibraryDependencyInputs": "false",
1128
- },
1129
- "": {
1130
- "EmbedManifest": "true",
1131
- "GenerateManifest": "true",
1132
- "IgnoreImportLibrary": "true",
1133
- "LinkIncremental": "false",
1134
- },
1135
- }
1136
- self.maxDiff = 9999 # on failure display a long diff
1137
- actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
1138
- msvs_settings, self.stderr
1139
- )
1140
- self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
1141
- self._ExpectedWarnings([])
1142
-
1143
- def testConvertToMSBuildSettings_actual(self):
1144
- """Tests the conversion of an actual project.
1145
-
1146
- A VS2008 project with most of the options defined was created through the
1147
- VS2008 IDE. It was then converted to VS2010. The tool settings found in
1148
- the .vcproj and .vcxproj files were converted to the two dictionaries
1149
- msvs_settings and expected_msbuild_settings.
1150
-
1151
- Note that for many settings, the VS2010 converter adds macros like
1152
- %(AdditionalIncludeDirectories) to make sure than inherited values are
1153
- included. Since the Gyp projects we generate do not use inheritance,
1154
- we removed these macros. They were:
1155
- ClCompile:
1156
- AdditionalIncludeDirectories: ';%(AdditionalIncludeDirectories)'
1157
- AdditionalOptions: ' %(AdditionalOptions)'
1158
- AdditionalUsingDirectories: ';%(AdditionalUsingDirectories)'
1159
- DisableSpecificWarnings: ';%(DisableSpecificWarnings)',
1160
- ForcedIncludeFiles: ';%(ForcedIncludeFiles)',
1161
- ForcedUsingFiles: ';%(ForcedUsingFiles)',
1162
- PreprocessorDefinitions: ';%(PreprocessorDefinitions)',
1163
- UndefinePreprocessorDefinitions:
1164
- ';%(UndefinePreprocessorDefinitions)',
1165
- Link:
1166
- AdditionalDependencies: ';%(AdditionalDependencies)',
1167
- AdditionalLibraryDirectories: ';%(AdditionalLibraryDirectories)',
1168
- AdditionalManifestDependencies:
1169
- ';%(AdditionalManifestDependencies)',
1170
- AdditionalOptions: ' %(AdditionalOptions)',
1171
- AddModuleNamesToAssembly: ';%(AddModuleNamesToAssembly)',
1172
- AssemblyLinkResource: ';%(AssemblyLinkResource)',
1173
- DelayLoadDLLs: ';%(DelayLoadDLLs)',
1174
- EmbedManagedResourceFile: ';%(EmbedManagedResourceFile)',
1175
- ForceSymbolReferences: ';%(ForceSymbolReferences)',
1176
- IgnoreSpecificDefaultLibraries:
1177
- ';%(IgnoreSpecificDefaultLibraries)',
1178
- ResourceCompile:
1179
- AdditionalIncludeDirectories: ';%(AdditionalIncludeDirectories)',
1180
- AdditionalOptions: ' %(AdditionalOptions)',
1181
- PreprocessorDefinitions: ';%(PreprocessorDefinitions)',
1182
- Manifest:
1183
- AdditionalManifestFiles: ';%(AdditionalManifestFiles)',
1184
- AdditionalOptions: ' %(AdditionalOptions)',
1185
- InputResourceManifests: ';%(InputResourceManifests)',
1186
- """
1187
- msvs_settings = {
1188
- "VCCLCompilerTool": {
1189
- "AdditionalIncludeDirectories": "dir1",
1190
- "AdditionalOptions": "/more",
1191
- "AdditionalUsingDirectories": "test",
1192
- "AssemblerListingLocation": "$(IntDir)\\a",
1193
- "AssemblerOutput": "1",
1194
- "BasicRuntimeChecks": "3",
1195
- "BrowseInformation": "1",
1196
- "BrowseInformationFile": "$(IntDir)\\e",
1197
- "BufferSecurityCheck": "false",
1198
- "CallingConvention": "1",
1199
- "CompileAs": "1",
1200
- "DebugInformationFormat": "4",
1201
- "DefaultCharIsUnsigned": "true",
1202
- "Detect64BitPortabilityProblems": "true",
1203
- "DisableLanguageExtensions": "true",
1204
- "DisableSpecificWarnings": "abc",
1205
- "EnableEnhancedInstructionSet": "1",
1206
- "EnableFiberSafeOptimizations": "true",
1207
- "EnableFunctionLevelLinking": "true",
1208
- "EnableIntrinsicFunctions": "true",
1209
- "EnablePREfast": "true",
1210
- "ErrorReporting": "2",
1211
- "ExceptionHandling": "2",
1212
- "ExpandAttributedSource": "true",
1213
- "FavorSizeOrSpeed": "2",
1214
- "FloatingPointExceptions": "true",
1215
- "FloatingPointModel": "1",
1216
- "ForceConformanceInForLoopScope": "false",
1217
- "ForcedIncludeFiles": "def",
1218
- "ForcedUsingFiles": "ge",
1219
- "GeneratePreprocessedFile": "2",
1220
- "GenerateXMLDocumentationFiles": "true",
1221
- "IgnoreStandardIncludePath": "true",
1222
- "InlineFunctionExpansion": "1",
1223
- "KeepComments": "true",
1224
- "MinimalRebuild": "true",
1225
- "ObjectFile": "$(IntDir)\\b",
1226
- "OmitDefaultLibName": "true",
1227
- "OmitFramePointers": "true",
1228
- "OpenMP": "true",
1229
- "Optimization": "3",
1230
- "PrecompiledHeaderFile": "$(IntDir)\\$(TargetName).pche",
1231
- "PrecompiledHeaderThrough": "StdAfx.hd",
1232
- "PreprocessorDefinitions": "WIN32;_DEBUG;_CONSOLE",
1233
- "ProgramDataBaseFileName": "$(IntDir)\\vc90b.pdb",
1234
- "RuntimeLibrary": "3",
1235
- "RuntimeTypeInfo": "false",
1236
- "ShowIncludes": "true",
1237
- "SmallerTypeCheck": "true",
1238
- "StringPooling": "true",
1239
- "StructMemberAlignment": "3",
1240
- "SuppressStartupBanner": "false",
1241
- "TreatWChar_tAsBuiltInType": "false",
1242
- "UndefineAllPreprocessorDefinitions": "true",
1243
- "UndefinePreprocessorDefinitions": "wer",
1244
- "UseFullPaths": "true",
1245
- "UsePrecompiledHeader": "0",
1246
- "UseUnicodeResponseFiles": "false",
1247
- "WarnAsError": "true",
1248
- "WarningLevel": "3",
1249
- "WholeProgramOptimization": "true",
1250
- "XMLDocumentationFileName": "$(IntDir)\\c",
1251
- },
1252
- "VCLinkerTool": {
1253
- "AdditionalDependencies": "zx",
1254
- "AdditionalLibraryDirectories": "asd",
1255
- "AdditionalManifestDependencies": "s2",
1256
- "AdditionalOptions": "/mor2",
1257
- "AddModuleNamesToAssembly": "d1",
1258
- "AllowIsolation": "false",
1259
- "AssemblyDebug": "1",
1260
- "AssemblyLinkResource": "d5",
1261
- "BaseAddress": "23423",
1262
- "CLRImageType": "3",
1263
- "CLRThreadAttribute": "1",
1264
- "CLRUnmanagedCodeCheck": "true",
1265
- "DataExecutionPrevention": "0",
1266
- "DelayLoadDLLs": "d4",
1267
- "DelaySign": "true",
1268
- "Driver": "2",
1269
- "EmbedManagedResourceFile": "d2",
1270
- "EnableCOMDATFolding": "1",
1271
- "EnableUAC": "false",
1272
- "EntryPointSymbol": "f5",
1273
- "ErrorReporting": "2",
1274
- "FixedBaseAddress": "1",
1275
- "ForceSymbolReferences": "d3",
1276
- "FunctionOrder": "fssdfsd",
1277
- "GenerateDebugInformation": "true",
1278
- "GenerateManifest": "false",
1279
- "GenerateMapFile": "true",
1280
- "HeapCommitSize": "13",
1281
- "HeapReserveSize": "12",
1282
- "IgnoreAllDefaultLibraries": "true",
1283
- "IgnoreDefaultLibraryNames": "flob;flok",
1284
- "IgnoreEmbeddedIDL": "true",
1285
- "IgnoreImportLibrary": "true",
1286
- "ImportLibrary": "f4",
1287
- "KeyContainer": "f7",
1288
- "KeyFile": "f6",
1289
- "LargeAddressAware": "2",
1290
- "LinkIncremental": "0",
1291
- "LinkLibraryDependencies": "false",
1292
- "LinkTimeCodeGeneration": "1",
1293
- "ManifestFile": "$(IntDir)\\$(TargetFileName).2intermediate.manifest",
1294
- "MapExports": "true",
1295
- "MapFileName": "d5",
1296
- "MergedIDLBaseFileName": "f2",
1297
- "MergeSections": "f5",
1298
- "MidlCommandFile": "f1",
1299
- "ModuleDefinitionFile": "sdsd",
1300
- "OptimizeForWindows98": "2",
1301
- "OptimizeReferences": "2",
1302
- "OutputFile": "$(OutDir)\\$(ProjectName)2.exe",
1303
- "PerUserRedirection": "true",
1304
- "Profile": "true",
1305
- "ProfileGuidedDatabase": "$(TargetDir)$(TargetName).pgdd",
1306
- "ProgramDatabaseFile": "Flob.pdb",
1307
- "RandomizedBaseAddress": "1",
1308
- "RegisterOutput": "true",
1309
- "ResourceOnlyDLL": "true",
1310
- "SetChecksum": "false",
1311
- "ShowProgress": "1",
1312
- "StackCommitSize": "15",
1313
- "StackReserveSize": "14",
1314
- "StripPrivateSymbols": "d3",
1315
- "SubSystem": "1",
1316
- "SupportUnloadOfDelayLoadedDLL": "true",
1317
- "SuppressStartupBanner": "false",
1318
- "SwapRunFromCD": "true",
1319
- "SwapRunFromNet": "true",
1320
- "TargetMachine": "1",
1321
- "TerminalServerAware": "1",
1322
- "TurnOffAssemblyGeneration": "true",
1323
- "TypeLibraryFile": "f3",
1324
- "TypeLibraryResourceID": "12",
1325
- "UACExecutionLevel": "2",
1326
- "UACUIAccess": "true",
1327
- "UseLibraryDependencyInputs": "true",
1328
- "UseUnicodeResponseFiles": "false",
1329
- "Version": "333",
1330
- },
1331
- "VCResourceCompilerTool": {
1332
- "AdditionalIncludeDirectories": "f3",
1333
- "AdditionalOptions": "/more3",
1334
- "Culture": "3084",
1335
- "IgnoreStandardIncludePath": "true",
1336
- "PreprocessorDefinitions": "_UNICODE;UNICODE2",
1337
- "ResourceOutputFileName": "$(IntDir)/$(InputName)3.res",
1338
- "ShowProgress": "true",
1339
- },
1340
- "VCManifestTool": {
1341
- "AdditionalManifestFiles": "sfsdfsd",
1342
- "AdditionalOptions": "afdsdafsd",
1343
- "AssemblyIdentity": "sddfdsadfsa",
1344
- "ComponentFileName": "fsdfds",
1345
- "DependencyInformationFile": "$(IntDir)\\mt.depdfd",
1346
- "EmbedManifest": "false",
1347
- "GenerateCatalogFiles": "true",
1348
- "InputResourceManifests": "asfsfdafs",
1349
- "ManifestResourceFile": "$(IntDir)\\$(TargetFileName).embed.manifest.resfdsf", # noqa: E501
1350
- "OutputManifestFile": "$(TargetPath).manifestdfs",
1351
- "RegistrarScriptFile": "sdfsfd",
1352
- "ReplacementsFile": "sdffsd",
1353
- "SuppressStartupBanner": "false",
1354
- "TypeLibraryFile": "sfsd",
1355
- "UpdateFileHashes": "true",
1356
- "UpdateFileHashesSearchPath": "sfsd",
1357
- "UseFAT32Workaround": "true",
1358
- "UseUnicodeResponseFiles": "false",
1359
- "VerboseOutput": "true",
1360
- },
1361
- }
1362
- expected_msbuild_settings = {
1363
- "ClCompile": {
1364
- "AdditionalIncludeDirectories": "dir1",
1365
- "AdditionalOptions": "/more /J",
1366
- "AdditionalUsingDirectories": "test",
1367
- "AssemblerListingLocation": "$(IntDir)a",
1368
- "AssemblerOutput": "AssemblyCode",
1369
- "BasicRuntimeChecks": "EnableFastChecks",
1370
- "BrowseInformation": "true",
1371
- "BrowseInformationFile": "$(IntDir)e",
1372
- "BufferSecurityCheck": "false",
1373
- "CallingConvention": "FastCall",
1374
- "CompileAs": "CompileAsC",
1375
- "DebugInformationFormat": "EditAndContinue",
1376
- "DisableLanguageExtensions": "true",
1377
- "DisableSpecificWarnings": "abc",
1378
- "EnableEnhancedInstructionSet": "StreamingSIMDExtensions",
1379
- "EnableFiberSafeOptimizations": "true",
1380
- "EnablePREfast": "true",
1381
- "ErrorReporting": "Queue",
1382
- "ExceptionHandling": "Async",
1383
- "ExpandAttributedSource": "true",
1384
- "FavorSizeOrSpeed": "Size",
1385
- "FloatingPointExceptions": "true",
1386
- "FloatingPointModel": "Strict",
1387
- "ForceConformanceInForLoopScope": "false",
1388
- "ForcedIncludeFiles": "def",
1389
- "ForcedUsingFiles": "ge",
1390
- "FunctionLevelLinking": "true",
1391
- "GenerateXMLDocumentationFiles": "true",
1392
- "IgnoreStandardIncludePath": "true",
1393
- "InlineFunctionExpansion": "OnlyExplicitInline",
1394
- "IntrinsicFunctions": "true",
1395
- "MinimalRebuild": "true",
1396
- "ObjectFileName": "$(IntDir)b",
1397
- "OmitDefaultLibName": "true",
1398
- "OmitFramePointers": "true",
1399
- "OpenMPSupport": "true",
1400
- "Optimization": "Full",
1401
- "PrecompiledHeader": "NotUsing", # Actual conversion gives ''
1402
- "PrecompiledHeaderFile": "StdAfx.hd",
1403
- "PrecompiledHeaderOutputFile": "$(IntDir)$(TargetName).pche",
1404
- "PreprocessKeepComments": "true",
1405
- "PreprocessorDefinitions": "WIN32;_DEBUG;_CONSOLE",
1406
- "PreprocessSuppressLineNumbers": "true",
1407
- "PreprocessToFile": "true",
1408
- "ProgramDataBaseFileName": "$(IntDir)vc90b.pdb",
1409
- "RuntimeLibrary": "MultiThreadedDebugDLL",
1410
- "RuntimeTypeInfo": "false",
1411
- "ShowIncludes": "true",
1412
- "SmallerTypeCheck": "true",
1413
- "StringPooling": "true",
1414
- "StructMemberAlignment": "4Bytes",
1415
- "SuppressStartupBanner": "false",
1416
- "TreatWarningAsError": "true",
1417
- "TreatWChar_tAsBuiltInType": "false",
1418
- "UndefineAllPreprocessorDefinitions": "true",
1419
- "UndefinePreprocessorDefinitions": "wer",
1420
- "UseFullPaths": "true",
1421
- "WarningLevel": "Level3",
1422
- "WholeProgramOptimization": "true",
1423
- "XMLDocumentationFileName": "$(IntDir)c",
1424
- },
1425
- "Link": {
1426
- "AdditionalDependencies": "zx",
1427
- "AdditionalLibraryDirectories": "asd",
1428
- "AdditionalManifestDependencies": "s2",
1429
- "AdditionalOptions": "/mor2",
1430
- "AddModuleNamesToAssembly": "d1",
1431
- "AllowIsolation": "false",
1432
- "AssemblyDebug": "true",
1433
- "AssemblyLinkResource": "d5",
1434
- "BaseAddress": "23423",
1435
- "CLRImageType": "ForceSafeILImage",
1436
- "CLRThreadAttribute": "MTAThreadingAttribute",
1437
- "CLRUnmanagedCodeCheck": "true",
1438
- "DataExecutionPrevention": "",
1439
- "DelayLoadDLLs": "d4",
1440
- "DelaySign": "true",
1441
- "Driver": "UpOnly",
1442
- "EmbedManagedResourceFile": "d2",
1443
- "EnableCOMDATFolding": "false",
1444
- "EnableUAC": "false",
1445
- "EntryPointSymbol": "f5",
1446
- "FixedBaseAddress": "false",
1447
- "ForceSymbolReferences": "d3",
1448
- "FunctionOrder": "fssdfsd",
1449
- "GenerateDebugInformation": "true",
1450
- "GenerateMapFile": "true",
1451
- "HeapCommitSize": "13",
1452
- "HeapReserveSize": "12",
1453
- "IgnoreAllDefaultLibraries": "true",
1454
- "IgnoreEmbeddedIDL": "true",
1455
- "IgnoreSpecificDefaultLibraries": "flob;flok",
1456
- "ImportLibrary": "f4",
1457
- "KeyContainer": "f7",
1458
- "KeyFile": "f6",
1459
- "LargeAddressAware": "true",
1460
- "LinkErrorReporting": "QueueForNextLogin",
1461
- "LinkTimeCodeGeneration": "UseLinkTimeCodeGeneration",
1462
- "ManifestFile": "$(IntDir)$(TargetFileName).2intermediate.manifest",
1463
- "MapExports": "true",
1464
- "MapFileName": "d5",
1465
- "MergedIDLBaseFileName": "f2",
1466
- "MergeSections": "f5",
1467
- "MidlCommandFile": "f1",
1468
- "ModuleDefinitionFile": "sdsd",
1469
- "NoEntryPoint": "true",
1470
- "OptimizeReferences": "true",
1471
- "OutputFile": "$(OutDir)$(ProjectName)2.exe",
1472
- "PerUserRedirection": "true",
1473
- "Profile": "true",
1474
- "ProfileGuidedDatabase": "$(TargetDir)$(TargetName).pgdd",
1475
- "ProgramDatabaseFile": "Flob.pdb",
1476
- "RandomizedBaseAddress": "false",
1477
- "RegisterOutput": "true",
1478
- "SetChecksum": "false",
1479
- "ShowProgress": "LinkVerbose",
1480
- "StackCommitSize": "15",
1481
- "StackReserveSize": "14",
1482
- "StripPrivateSymbols": "d3",
1483
- "SubSystem": "Console",
1484
- "SupportUnloadOfDelayLoadedDLL": "true",
1485
- "SuppressStartupBanner": "false",
1486
- "SwapRunFromCD": "true",
1487
- "SwapRunFromNET": "true",
1488
- "TargetMachine": "MachineX86",
1489
- "TerminalServerAware": "false",
1490
- "TurnOffAssemblyGeneration": "true",
1491
- "TypeLibraryFile": "f3",
1492
- "TypeLibraryResourceID": "12",
1493
- "UACExecutionLevel": "RequireAdministrator",
1494
- "UACUIAccess": "true",
1495
- "Version": "333",
1496
- },
1497
- "ResourceCompile": {
1498
- "AdditionalIncludeDirectories": "f3",
1499
- "AdditionalOptions": "/more3",
1500
- "Culture": "0x0c0c",
1501
- "IgnoreStandardIncludePath": "true",
1502
- "PreprocessorDefinitions": "_UNICODE;UNICODE2",
1503
- "ResourceOutputFileName": "$(IntDir)%(Filename)3.res",
1504
- "ShowProgress": "true",
1505
- },
1506
- "Manifest": {
1507
- "AdditionalManifestFiles": "sfsdfsd",
1508
- "AdditionalOptions": "afdsdafsd",
1509
- "AssemblyIdentity": "sddfdsadfsa",
1510
- "ComponentFileName": "fsdfds",
1511
- "GenerateCatalogFiles": "true",
1512
- "InputResourceManifests": "asfsfdafs",
1513
- "OutputManifestFile": "$(TargetPath).manifestdfs",
1514
- "RegistrarScriptFile": "sdfsfd",
1515
- "ReplacementsFile": "sdffsd",
1516
- "SuppressStartupBanner": "false",
1517
- "TypeLibraryFile": "sfsd",
1518
- "UpdateFileHashes": "true",
1519
- "UpdateFileHashesSearchPath": "sfsd",
1520
- "VerboseOutput": "true",
1521
- },
1522
- "ProjectReference": {
1523
- "LinkLibraryDependencies": "false",
1524
- "UseLibraryDependencyInputs": "true",
1525
- },
1526
- "": {
1527
- "EmbedManifest": "false",
1528
- "GenerateManifest": "false",
1529
- "IgnoreImportLibrary": "true",
1530
- "LinkIncremental": "",
1531
- },
1532
- "ManifestResourceCompile": {
1533
- "ResourceOutputFileName": "$(IntDir)$(TargetFileName).embed.manifest.resfdsf" # noqa: E501
1534
- },
1535
- }
1536
- self.maxDiff = 9999 # on failure display a long diff
1537
- actual_msbuild_settings = MSVSSettings.ConvertToMSBuildSettings(
1538
- msvs_settings, self.stderr
1539
- )
1540
- self.assertEqual(expected_msbuild_settings, actual_msbuild_settings)
1541
- self._ExpectedWarnings([])
1542
-
1543
-
1544
- if __name__ == "__main__":
1545
- unittest.main()