@cloudbase/manager-node 4.3.3 → 4.3.4

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 (213) hide show
  1. package/lib/function/index.js +9 -1
  2. package/lib/utils/index.js +17 -1
  3. package/package.json +1 -1
  4. package/types/utils/index.d.ts +2 -0
  5. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.ready +0 -0
  6. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/.travis.yml +0 -103
  7. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/ISSUE_TEMPLATE.md +0 -8
  8. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/LICENSE +0 -22
  9. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/Readme.md +0 -78
  10. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/binding.gyp +0 -21
  11. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.cc +0 -88
  12. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/fsevents.js +0 -108
  13. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/install.js +0 -13
  14. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/package.json +0 -34
  15. package/.yarn/unplugged/fsevents-patch-61ccaa93a2/node_modules/fsevents/vfs.js +0 -76
  16. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.eslintrc.js +0 -20
  17. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.prettierrc +0 -4
  18. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/.ready +0 -0
  19. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/CHANGELOG.md +0 -310
  20. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/LICENSE +0 -21
  21. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/README.md +0 -344
  22. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/husky.js +0 -15
  23. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/checkGitDirEnv.js +0 -13
  24. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/debug.js +0 -8
  25. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/getConf.js +0 -15
  26. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/bin.js +0 -48
  27. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/getScript.js +0 -106
  28. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/gitRevParse.js +0 -29
  29. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/index.js +0 -151
  30. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/installer/is.js +0 -24
  31. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/bin.js +0 -16
  32. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/runner/index.js +0 -84
  33. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/bin.js +0 -8
  34. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/lib/upgrader/index.js +0 -65
  35. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/package.json +0 -114
  36. package/.yarn/unplugged/husky-npm-3.1.0-5cc13e4e34/node_modules/husky/run.js +0 -14
  37. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.github/workflows/ci.yml +0 -52
  38. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/.ready +0 -0
  39. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CHANGELOG.md +0 -577
  40. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/CMakeLists.txt +0 -138
  41. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/LICENSE.md +0 -9
  42. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/README.md +0 -455
  43. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/asyncworker.md +0 -146
  44. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/buffers.md +0 -54
  45. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/callback.md +0 -76
  46. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/converters.md +0 -41
  47. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/errors.md +0 -226
  48. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/json.md +0 -62
  49. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/maybe_types.md +0 -583
  50. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/methods.md +0 -672
  51. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/new.md +0 -147
  52. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/node_misc.md +0 -123
  53. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/object_wrappers.md +0 -263
  54. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/persistent.md +0 -296
  55. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/scopes.md +0 -73
  56. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/script.md +0 -58
  57. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/string_bytes.md +0 -62
  58. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_internals.md +0 -199
  59. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/doc/v8_misc.md +0 -85
  60. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/include_dirs.js +0 -1
  61. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan.h +0 -3049
  62. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks.h +0 -128
  63. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_12_inl.h +0 -676
  64. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_callbacks_pre_12_inl.h +0 -520
  65. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters.h +0 -72
  66. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_43_inl.h +0 -68
  67. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_converters_pre_43_inl.h +0 -42
  68. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_define_own_property_helper.h +0 -29
  69. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_12_inl.h +0 -430
  70. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_implementation_pre_12_inl.h +0 -263
  71. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_json.h +0 -166
  72. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_43_inl.h +0 -356
  73. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_maybe_pre_43_inl.h +0 -268
  74. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_new.h +0 -340
  75. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_object_wrap.h +0 -156
  76. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_12_inl.h +0 -132
  77. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_persistent_pre_12_inl.h +0 -242
  78. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_private.h +0 -73
  79. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_scriptorigin.h +0 -95
  80. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_string_bytes.h +0 -305
  81. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_typedarray_contents.h +0 -96
  82. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/nan_weak.h +0 -437
  83. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/package.json +0 -38
  84. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/1to2.js +0 -412
  85. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/README.md +0 -14
  86. package/.yarn/unplugged/nan-npm-2.22.2-bb092bb459/node_modules/nan/tools/package.json +0 -19
  87. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.ready +0 -0
  88. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/.release-please-manifest.json +0 -3
  89. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CHANGELOG.md +0 -1053
  90. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CODE_OF_CONDUCT.md +0 -4
  91. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/CONTRIBUTING.md +0 -34
  92. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/LICENSE +0 -24
  93. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/README.md +0 -273
  94. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/SECURITY.md +0 -2
  95. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/addon.gypi +0 -204
  96. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/bin/node-gyp.js +0 -138
  97. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/eslint.config.js +0 -3
  98. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/.release-please-manifest.json +0 -3
  99. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/LICENSE +0 -28
  100. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/ninja/build.ninja +0 -4
  101. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +0 -12
  102. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp +0 -8
  103. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp.bat +0 -5
  104. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/gyp_main.py +0 -45
  105. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +0 -365
  106. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +0 -206
  107. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +0 -1272
  108. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +0 -1547
  109. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +0 -59
  110. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +0 -152
  111. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +0 -270
  112. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +0 -574
  113. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +0 -704
  114. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common.py +0 -709
  115. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +0 -173
  116. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +0 -169
  117. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +0 -113
  118. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +0 -55
  119. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
  120. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +0 -805
  121. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +0 -1172
  122. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +0 -1319
  123. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +0 -128
  124. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +0 -104
  125. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +0 -462
  126. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +0 -89
  127. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +0 -56
  128. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +0 -2745
  129. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +0 -3976
  130. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +0 -44
  131. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +0 -2965
  132. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +0 -67
  133. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +0 -1391
  134. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +0 -26
  135. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input.py +0 -3112
  136. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +0 -99
  137. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +0 -767
  138. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +0 -1260
  139. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +0 -174
  140. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +0 -61
  141. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +0 -373
  142. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +0 -1939
  143. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +0 -54
  144. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +0 -303
  145. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +0 -3196
  146. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +0 -65
  147. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +0 -3
  148. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +0 -177
  149. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +0 -23
  150. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +0 -15
  151. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +0 -108
  152. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +0 -252
  153. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +0 -83
  154. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +0 -359
  155. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +0 -61
  156. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +0 -192
  157. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/markers.py +0 -252
  158. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +0 -825
  159. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
  160. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +0 -90
  161. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +0 -1030
  162. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/tags.py +0 -553
  163. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/utils.py +0 -172
  164. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pylib/packaging/version.py +0 -563
  165. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/pyproject.toml +0 -115
  166. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/release-please-config.json +0 -11
  167. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/gyp/test_gyp.py +0 -261
  168. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/Find-VisualStudio.cs +0 -250
  169. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/build.js +0 -230
  170. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/clean.js +0 -15
  171. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/configure.js +0 -328
  172. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/create-config-gypi.js +0 -153
  173. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/download.js +0 -39
  174. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-node-directory.js +0 -63
  175. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-python.js +0 -310
  176. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/find-visualstudio.js +0 -600
  177. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/install.js +0 -415
  178. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/list.js +0 -26
  179. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/log.js +0 -168
  180. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/node-gyp.js +0 -188
  181. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/process-release.js +0 -146
  182. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/rebuild.js +0 -12
  183. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/remove.js +0 -43
  184. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/lib/util.js +0 -81
  185. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/macOS_Catalina_acid_test.sh +0 -21
  186. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/package.json +0 -52
  187. package/.yarn/unplugged/node-gyp-npm-11.2.0-36aeb0fa50/node_modules/node-gyp/release-please-config.json +0 -40
  188. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.prettierrc +0 -4
  189. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/.ready +0 -0
  190. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/CHANGELOG.md +0 -286
  191. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/LICENSE +0 -21
  192. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/README.md +0 -457
  193. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/index.js +0 -52
  194. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/checkGrowl.js +0 -24
  195. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/lib/utils.js +0 -515
  196. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/balloon.js +0 -156
  197. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/growl.js +0 -76
  198. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notificationcenter.js +0 -100
  199. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/notifysend.js +0 -94
  200. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/notifiers/toaster.js +0 -100
  201. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/package.json +0 -72
  202. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Info.plist +0 -63
  203. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
  204. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/PkgInfo +0 -1
  205. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/Terminal.icns +0 -0
  206. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/Credits.rtf +0 -29
  207. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings +0 -0
  208. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/mac.noindex/terminal-notifier.app/Contents/Resources/en.lproj/MainMenu.nib +0 -0
  209. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu.exe +0 -0
  210. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/notifu/notifu64.exe +0 -0
  211. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/LICENSE +0 -165
  212. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/snoreToast/SnoreToast.exe +0 -0
  213. package/.yarn/unplugged/node-notifier-npm-5.4.5-0ff6280985/node_modules/node-notifier/vendor/terminal-notifier-LICENSE +0 -9
