pnpm 10.2.1 → 10.3.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 (53) hide show
  1. package/dist/node_modules/.modules.yaml +7 -9
  2. package/dist/node_modules/.pnpm/lock.yaml +13 -12
  3. package/dist/node_modules/.pnpm-workspace-state.json +1 -1
  4. package/dist/node_modules/exponential-backoff/LICENSE +2 -2
  5. package/dist/node_modules/exponential-backoff/dist/backoff.js +6 -0
  6. package/dist/node_modules/exponential-backoff/dist/backoff.js.map +1 -1
  7. package/dist/node_modules/exponential-backoff/dist/options.js.map +1 -1
  8. package/dist/node_modules/exponential-backoff/package.json +6 -5
  9. package/dist/node_modules/node-gyp/.release-please-manifest.json +1 -1
  10. package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +1 -1
  11. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1 -1
  12. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +1 -1
  13. package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +23 -10
  14. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +1 -1
  15. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1 -1
  16. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +6 -6
  17. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +16 -16
  18. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +15 -10
  19. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +16 -13
  20. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1 -1
  21. package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +58 -60
  22. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +9 -6
  23. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +10 -10
  24. package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +7 -7
  25. package/dist/node_modules/node-gyp/gyp/pyproject.toml +1 -2
  26. package/dist/node_modules/node-gyp/lib/find-visualstudio.js +14 -4
  27. package/dist/node_modules/node-gyp/package.json +1 -1
  28. package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +3 -1
  29. package/dist/node_modules/socks/package.json +1 -1
  30. package/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
  31. package/dist/node_modules/yallist/package.json +12 -51
  32. package/dist/pnpm.cjs +713 -618
  33. package/package.json +1 -1
  34. package/dist/node_modules/minipass-flush/node_modules/yallist/package.json +0 -29
  35. package/dist/node_modules/minipass-pipeline/node_modules/yallist/LICENSE +0 -15
  36. package/dist/node_modules/minipass-pipeline/node_modules/yallist/iterator.js +0 -8
  37. package/dist/node_modules/minipass-pipeline/node_modules/yallist/package.json +0 -29
  38. package/dist/node_modules/minipass-pipeline/node_modules/yallist/yallist.js +0 -426
  39. package/dist/node_modules/minipass-sized/node_modules/yallist/LICENSE +0 -15
  40. package/dist/node_modules/minipass-sized/node_modules/yallist/iterator.js +0 -8
  41. package/dist/node_modules/minipass-sized/node_modules/yallist/package.json +0 -29
  42. package/dist/node_modules/minipass-sized/node_modules/yallist/yallist.js +0 -426
  43. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.d.ts.map +0 -0
  44. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.js +0 -0
  45. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.js.map +0 -0
  46. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/package.json +0 -0
  47. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.d.ts.map +0 -0
  48. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.js +0 -0
  49. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.js.map +0 -0
  50. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/package.json +0 -0
  51. /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/LICENSE +0 -0
  52. /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/iterator.js +0 -0
  53. /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/yallist.js +0 -0
@@ -16,8 +16,8 @@ hoistedLocations:
16
16
  agent-base@7.1.3:
17
17
  - node_modules/agent-base
18
18
  ansi-regex@5.0.1:
19
- - node_modules/strip-ansi-cjs/node_modules/ansi-regex
20
19
  - node_modules/wrap-ansi-cjs/node_modules/ansi-regex
20
+ - node_modules/strip-ansi-cjs/node_modules/ansi-regex
21
21
  - node_modules/string-width-cjs/node_modules/ansi-regex
22
22
  ansi-regex@6.1.0:
23
23
  - node_modules/ansi-regex
@@ -54,7 +54,7 @@ hoistedLocations:
54
54
  - node_modules/env-paths
55
55
  err-code@2.0.3:
56
56
  - node_modules/err-code
57
- exponential-backoff@3.1.1:
57
+ exponential-backoff@3.1.2:
58
58
  - node_modules/exponential-backoff
59
59
  foreground-child@3.3.0:
60
60
  - node_modules/foreground-child
@@ -116,7 +116,7 @@ hoistedLocations:
116
116
  - node_modules/ms
117
117
  negotiator@1.0.0:
118
118
  - node_modules/negotiator
119
- node-gyp@11.0.0:
119
+ node-gyp@11.1.0:
120
120
  - node_modules/node-gyp