@@ -1,128 +0,0 @@
1
- # Copyright (c) 2016 Ben Noordhuis <info@bnoordhuis.nl>. All rights reserved.
2
- # Use of this source code is governed by a BSD-style license that can be
3
- # found in the LICENSE file.
4
-
5
- import json
6
- import os
7
-
8
- import gyp.common
9
- import gyp.xcode_emulation
10
-
11
- generator_additional_non_configuration_keys = []
12
- generator_additional_path_sections = []
13
- generator_extra_sources_for_rules = []
14
- generator_filelist_paths = None
15
- generator_supports_multiple_toolsets = True
16
- generator_wants_sorted_dependencies = False
17
-
18
- # Lifted from make.py. The actual values don't matter much.
19
- generator_default_variables = {
20
- "CONFIGURATION_NAME": "$(BUILDTYPE)",
21
- "EXECUTABLE_PREFIX": "",
22
- "EXECUTABLE_SUFFIX": "",
23
- "INTERMEDIATE_DIR": "$(obj).$(TOOLSET)/$(TARGET)/geni",
24
- "PRODUCT_DIR": "$(builddir)",
25
- "RULE_INPUT_DIRNAME": "%(INPUT_DIRNAME)s",
26
- "RULE_INPUT_EXT": "$(suffix $<)",
27
- "RULE_INPUT_NAME": "$(notdir $<)",
28
- "RULE_INPUT_PATH": "$(abspath $<)",
29
- "RULE_INPUT_ROOT": "%(INPUT_ROOT)s",
30
- "SHARED_INTERMEDIATE_DIR": "$(obj)/gen",
31
- "SHARED_LIB_PREFIX": "lib",
32
- "STATIC_LIB_PREFIX": "lib",
33
- "STATIC_LIB_SUFFIX": ".a",
34
- }
35
-
36
-
37
- def IsMac(params):
38
- return gyp.common.GetFlavor(params) == "mac"
39
-
40
-
41
- def CalculateVariables(default_variables, params):
42
- default_variables.setdefault("OS", gyp.common.GetFlavor(params))
43
-
44
-
45
- def AddCommandsForTarget(cwd, target, params, per_config_commands):
46
- output_dir = params["generator_flags"].get("output_dir", "out")
47
- for configuration_name, configuration in target["configurations"].items():
48
- if IsMac(params):
49
- xcode_settings = gyp.xcode_emulation.XcodeSettings(target)
50
- cflags = xcode_settings.GetCflags(configuration_name)
51
- cflags_c = xcode_settings.GetCflagsC(configuration_name)
52
- cflags_cc = xcode_settings.GetCflagsCC(configuration_name)
53
- else:
54
- cflags = configuration.get("cflags", [])
55
- cflags_c = configuration.get("cflags_c", [])
56
- cflags_cc = configuration.get("cflags_cc", [])
57
-
58
- cflags_c = cflags + cflags_c
59
- cflags_cc = cflags + cflags_cc
60
-
61
- defines = configuration.get("defines", [])
62
- defines = ["-D" + s for s in defines]
63
-
64
- # TODO(bnoordhuis) Handle generated source files.
65
- extensions = (".c", ".cc", ".cpp", ".cxx")
66
- sources = [s for s in target.get("sources", []) if s.endswith(extensions)]
67
-
68
- def resolve(filename):
69
- return os.path.abspath(os.path.join(cwd, filename))
70
-
71
- # TODO(bnoordhuis) Handle generated header files.
72
- include_dirs = configuration.get("include_dirs", [])
73
- include_dirs = [s for s in include_dirs if not s.startswith("$(obj)")]
74
- includes = ["-I" + resolve(s) for s in include_dirs]
75
-
76
- defines = gyp.common.EncodePOSIXShellList(defines)
77
- includes = gyp.common.EncodePOSIXShellList(includes)
78
- cflags_c = gyp.common.EncodePOSIXShellList(cflags_c)
79
- cflags_cc = gyp.common.EncodePOSIXShellList(cflags_cc)
80
-
81
- commands = per_config_commands.setdefault(configuration_name, [])
82
- for source in sources:
83
- file = resolve(source)
84
- isc = source.endswith(".c")
85
- cc = "cc" if isc else "c++"
86
- cflags = cflags_c if isc else cflags_cc
87
- command = " ".join(
88
- (
89
- cc,
90
- defines,
91
- includes,
92
- cflags,
93
- "-c",
94
- gyp.common.EncodePOSIXShellArgument(file),
95
- )
96
- )
97
- commands.append({"command": command, "directory": output_dir, "file": file})
98
-
99
-
100
- def GenerateOutput(target_list, target_dicts, data, params):
101
- per_config_commands = {}
102
- for qualified_target, target in target_dicts.items():
103
- build_file, target_name, toolset = gyp.common.ParseQualifiedTarget(
104
- qualified_target
105
- )
106
- if IsMac(params):
107
- settings = data[build_file]
108
- gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(settings, target)
109
- cwd = os.path.dirname(build_file)
110
- AddCommandsForTarget(cwd, target, params, per_config_commands)
111
-
112
- output_dir = None
113
- try:
114
- # generator_output can be `None` on Windows machines, or even not
115
- # defined in other cases
116
- output_dir = params.get("options").generator_output
117
- except AttributeError:
118
- pass
119
- output_dir = output_dir or params["generator_flags"].get("output_dir", "out")
120
- for configuration_name, commands in per_config_commands.items():
121
- filename = os.path.join(output_dir, configuration_name, "compile_commands.json")
122
- gyp.common.EnsureDirExists(filename)
123
- fp = open(filename, "w")
124
- json.dump(commands, fp=fp, indent=0, check_circular=False)
125
-
126
-
127
- def PerformBuild(data, configurations, params):
128
- pass
@@ -1,104 +0,0 @@
1
- # Copyright (c) 2012 Google Inc. All rights reserved.
2
- # Use of this source code is governed by a BSD-style license that can be
3
- # found in the LICENSE file.
4
-
5
-
6
- import json
7
- import os
8
-
9
- import gyp
10
- import gyp.common
11
- import gyp.msvs_emulation
12
-
13
- generator_supports_multiple_toolsets = True
14
-
15
- generator_wants_static_library_dependencies_adjusted = False
16
-
17
- generator_filelist_paths = {}
18
-
19
- generator_default_variables = {}
20
- for dirname in [
21
- "INTERMEDIATE_DIR",
22
- "SHARED_INTERMEDIATE_DIR",
23
- "PRODUCT_DIR",
24
- "LIB_DIR",
25
- "SHARED_LIB_DIR",
26
- ]:
27
- # Some gyp steps fail if these are empty(!).
28
- generator_default_variables[dirname] = "dir"
29
- for unused in [
30
- "RULE_INPUT_PATH",
31
- "RULE_INPUT_ROOT",
32
- "RULE_INPUT_NAME",
33
- "RULE_INPUT_DIRNAME",
34
- "RULE_INPUT_EXT",
35
- "EXECUTABLE_PREFIX",
36
- "EXECUTABLE_SUFFIX",
37
- "STATIC_LIB_PREFIX",
38
- "STATIC_LIB_SUFFIX",
39
- "SHARED_LIB_PREFIX",
40
- "SHARED_LIB_SUFFIX",
41
- "CONFIGURATION_NAME",
42
- ]:
43
- generator_default_variables[unused] = ""
44
-
45
-
46
- def CalculateVariables(default_variables, params):
47
- generator_flags = params.get("generator_flags", {})
48
- for key, val in generator_flags.items():
49
- default_variables.setdefault(key, val)
50
- default_variables.setdefault("OS", gyp.common.GetFlavor(params))
51
-
52
- flavor = gyp.common.GetFlavor(params)
53
- if flavor == "win":
54
- gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
55
-
56
-
57
- def CalculateGeneratorInputInfo(params):
58
- """Calculate the generator specific info that gets fed to input (called by
59
- gyp)."""
60
- generator_flags = params.get("generator_flags", {})
61
- if generator_flags.get("adjust_static_libraries", False):
62
- global generator_wants_static_library_dependencies_adjusted
63
- generator_wants_static_library_dependencies_adjusted = True
64
-
65
- toplevel = params["options"].toplevel_dir
66
- generator_dir = os.path.relpath(params["options"].generator_output or ".")
67
- # output_dir: relative path from generator_dir to the build directory.
68
- output_dir = generator_flags.get("output_dir", "out")
69
- qualified_out_dir = os.path.normpath(
70
- os.path.join(toplevel, generator_dir, output_dir, "gypfiles")
71
- )
72
- global generator_filelist_paths
73
- generator_filelist_paths = {
74
- "toplevel": toplevel,
75
- "qualified_out_dir": qualified_out_dir,
76
- }
77
-
78
-
79
- def GenerateOutput(target_list, target_dicts, data, params):
80
- # Map of target -> list of targets it depends on.
81
- edges = {}
82
-
83
- # Queue of targets to visit.
84
- targets_to_visit = target_list[:]
85
-
86
- while len(targets_to_visit) > 0:
87
- target = targets_to_visit.pop()
88
- if target in edges:
89
- continue
90
- edges[target] = []
91
-
92
- for dep in target_dicts[target].get("dependencies", []):
93
- edges[target].append(dep)
94
- targets_to_visit.append(dep)
95
-
96
- try:
97
- filepath = params["generator_flags"]["output_dir"]
98
- except KeyError:
99
- filepath = "."
100
- filename = os.path.join(filepath, "dump.json")
101
- f = open(filename, "w")
102
- json.dump(edges, f)
103
- f.close()
104
- print("Wrote json to %s." % filename)
@@ -1,462 +0,0 @@
1
- # Copyright (c) 2012 Google Inc. All rights reserved.
2
- # Use of this source code is governed by a BSD-style license that can be
3
- # found in the LICENSE file.
4
-
5
- """GYP backend that generates Eclipse CDT settings files.
6
-
7
- This backend DOES NOT generate Eclipse CDT projects. Instead, it generates XML
8
- files that can be imported into an Eclipse CDT project. The XML file contains a
9
- list of include paths and symbols (i.e. defines).
10
-
11
- Because a full .cproject definition is not created by this generator, it's not
12
- possible to properly define the include dirs and symbols for each file
13
- individually. Instead, one set of includes/symbols is generated for the entire
14
- project. This works fairly well (and is a vast improvement in general), but may
15
- still result in a few indexer issues here and there.
16
-
17
- This generator has no automated tests, so expect it to be broken.
18
- """
19
-
20
- import os.path
21
- import shlex
22
- import subprocess
23
- import xml.etree.ElementTree as ET
24
- from xml.sax.saxutils import escape
25
-
26
- import gyp
27
- import gyp.common
28
- import gyp.msvs_emulation
29
-
30
- generator_wants_static_library_dependencies_adjusted = False
31
-
32
- generator_default_variables = {}
33
-
34
- for dirname in ["INTERMEDIATE_DIR", "PRODUCT_DIR", "LIB_DIR", "SHARED_LIB_DIR"]:
35
- # Some gyp steps fail if these are empty(!), so we convert them to variables
36
- generator_default_variables[dirname] = "$" + dirname
37
-
38
- for unused in [
39
- "RULE_INPUT_PATH",
40
- "RULE_INPUT_ROOT",
41
- "RULE_INPUT_NAME",
42
- "RULE_INPUT_DIRNAME",
43
- "RULE_INPUT_EXT",
44
- "EXECUTABLE_PREFIX",
45
- "EXECUTABLE_SUFFIX",
46
- "STATIC_LIB_PREFIX",
47
- "STATIC_LIB_SUFFIX",
48
- "SHARED_LIB_PREFIX",
49
- "SHARED_LIB_SUFFIX",
50
- "CONFIGURATION_NAME",
51
- ]:
52
- generator_default_variables[unused] = ""
53
-
54
- # Include dirs will occasionally use the SHARED_INTERMEDIATE_DIR variable as
55
- # part of the path when dealing with generated headers. This value will be
56
- # replaced dynamically for each configuration.
57
- generator_default_variables["SHARED_INTERMEDIATE_DIR"] = "$SHARED_INTERMEDIATE_DIR"
58
-
59
-
60
- def CalculateVariables(default_variables, params):
61
- generator_flags = params.get("generator_flags", {})
62
- for key, val in generator_flags.items():
63
- default_variables.setdefault(key, val)
64
- flavor = gyp.common.GetFlavor(params)
65
- default_variables.setdefault("OS", flavor)
66
- if flavor == "win":
67
- gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
68
-
69
-
70
- def CalculateGeneratorInputInfo(params):
71
- """Calculate the generator specific info that gets fed to input (called by
72
- gyp)."""
73
- generator_flags = params.get("generator_flags", {})
74
- if generator_flags.get("adjust_static_libraries", False):
75
- global generator_wants_static_library_dependencies_adjusted
76
- generator_wants_static_library_dependencies_adjusted = True
77
-
78
-
79
- def GetAllIncludeDirectories(
80
- target_list,
81
- target_dicts,
82
- shared_intermediate_dirs,
83
- config_name,
84
- params,
85
- compiler_path,
86
- ):
87
- """Calculate the set of include directories to be used.
88
-
89
- Returns:
90
- A list including all the include_dir's specified for every target followed
91
- by any include directories that were added as cflag compiler options.
92
- """
93
-
94
- gyp_includes_set = set()
95
- compiler_includes_list = []
96
-
97
- # Find compiler's default include dirs.
98
- if compiler_path:
99
- command = shlex.split(compiler_path)
100
- command.extend(["-E", "-xc++", "-v", "-"])
101
- proc = subprocess.Popen(
102
- args=command,
103
- stdin=subprocess.PIPE,
104
- stdout=subprocess.PIPE,
105
- stderr=subprocess.PIPE,
106
- )
107
- output = proc.communicate()[1].decode("utf-8")
108
- # Extract the list of include dirs from the output, which has this format:
109
- # ...
110
- # #include "..." search starts here:
111
- # #include <...> search starts here:
112
- # /usr/include/c++/4.6
113
- # /usr/local/include
114
- # End of search list.
115
- # ...
116
- in_include_list = False
117
- for line in output.splitlines():
118
- if line.startswith("#include"):
119
- in_include_list = True
120
- continue
121
- if line.startswith("End of search list."):
122
- break
123
- if in_include_list:
124
- include_dir = line.strip()
125
- if include_dir not in compiler_includes_list:
126
- compiler_includes_list.append(include_dir)
127
-
128
- flavor = gyp.common.GetFlavor(params)
129
- if flavor == "win":
130
- generator_flags = params.get("generator_flags", {})
131
- for target_name in target_list:
132
- target = target_dicts[target_name]
133
- if config_name in target["configurations"]:
134
- config = target["configurations"][config_name]
135
-
136
- # Look for any include dirs that were explicitly added via cflags. This
137
- # may be done in gyp files to force certain includes to come at the end.
138
- # TODO(jgreenwald): Change the gyp files to not abuse cflags for this, and
139
- # remove this.
140
- if flavor == "win":
141
- msvs_settings = gyp.msvs_emulation.MsvsSettings(target, generator_flags)
142
- cflags = msvs_settings.GetCflags(config_name)
143
- else:
144
- cflags = config["cflags"]
145
- for cflag in cflags:
146
- if cflag.startswith("-I"):
147
- include_dir = cflag[2:]
148
- if include_dir not in compiler_includes_list:
149
- compiler_includes_list.append(include_dir)
150
-
151
- # Find standard gyp include dirs.
152
- if "include_dirs" in config:
153
- include_dirs = config["include_dirs"]
154
- for shared_intermediate_dir in shared_intermediate_dirs:
155
- for include_dir in include_dirs:
156
- include_dir = include_dir.replace(
157
- "$SHARED_INTERMEDIATE_DIR", shared_intermediate_dir
158
- )
159
- if not os.path.isabs(include_dir):
160
- base_dir = os.path.dirname(target_name)
161
-
162
- include_dir = base_dir + "/" + include_dir
163
- include_dir = os.path.abspath(include_dir)
164
-
165
- gyp_includes_set.add(include_dir)
166
-
167
- # Generate a list that has all the include dirs.
168
- all_includes_list = list(gyp_includes_set)
169
- all_includes_list.sort()
170
- for compiler_include in compiler_includes_list:
171
- if compiler_include not in gyp_includes_set:
172
- all_includes_list.append(compiler_include)
173
-
174
- # All done.
175
- return all_includes_list
176
-
177
-
178
- def GetCompilerPath(target_list, data, options):
179
- """Determine a command that can be used to invoke the compiler.
180
-
181
- Returns:
182
- If this is a gyp project that has explicit make settings, try to determine
183
- the compiler from that. Otherwise, see if a compiler was specified via the
184
- CC_target environment variable.
185
- """
186
- # First, see if the compiler is configured in make's settings.
187
- build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0])
188
- make_global_settings_dict = data[build_file].get("make_global_settings", {})
189
- for key, value in make_global_settings_dict:
190
- if key in ["CC", "CXX"]:
191
- return os.path.join(options.toplevel_dir, value)
192
-
193
- # Check to see if the compiler was specified as an environment variable.
194
- for key in ["CC_target", "CC", "CXX"]:
195
- compiler = os.environ.get(key)
196
- if compiler:
197
- return compiler
198
-
199
- return "gcc"
200
-
201
-
202
- def GetAllDefines(target_list, target_dicts, data, config_name, params, compiler_path):
203
- """Calculate the defines for a project.
204
-
205
- Returns:
206
- A dict that includes explicit defines declared in gyp files along with all
207
- of the default defines that the compiler uses.
208
- """
209
-
210
- # Get defines declared in the gyp files.
211
- all_defines = {}
212
- flavor = gyp.common.GetFlavor(params)
213
- if flavor == "win":
214
- generator_flags = params.get("generator_flags", {})
215
- for target_name in target_list:
216
- target = target_dicts[target_name]
217
-
218
- if flavor == "win":
219
- msvs_settings = gyp.msvs_emulation.MsvsSettings(target, generator_flags)
220
- extra_defines = msvs_settings.GetComputedDefines(config_name)
221
- else:
222
- extra_defines = []
223
- if config_name in target["configurations"]:
224
- config = target["configurations"][config_name]
225
- target_defines = config["defines"]
226
- else:
227
- target_defines = []
228
- for define in target_defines + extra_defines:
229
- split_define = define.split("=", 1)
230
- if len(split_define) == 1:
231
- split_define.append("1")
232
- if split_define[0].strip() in all_defines:
233
- # Already defined
234
- continue
235
- all_defines[split_define[0].strip()] = split_define[1].strip()
236
- # Get default compiler defines (if possible).
237
- if flavor == "win":
238
- return all_defines # Default defines already processed in the loop above.
239
- if compiler_path:
240
- command = shlex.split(compiler_path)
241
- command.extend(["-E", "-dM", "-"])
242
- cpp_proc = subprocess.Popen(
243
- args=command, cwd=".", stdin=subprocess.PIPE, stdout=subprocess.PIPE
244
- )
245
- cpp_output = cpp_proc.communicate()[0].decode("utf-8")
246
- cpp_lines = cpp_output.split("\n")
247
- for cpp_line in cpp_lines:
248
- if not cpp_line.strip():
249
- continue
250
- cpp_line_parts = cpp_line.split(" ", 2)
251
- key = cpp_line_parts[1]
252
- val = cpp_line_parts[2] if len(cpp_line_parts) >= 3 else "1"
253
- all_defines[key] = val
254
-
255
- return all_defines
256
-
257
-
258
- def WriteIncludePaths(out, eclipse_langs, include_dirs):
259
- """Write the includes section of a CDT settings export file."""
260
-
261
- out.write(
262
- ' <section name="org.eclipse.cdt.internal.ui.wizards.'
263
- 'settingswizards.IncludePaths">\n'
264
- )
265
- out.write(' <language name="holder for library settings"></language>\n')
266
- for lang in eclipse_langs:
267
- out.write(' <language name="%s">\n' % lang)
268
- for include_dir in include_dirs:
269
- out.write(
270
- ' <includepath workspace_path="false">%s</includepath>\n'
271
- % include_dir
272
- )
273
- out.write(" </language>\n")
274
- out.write(" </section>\n")
275
-
276
-
277
- def WriteMacros(out, eclipse_langs, defines):
278
- """Write the macros section of a CDT settings export file."""
279
-
280
- out.write(
281
- ' <section name="org.eclipse.cdt.internal.ui.wizards.'
282
- 'settingswizards.Macros">\n'
283
- )
284
- out.write(' <language name="holder for library settings"></language>\n')
285
- for lang in eclipse_langs:
286
- out.write(' <language name="%s">\n' % lang)
287
- for key in sorted(defines):
288
- out.write(
289
- " <macro><name>%s</name><value>%s</value></macro>\n"
290
- % (escape(key), escape(defines[key]))
291
- )
292
- out.write(" </language>\n")
293
- out.write(" </section>\n")
294
-
295
-
296
- def GenerateOutputForConfig(target_list, target_dicts, data, params, config_name):
297
- options = params["options"]
298
- generator_flags = params.get("generator_flags", {})
299
-
300
- # build_dir: relative path from source root to our output files.
301
- # e.g. "out/Debug"
302
- build_dir = os.path.join(generator_flags.get("output_dir", "out"), config_name)
303
-
304
- toplevel_build = os.path.join(options.toplevel_dir, build_dir)
305
- # Ninja uses out/Debug/gen while make uses out/Debug/obj/gen as the
306
- # SHARED_INTERMEDIATE_DIR. Include both possible locations.
307
- shared_intermediate_dirs = [
308
- os.path.join(toplevel_build, "obj", "gen"),
309
- os.path.join(toplevel_build, "gen"),
310
- ]
311
-
312
- GenerateCdtSettingsFile(
313
- target_list,
314
- target_dicts,
315
- data,
316
- params,
317
- config_name,
318
- os.path.join(toplevel_build, "eclipse-cdt-settings.xml"),
319
- options,
320
- shared_intermediate_dirs,
321
- )
322
- GenerateClasspathFile(
323
- target_list,
324
- target_dicts,
325
- options.toplevel_dir,
326
- toplevel_build,
327
- os.path.join(toplevel_build, "eclipse-classpath.xml"),
328
- )
329
-
330
-
331
- def GenerateCdtSettingsFile(
332
- target_list,
333
- target_dicts,
334
- data,
335
- params,
336
- config_name,
337
- out_name,
338
- options,
339
- shared_intermediate_dirs,
340
- ):
341
- gyp.common.EnsureDirExists(out_name)
342
- with open(out_name, "w") as out:
343
- out.write('<?xml version="1.0" encoding="UTF-8"?>\n')
344
- out.write("<cdtprojectproperties>\n")
345
-
346
- eclipse_langs = [
347
- "C++ Source File",
348
- "C Source File",
349
- "Assembly Source File",
350
- "GNU C++",
351
- "GNU C",
352
- "Assembly",
353
- ]
354
- compiler_path = GetCompilerPath(target_list, data, options)
355
- include_dirs = GetAllIncludeDirectories(
356
- target_list,
357
- target_dicts,
358
- shared_intermediate_dirs,
359
- config_name,
360
- params,
361
- compiler_path,
362
- )
363
- WriteIncludePaths(out, eclipse_langs, include_dirs)
364
- defines = GetAllDefines(
365
- target_list, target_dicts, data, config_name, params, compiler_path
366
- )
367
- WriteMacros(out, eclipse_langs, defines)
368
-
369
- out.write("</cdtprojectproperties>\n")
370
-
371
-
372
- def GenerateClasspathFile(
373
- target_list, target_dicts, toplevel_dir, toplevel_build, out_name
374
- ):
375
- """Generates a classpath file suitable for symbol navigation and code
376
- completion of Java code (such as in Android projects) by finding all
377
- .java and .jar files used as action inputs."""
378
- gyp.common.EnsureDirExists(out_name)
379
- result = ET.Element("classpath")
380
-
381
- def AddElements(kind, paths):
382
- # First, we need to normalize the paths so they are all relative to the
383
- # toplevel dir.
384
- rel_paths = set()
385
- for path in paths:
386
- if os.path.isabs(path):
387
- rel_paths.add(os.path.relpath(path, toplevel_dir))
388
- else:
389
- rel_paths.add(path)
390
-
391
- for path in sorted(rel_paths):
392
- entry_element = ET.SubElement(result, "classpathentry")
393
- entry_element.set("kind", kind)
394
- entry_element.set("path", path)
395
-
396
- AddElements("lib", GetJavaJars(target_list, target_dicts, toplevel_dir))
397
- AddElements("src", GetJavaSourceDirs(target_list, target_dicts, toplevel_dir))
398
- # Include the standard JRE container and a dummy out folder
399
- AddElements("con", ["org.eclipse.jdt.launching.JRE_CONTAINER"])
400
- # Include a dummy out folder so that Eclipse doesn't use the default /bin
401
- # folder in the root of the project.
402
- AddElements("output", [os.path.join(toplevel_build, ".eclipse-java-build")])
403
-
404
- ET.ElementTree(result).write(out_name)
405
-
406
-
407
- def GetJavaJars(target_list, target_dicts, toplevel_dir):
408
- """Generates a sequence of all .jars used as inputs."""
409
- for target_name in target_list:
410
- target = target_dicts[target_name]
411
- for action in target.get("actions", []):
412
- for input_ in action["inputs"]:
413
- if os.path.splitext(input_)[1] == ".jar" and not input_.startswith("$"):
414
- if os.path.isabs(input_):
415
- yield input_
416
- else:
417
- yield os.path.join(os.path.dirname(target_name), input_)
418
-
419
-
420
- def GetJavaSourceDirs(target_list, target_dicts, toplevel_dir):
421
- """Generates a sequence of all likely java package root directories."""
422
- for target_name in target_list:
423
- target = target_dicts[target_name]
424
- for action in target.get("actions", []):
425
- for input_ in action["inputs"]:
426
- if os.path.splitext(input_)[1] == ".java" and not input_.startswith(
427
- "$"
428
- ):
429
- dir_ = os.path.dirname(
430
- os.path.join(os.path.dirname(target_name), input_)
431
- )
432
- # If there is a parent 'src' or 'java' folder, navigate up to it -
433
- # these are canonical package root names in Chromium. This will
434
- # break if 'src' or 'java' exists in the package structure. This
435
- # could be further improved by inspecting the java file for the
436
- # package name if this proves to be too fragile in practice.
437
- parent_search = dir_
438
- while os.path.basename(parent_search) not in ["src", "java"]:
439
- parent_search, _ = os.path.split(parent_search)
440
- if not parent_search or parent_search == toplevel_dir:
441
- # Didn't find a known root, just return the original path
442
- yield dir_
443
- break
444
- else:
445
- yield parent_search
446
-
447
-
448
- def GenerateOutput(target_list, target_dicts, data, params):
449
- """Generate an XML settings file that can be imported into a CDT project."""
450
-
451
- if params["options"].generator_output:
452
- raise NotImplementedError("--generator_output not implemented for eclipse")
453
-
454
- user_config = params.get("generator_flags", {}).get("config", None)
455
- if user_config:
456
- GenerateOutputForConfig(target_list, target_dicts, data, params, user_config)
457
- else:
458
- config_names = target_dicts[target_list[0]]["configurations"]
459
- for config_name in config_names:
460
- GenerateOutputForConfig(
461
- target_list, target_dicts, data, params, config_name
462
- )