121
121
  nopt@8.1.0:
122
122
  - node_modules/nopt
@@ -150,7 +150,7 @@ hoistedLocations:
150
150
  - node_modules/smart-buffer
151
151
  socks-proxy-agent@8.0.5:
152
152
  - node_modules/socks-proxy-agent
153
- socks@2.8.3:
153
+ socks@2.8.4:
154
154
  - node_modules/socks
155
155
  sprintf-js@1.1.3:
156
156
  - node_modules/sprintf-js
@@ -184,11 +184,9 @@ hoistedLocations:
184
184
  wrap-ansi@8.1.0:
185
185
  - node_modules/wrap-ansi
186
186
  yallist@4.0.0:
187
- - node_modules/minipass-flush/node_modules/yallist
188
- - node_modules/minipass-pipeline/node_modules/yallist
189
- - node_modules/minipass-sized/node_modules/yallist
190
- yallist@5.0.0:
191
187
  - node_modules/yallist
188
+ yallist@5.0.0:
189
+ - node_modules/tar/node_modules/yallist
192
190
  included:
193
191
  dependencies: true
194
192
  devDependencies: true
@@ -198,7 +196,7 @@ layoutVersion: 5
198
196
  nodeLinker: hoisted
199
197
  packageManager: pnpm@10.2.0
200
198
  pendingBuilds: []
201
- prunedAt: Thu, 06 Feb 2025 19:10:58 GMT
199
+ prunedAt: Mon, 10 Feb 2025 23:51:33 GMT
202
200
  publicHoistPattern: []
203
201
  registries:
204
202
  default: https://registry.npmjs.org/
@@ -24,6 +24,7 @@ overrides:
24
24
  path-to-regexp@<0.1.12: ^0.1.12
25
25
  path-to-regexp@>=4.0.0 <6.3.0: '>=6.3.0'
26
26
  path-to-regexp@>=7.0.0 <8.0.0: '>=8.0.0'
27
+ request: npm:postman-request@2.88.1-postman.40
27
28
  semver@<7.5.2: ^7.6.2
28
29
  send@<0.19.0: ^0.19.0
29
30
  serve-static@<1.16.0: ^1.16.0
@@ -42,7 +43,7 @@ importers:
42
43
  optionalDependencies:
43
44
  node-gyp:
44
45
  specifier: ^11.0.0
45
- version: 11.0.0
46
+ version: 11.1.0
46
47
 
47
48
  packages:
48
49
 
@@ -143,8 +144,8 @@ packages:
143
144
  err-code@2.0.3:
144
145
  resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==}
145
146
 
146
- exponential-backoff@3.1.1:
147
- resolution: {integrity: sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==}
147
+ exponential-backoff@3.1.2:
148
+ resolution: {integrity: sha512-8QxYTVXUkuy7fIIoitQkPwGonB8F3Zj8eEO8Sqg9Zv/bkI7RJAzowee4gr81Hak/dUTpA2Z7VfQgoijjPNlUZA==}
148
149
 
149
150
  foreground-child@3.3.0:
150
151
  resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==}
@@ -256,8 +257,8 @@ packages:
256
257
  resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}
257
258
  engines: {node: '>= 0.6'}
258
259
 
259
- node-gyp@11.0.0:
260
- resolution: {integrity: sha512-zQS+9MTTeCMgY0F3cWPyJyRFAkVltQ1uXm+xXu/ES6KFgC6Czo1Seb9vQW2wNxSX2OrDTiqL0ojtkFxBQ0ypIw==}
260
+ node-gyp@11.1.0:
261
+ resolution: {integrity: sha512-/+7TuHKnBpnMvUQnsYEb0JOozDZqarQbfNuSGLXIjhStMT0fbw7IdSqWgopOP5xhRZE+lsbIvAHcekddruPZgQ==}
261
262
  engines: {node: ^18.17.0 || >=20.5.0}
262
263
  hasBin: true
263
264
 
@@ -325,8 +326,8 @@ packages:
325
326
  resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==}
326
327
  engines: {node: '>= 14'}
327
328
 
328
- socks@2.8.3:
329
- resolution: {integrity: sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==}
329
+ socks@2.8.4:
330
+ resolution: {integrity: sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==}
330
331
  engines: {node: '>= 10.0.0', npm: '>= 3.0.0'}
331
332
 
332
333
  sprintf-js@1.1.3:
@@ -515,7 +516,7 @@ snapshots:
515
516
  err-code@2.0.3:
516
517
  optional: true
517
518
 
518
- exponential-backoff@3.1.1:
519
+ exponential-backoff@3.1.2:
519
520
  optional: true
520
521
 
521
522
  foreground-child@3.3.0:
@@ -671,10 +672,10 @@ snapshots:
671
672
  negotiator@1.0.0:
672
673
  optional: true
673
674
 
674
- node-gyp@11.0.0:
675
+ node-gyp@11.1.0:
675
676
  dependencies:
676
677
  env-paths: 2.2.1
677
- exponential-backoff: 3.1.1
678
+ exponential-backoff: 3.1.2
678
679
  glob: 10.4.5
679
680
  graceful-fs: 4.2.11
680
681
  make-fetch-happen: 14.0.3
@@ -748,12 +749,12 @@ snapshots:
748
749
  dependencies:
749
750
  agent-base: 7.1.3
750
751
  debug: 4.4.0
751
- socks: 2.8.3
752
+ socks: 2.8.4
752
753
  transitivePeerDependencies:
753
754
  - supports-color
754
755
  optional: true
755
756
 
756
- socks@2.8.3:
757
+ socks@2.8.4:
757
758
  dependencies:
758
759
  ip-address: 9.0.5
759
760
  smart-buffer: 4.2.0
@@ -1,5 +1,5 @@
1
1
  {
2
- "lastValidatedTimestamp": 1738869058279,
2
+ "lastValidatedTimestamp": 1739231494019,
3
3
  "projects": {},
4
4
  "pnpmfileExists": false,
5
5
  "settings": {
@@ -187,7 +187,7 @@
187
187
  same "printed page" as the copyright notice for easier
188
188
  identification within third-party archives.
189
189
 
190
- Copyright [yyyy] [name of copyright owner]
190
+ Copyright 2019 Coveo Solutions Inc.
191
191
 
192
192
  Licensed under the Apache License, Version 2.0 (the "License");
193
193
  you may not use this file except in compliance with the License.
@@ -199,4 +199,4 @@
199
199
  distributed under the License is distributed on an "AS IS" BASIS,
200
200
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
201
  See the License for the specific language governing permissions and
202
- limitations under the License.
202
+ limitations under the License.
@@ -38,6 +38,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  var options_1 = require("./options");
40
40
  var delay_factory_1 = require("./delay/delay.factory");
41
+ /**
42
+ * Executes a function with exponential backoff.
43
+ * @param request the function to be executed
44
+ * @param options options to customize the backoff behavior
45
+ * @returns Promise that resolves to the result of the `request` function
46
+ */
41
47
  function backOff(request, options) {
42
48
  if (options === void 0) { options = {}; }
43
49
  return __awaiter(this, void 0, void 0, function () {
@@ -1 +1 @@
1
- {"version":3,"file":"backoff.js","sourceRoot":"","sources":["../src/backoff.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAImB;AACnB,uDAAqD;AAIrD,SAAsB,OAAO,CAC3B,OAAyB,EACzB,OAA4B;IAA5B,wBAAA,EAAA,YAA4B;;;;;;oBAEtB,gBAAgB,GAAG,6BAAmB,CAAC,OAAO,CAAC,CAAC;oBAChD,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;oBAEhD,qBAAM,OAAO,CAAC,OAAO,EAAE,EAAA;wBAA9B,sBAAO,SAAuB,EAAC;;;;CAChC;AARD,0BAQC;AAED;IAGE,iBACU,OAAyB,EACzB,OAAwB;QADxB,YAAO,GAAP,OAAO,CAAkB;QACzB,YAAO,GAAP,OAAO,CAAiB;QAJ1B,kBAAa,GAAG,CAAC,CAAC;IAKvB,CAAC;IAES,yBAAO,GAApB;;;;;;6BACS,CAAC,IAAI,CAAC,mBAAmB;;;;wBAE5B,qBAAM,IAAI,CAAC,UAAU,EAAE,EAAA;;wBAAvB,SAAuB,CAAC;wBACjB,qBAAM,IAAI,CAAC,OAAO,EAAE,EAAA;4BAA3B,sBAAO,SAAoB,EAAC;;;wBAE5B,IAAI,CAAC,aAAa,EAAE,CAAC;wBACD,qBAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAC,EAAE,IAAI,CAAC,aAAa,CAAC,EAAA;;wBAA7D,WAAW,GAAG,SAA+C;wBAEnE,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC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O,SAAS,CAAC;AACnB,CAAC;AARD,kDAQC"}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAyDA,IAAM,cAAc,GAAoB;IACtC,iBAAiB,EAAE,KAAK;IACxB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,QAAQ;IAClB,aAAa,EAAE,EAAE;IACjB,KAAK,EAAE,cAAM,OAAA,IAAI,EAAJ,CAAI;IACjB,aAAa,EAAE,GAAG;IAClB,YAAY,EAAE,CAAC;CAChB,CAAC;AAEF,SAAgB,mBAAmB,CAAC,OAAuB;IACzD,IAAM,SAAS,yBAAyB,cAAc,GAAK,OAAO,CAAE,CAAC;IAErE,IAAI,SAAS,CAAC,aAAa,GAAG,CAAC,EAAE;QAC/B,SAAS,CAAC,aAAa,GAAG,CAAC,CAAC;KAC7B;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AARD,kDAQC"}
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "exponential-backoff",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "A utility that allows retrying a function with an exponential delay between attempts.",
5
5
  "files": [
6
- "dist/"
6
+ "dist/",
7
+ "src/"
7
8
  ],
8
9
  "main": "dist/backoff.js",
9
10
  "types": "dist/backoff.d.ts",
@@ -35,7 +36,7 @@
35
36
  },
36
37
  "repository": {
37
38
  "type": "git",
38
- "url": "git+https://github.com/coveo/exponential-backoff.git"
39
+ "url": "git+https://github.com/coveooss/exponential-backoff.git"
39
40
  },
40
41
  "keywords": [
41
42
  "exponential",
@@ -45,9 +46,9 @@
45
46
  "author": "Sami Sayegh",
46
47
  "license": "Apache-2.0",
47
48
  "bugs": {
48
- "url": "https://github.com/coveo/exponential-backoff/issues"
49
+ "url": "https://github.com/coveooss/exponential-backoff/issues"
49
50
  },
50
- "homepage": "https://github.com/coveo/exponential-backoff#readme",
51
+ "homepage": "https://github.com/coveooss/exponential-backoff#readme",
51
52
  "devDependencies": {
52
53
  "@types/jest": "^24.0.18",
53
54
  "@types/node": "^10.14.21",
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "11.0.0"
2
+ ".": "11.1.0"
3
3
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.18.1"
2
+ ".": "0.19.1"
3
3
  }
@@ -171,7 +171,7 @@ class _Integer(_Type):
171
171
  int(value, self._msbuild_base)
172
172
 
173
173
  def ConvertToMSBuild(self, value):
174
- msbuild_format = (self._msbuild_base == 10) and "%d" or "0x%04x"
174
+ msbuild_format = ((self._msbuild_base == 10) and "%d") or "0x%04x"
175
175
  return msbuild_format % int(value)
176
176
 
177
177
 
@@ -69,7 +69,7 @@ class VisualStudioVersion:
69
69
 
70
70
  def ProjectExtension(self):
71
71
  """Returns the file extension for the project."""
72
- return self.uses_vcxproj and ".vcxproj" or ".vcproj"
72
+ return (self.uses_vcxproj and ".vcxproj") or ".vcproj"
73
73
 
74
74
  def Path(self):
75
75
  """Returns the path to Visual Studio installation."""
@@ -4,7 +4,7 @@
4
4
  # Use of this source code is governed by a BSD-style license that can be
5
5
  # found in the LICENSE file.
6
6
 
7
-
7
+ from __future__ import annotations
8
8
  import copy
9
9
  import gyp.input
10
10
  import argparse
@@ -24,6 +24,18 @@ DEBUG_GENERAL = "general"
24
24
  DEBUG_VARIABLES = "variables"
25
25
  DEBUG_INCLUDES = "includes"
26
26
 
27
+ def EscapeForCString(string: bytes | str) -> str:
28
+ if isinstance(string, str):
29
+ string = string.encode(encoding='utf8')
30
+
31
+ backslash_or_double_quote = {ord('\\'), ord('"')}
32
+ result = ''
33
+ for char in string:
34
+ if char in backslash_or_double_quote or not 32 <= char < 127:
35
+ result += '\\%03o' % char
36
+ else:
37
+ result += chr(char)
38
+ return result
27
39
 
28
40
  def DebugOutput(mode, message, *args):
29
41
  if "all" in gyp.debug or mode in gyp.debug:
@@ -106,18 +118,19 @@ def Load(
106
118
 
107
119
  output_dir = params["options"].generator_output or params["options"].toplevel_dir
108
120
  if default_variables["GENERATOR"] == "ninja":
109
- default_variables.setdefault(
110
- "PRODUCT_DIR_ABS",
111
- os.path.join(
112
- output_dir, "out", default_variables.get("build_type", "default")
113
- ),
121
+ product_dir_abs = os.path.join(
122
+ output_dir, "out", default_variables.get("build_type", "default")
114
123
  )
115
124
  else:
116
- default_variables.setdefault(
117
- "PRODUCT_DIR_ABS",
118
- os.path.join(output_dir, default_variables["CONFIGURATION_NAME"]),
125
+ product_dir_abs = os.path.join(
126
+ output_dir, default_variables["CONFIGURATION_NAME"]
119
127
  )
120
128
 
129
+ default_variables.setdefault("PRODUCT_DIR_ABS", product_dir_abs)
130
+ default_variables.setdefault(
131
+ "PRODUCT_DIR_ABS_CSTR", EscapeForCString(product_dir_abs)
132
+ )
133
+
121
134
  # Give the generator the opportunity to set additional variables based on
122
135
  # the params it will receive in the output phase.
123
136
  if getattr(generator, "CalculateVariables", None):
@@ -253,7 +266,7 @@ def RegenerateFlags(options):
253
266
  for name, metadata in options._regeneration_metadata.items():
254
267
  opt = metadata["opt"]
255
268
  value = getattr(options, name)
256
- value_predicate = metadata["type"] == "path" and FixPath or Noop
269
+ value_predicate = (metadata["type"] == "path" and FixPath) or Noop
257
270
  action = metadata["action"]
258
271
  env_name = metadata["env_name"]
259
272
  if action == "append":
@@ -699,7 +699,7 @@ class TargetCalculator:
699
699
  ) & set(self._root_targets)
700
700
  if matching_test_targets_contains_all:
701
701
  # Remove any of the targets for all that were not explicitly supplied,
702
- # 'all' is subsequentely added to the matching names below.
702
+ # 'all' is subsequently added to the matching names below.
703
703
  matching_test_targets = list(
704
704
  set(matching_test_targets) & set(test_targets_no_all)
705
705
  )
@@ -769,7 +769,7 @@ class AndroidMkWriter:
769
769
  Args:
770
770
  cflags: A list of compiler flags, which may be mixed with "-I.."
771
771
  Returns:
772
- A tuple of lists: (clean_clfags, include_paths). "-I.." is trimmed.
772
+ A tuple of lists: (clean_cflags, include_paths). "-I.." is trimmed.
773
773
  """
774
774
  clean_cflags = []
775
775
  include_paths = []
@@ -251,7 +251,7 @@ def WriteActions(target_name, actions, extra_sources, extra_deps, path_to_gyp, o
251
251
  target_name: the name of the CMake target being generated.
252
252
  actions: the Gyp 'actions' dict for this target.
253
253
  extra_sources: [(<cmake_src>, <src>)] to append with generated source files.
254
- extra_deps: [<cmake_taget>] to append with generated targets.
254
+ extra_deps: [<cmake_target>] to append with generated targets.
255
255
  path_to_gyp: relative path from CMakeLists.txt being generated to
256
256
  the Gyp file in which the target being generated is defined.
257
257
  """
@@ -340,7 +340,7 @@ def WriteRules(target_name, rules, extra_sources, extra_deps, path_to_gyp, outpu
340
340
  target_name: the name of the CMake target being generated.
341
341
  actions: the Gyp 'actions' dict for this target.
342
342
  extra_sources: [(<cmake_src>, <src>)] to append with generated source files.
343
- extra_deps: [<cmake_taget>] to append with generated targets.
343
+ extra_deps: [<cmake_target>] to append with generated targets.
344
344
  path_to_gyp: relative path from CMakeLists.txt being generated to
345
345
  the Gyp file in which the target being generated is defined.
346
346
  """
@@ -457,7 +457,7 @@ def WriteCopies(target_name, copies, extra_deps, path_to_gyp, output):
457
457
  Args:
458
458
  target_name: the name of the CMake target being generated.
459
459
  actions: the Gyp 'actions' dict for this target.
460
- extra_deps: [<cmake_taget>] to append with generated targets.
460
+ extra_deps: [<cmake_target>] to append with generated targets.
461
461
  path_to_gyp: relative path from CMakeLists.txt being generated to
462
462
  the Gyp file in which the target being generated is defined.
463
463
  """
@@ -603,7 +603,7 @@ class CMakeNamer:
603
603
  """
604
604
 
605
605
  def __init__(self, target_list):
606
- self.cmake_target_base_names_conficting = set()
606
+ self.cmake_target_base_names_conflicting = set()
607
607
 
608
608
  cmake_target_base_names_seen = set()
609
609
  for qualified_target in target_list:
@@ -612,11 +612,11 @@ class CMakeNamer:
612
612
  if cmake_target_base_name not in cmake_target_base_names_seen:
613
613
  cmake_target_base_names_seen.add(cmake_target_base_name)
614
614
  else:
615
- self.cmake_target_base_names_conficting.add(cmake_target_base_name)
615
+ self.cmake_target_base_names_conflicting.add(cmake_target_base_name)
616
616
 
617
617
  def CreateCMakeTargetName(self, qualified_target):
618
618
  base_name = CreateCMakeTargetBaseName(qualified_target)
619
- if base_name in self.cmake_target_base_names_conficting:
619
+ if base_name in self.cmake_target_base_names_conflicting:
620
620
  return CreateCMakeTargetFullName(qualified_target)
621
621
  return base_name
622
622
 
@@ -208,7 +208,7 @@ cmd_solink_module = $(LINK.$(TOOLSET)) -o $@ -shared $(GYP_LDFLAGS) $(LDFLAGS.$(
208
208
 
209
209
  LINK_COMMANDS_MAC = """\
210
210
  quiet_cmd_alink = LIBTOOL-STATIC $@
211
- cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
211
+ cmd_alink = rm -f $@ && %(python)s gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %%.o,$^)
212
212
 
213
213
  quiet_cmd_link = LINK($(TOOLSET)) $@
214
214
  cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
@@ -218,7 +218,7 @@ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o
218
218
 
219
219
  quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
220
220
  cmd_solink_module = $(LINK.$(TOOLSET)) -bundle $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
221
- """ # noqa: E501
221
+ """ % {'python': sys.executable} # noqa: E501
222
222
 
223
223
  LINK_COMMANDS_ANDROID = """\
224
224
  quiet_cmd_alink = AR($(TOOLSET)) $@
@@ -609,14 +609,14 @@ cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
609
609
  # Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd
610
610
  # already.
611
611
  quiet_cmd_mac_tool = MACTOOL $(4) $<
612
- cmd_mac_tool = ./gyp-mac-tool $(4) $< "$@"
612
+ cmd_mac_tool = %(python)s gyp-mac-tool $(4) $< "$@"
613
613
 
614
614
  quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@
615
- cmd_mac_package_framework = ./gyp-mac-tool package-framework "$@" $(4)
615
+ cmd_mac_package_framework = %(python)s gyp-mac-tool package-framework "$@" $(4)
616
616
 
617
617
  quiet_cmd_infoplist = INFOPLIST $@
618
618
  cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -o "$@"
619
- """ # noqa: E501
619
+ """ % {'python': sys.executable} # noqa: E501
620
620
 
621
621
 
622
622
  def WriteRootHeaderSuffixRules(writer):
@@ -788,7 +788,7 @@ class MakefileWriter:
788
788
  self.suffix_rules_objdir2 = {}
789
789
 
790
790
  # Generate suffix rules for all compilable extensions.
791
- for ext in COMPILABLE_EXTENSIONS:
791
+ for ext, value in COMPILABLE_EXTENSIONS.items():
792
792
  # Suffix rules for source folder.
793
793
  self.suffix_rules_srcdir.update(
794
794
  {
@@ -797,7 +797,7 @@ class MakefileWriter:
797
797
  $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD
798
798
  \t@$(call do_cmd,%s,1)
799
799
  """
800
- % (ext, COMPILABLE_EXTENSIONS[ext])
800
+ % (ext, value)
801
801
  )
802
802
  }
803
803
  )
@@ -810,7 +810,7 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD
810
810
  $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD
811
811
  \t@$(call do_cmd,%s,1)
812
812
  """
813
- % (ext, COMPILABLE_EXTENSIONS[ext])
813
+ % (ext, value)
814
814
  )
815
815
  }
816
816
  )
@@ -821,7 +821,7 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD
821
821
  $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
822
822
  \t@$(call do_cmd,%s,1)
823
823
  """
824
- % (ext, COMPILABLE_EXTENSIONS[ext])
824
+ % (ext, value)
825
825
  )
826
826
  }
827
827
  )
@@ -1779,13 +1779,13 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
1779
1779
  # using ":=".
1780
1780
  self.WriteSortedXcodeEnv(self.output, self.GetSortedXcodePostbuildEnv())
1781
1781
 
1782
- for configname in target_postbuilds:
1782
+ for configname, value in target_postbuilds.items():
1783
1783
  self.WriteLn(
1784
1784
  "%s: TARGET_POSTBUILDS_%s := %s"
1785
1785
  % (
1786
1786
  QuoteSpaces(self.output),
1787
1787
  configname,
1788
- gyp.common.EncodePOSIXShellList(target_postbuilds[configname]),
1788
+ gyp.common.EncodePOSIXShellList(value),
1789
1789
  )
1790
1790
  )
1791
1791
 
@@ -1834,7 +1834,7 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
1834
1834
  # Since this target depends on binary and resources which are in
1835
1835
  # nested subfolders, the framework directory will be older than
1836
1836
  # its dependencies usually. To prevent this rule from executing
1837
- # on every build (expensive, especially with postbuilds), expliclity
1837
+ # on every build (expensive, especially with postbuilds), explicitly
1838
1838
  # update the time on the framework directory.
1839
1839
  self.WriteLn("\t@touch -c %s" % QuoteSpaces(self.output))
1840
1840
 
@@ -2498,7 +2498,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
2498
2498
  "PLI.host": PLI_host,
2499
2499
  }
2500
2500
  if flavor == "mac":
2501
- flock_command = "./gyp-mac-tool flock"
2501
+ flock_command = "%s gyp-mac-tool flock" % sys.executable
2502
2502
  header_params.update(
2503
2503
  {
2504
2504
  "flock": flock_command,
@@ -2548,7 +2548,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
2548
2548
  header_params.update(
2549
2549
  {
2550
2550
  "copy_archive_args": copy_archive_arguments,
2551
- "flock": "./gyp-flock-tool flock",
2551
+ "flock": "%s gyp-flock-tool flock" % sys.executable,
2552
2552
  "flock_index": 2,
2553
2553
  }
2554
2554
  )
@@ -2564,7 +2564,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
2564
2564
  {
2565
2565
  "copy_archive_args": copy_archive_arguments,
2566
2566
  "link_commands": LINK_COMMANDS_AIX,
2567
- "flock": "./gyp-flock-tool flock",
2567
+ "flock": "%s gyp-flock-tool flock" % sys.executable,
2568
2568
  "flock_index": 2,
2569
2569
  }
2570
2570
  )
@@ -2574,7 +2574,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
2574
2574
  {
2575
2575
  "copy_archive_args": copy_archive_arguments,
2576
2576
  "link_commands": LINK_COMMANDS_OS400,
2577
- "flock": "./gyp-flock-tool flock",
2577
+ "flock": "%s gyp-flock-tool flock" % sys.executable,
2578
2578
  "flock_index": 2,
2579
2579
  }
2580
2580
  )
@@ -276,7 +276,7 @@ def _ToolAppend(tools, tool_name, setting, value, only_if_unset=False):
276
276
  def _ToolSetOrAppend(tools, tool_name, setting, value, only_if_unset=False):
277
277
  # TODO(bradnelson): ugly hack, fix this more generally!!!
278
278
  if "Directories" in setting or "Dependencies" in setting:
279
- if type(value) == str:
279
+ if isinstance(value, str):
280
280
  value = value.replace("/", "\\")
281
281
  else:
282
282
  value = [i.replace("/", "\\") for i in value]
@@ -288,7 +288,7 @@ def _ToolSetOrAppend(tools, tool_name, setting, value, only_if_unset=False):
288
288
  if tool.get(setting):
289
289
  if only_if_unset:
290
290
  return
291
- if type(tool[setting]) == list and type(value) == list:
291
+ if isinstance(tool[setting], list) and isinstance(value, list):
292
292
  tool[setting] += value
293
293
  else:
294
294
  raise TypeError(
@@ -1423,7 +1423,7 @@ def _ConvertToolsToExpectedForm(tools):
1423
1423
  # Collapse settings with lists.
1424
1424
  settings_fixed = {}
1425
1425
  for setting, value in settings.items():
1426
- if type(value) == list:
1426
+ if isinstance(value, list):
1427
1427
  if (
1428
1428
  tool == "VCLinkerTool" and setting == "AdditionalDependencies"
1429
1429
  ) or setting == "AdditionalOptions":
@@ -1816,7 +1816,7 @@ def _DictsToFolders(base_path, bucket, flat):
1816
1816
  # Convert to folders recursively.
1817
1817
  children = []
1818
1818
  for folder, contents in bucket.items():
1819
- if type(contents) == dict:
1819
+ if isinstance(contents, dict):
1820
1820
  folder_children = _DictsToFolders(
1821
1821
  os.path.join(base_path, folder), contents, flat
1822
1822
  )
@@ -1838,9 +1838,10 @@ def _CollapseSingles(parent, node):
1838
1838
  # Recursively explorer the tree of dicts looking for projects which are
1839
1839
  # the sole item in a folder which has the same name as the project. Bring
1840
1840
  # such projects up one level.
1841
- if type(node) == dict and len(node) == 1 and next(iter(node)) == parent + ".vcproj":
1841
+ if (isinstance(node, dict) and len(node) == 1 and
1842
+ next(iter(node)) == parent + ".vcproj"):
1842
1843
  return node[next(iter(node))]
1843
- if type(node) != dict:
1844
+ if not isinstance(node, dict):
1844
1845
  return node
1845
1846
  for child in node:
1846
1847
  node[child] = _CollapseSingles(child, node[child])
@@ -1860,7 +1861,7 @@ def _GatherSolutionFolders(sln_projects, project_objects, flat):
1860
1861
  # Walk down from the top until we hit a folder that has more than one entry.
1861
1862
  # In practice, this strips the top-level "src/" dir from the hierarchy in
1862
1863
  # the solution.
1863
- while len(root) == 1 and type(root[next(iter(root))]) == dict:
1864
+ while len(root) == 1 and isinstance(root[next(iter(root))], dict):
1864
1865
  root = root[next(iter(root))]
1865
1866
  # Collapse singles.
1866
1867
  root = _CollapseSingles("", root)
@@ -3274,7 +3275,7 @@ def _GetMSBuildPropertyGroup(spec, label, properties):
3274
3275
  num_configurations = len(spec["configurations"])
3275
3276
 
3276
3277
  def GetEdges(node):
3277
- # Use a definition of edges such that user_of_variable -> used_varible.
3278
+ # Use a definition of edges such that user_of_variable -> used_variable.
3278
3279
  # This happens to be easier in this case, since a variable's
3279
3280
  # definition contains all variables it references in a single string.
3280
3281
  edges = set()
@@ -3411,7 +3412,11 @@ def _FinalizeMSBuildSettings(spec, configuration):
3411
3412
  )
3412
3413
  # Turn on precompiled headers if appropriate.
3413
3414
  if precompiled_header:
3414
- precompiled_header = os.path.split(precompiled_header)[1]
3415
+ # While MSVC works with just file name eg. "v8_pch.h", ClangCL requires
3416
+ # the full path eg. "tools/msvs/pch/v8_pch.h" to find the file.
3417
+ # P.S. Only ClangCL defines msbuild_toolset, for MSVC it is None.
3418
+ if configuration.get("msbuild_toolset") != 'ClangCL':
3419
+ precompiled_header = os.path.split(precompiled_header)[1]
3415
3420
  _ToolAppend(msbuild_settings, "ClCompile", "PrecompiledHeader", "Use")
3416
3421
  _ToolAppend(
3417
3422
  msbuild_settings, "ClCompile", "PrecompiledHeaderFile", precompiled_header
@@ -3441,7 +3446,7 @@ def _FinalizeMSBuildSettings(spec, configuration):
3441
3446
 
3442
3447
 
3443
3448
  def _GetValueFormattedForMSBuild(tool_name, name, value):
3444
- if type(value) == list:
3449
+ if isinstance(value, list):
3445
3450
  # For some settings, VS2010 does not automatically extends the settings
3446
3451
  # TODO(jeanluc) Is this what we want?
3447
3452
  if name in [