dep 0.18.2 → 1.0.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.
- package/.claude/settings.local.json +41 -0
- package/.github/workflows/nodejs.yml +20 -0
- package/CHANGELOG.md +7 -0
- package/README.md +12 -40
- package/bin/dep.js +24 -20
- package/lib/install/installer/bin.js +28 -24
- package/lib/install/installer/git.js +7 -7
- package/lib/install/installer/local.js +2 -2
- package/lib/install/installer/registry.js +5 -5
- package/lib/install/installer/remote.js +5 -5
- package/lib/install/installer.js +18 -17
- package/lib/install/resolver/fetcher.js +6 -6
- package/lib/install/resolver/fetchers/git.js +7 -7
- package/lib/install/resolver/fetchers/local.js +4 -3
- package/lib/install/resolver/fetchers/registry.js +12 -12
- package/lib/install/resolver/fetchers/remote.js +6 -6
- package/lib/install/resolver/tree.js +9 -12
- package/lib/install/resolver.js +7 -7
- package/lib/install/saver.js +8 -8
- package/lib/install.js +13 -13
- package/lib/lock/locker.js +114 -6
- package/lib/lock/resolver/fetcher.js +29 -0
- package/lib/lock/resolver/fetchers/git.js +76 -0
- package/lib/lock/resolver/fetchers/local.js +19 -0
- package/lib/lock/resolver/fetchers/registry.js +51 -0
- package/lib/lock/resolver/fetchers/remote.js +43 -0
- package/lib/lock/resolver/tree.js +43 -0
- package/lib/lock/resolver.js +43 -74
- package/lib/lock.js +16 -15
- package/lib/run/list.js +1 -1
- package/lib/run/runner.js +24 -20
- package/lib/run.js +10 -6
- package/lib/utils/drop-privilege.js +7 -4
- package/lib/utils/git.js +12 -11
- package/lib/utils/is-root.js +1 -1
- package/lib/utils/nm.js +2 -2
- package/lib/utils/node-gyp.js +5 -4
- package/lib/utils/npmrc.js +8 -5
- package/lib/utils/pick-version.js +15 -0
- package/node_modules/@isaacs/fs-minipass/README.md +71 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/node_modules/@pnpm/config.env-replace/dist/env-replace.d.ts +2 -0
- package/node_modules/@pnpm/config.env-replace/dist/env-replace.docs.mdx +18 -0
- package/node_modules/@pnpm/config.env-replace/dist/env-replace.js +30 -0
- package/node_modules/@pnpm/config.env-replace/dist/env-replace.js.map +1 -0
- package/node_modules/@pnpm/config.env-replace/dist/env-replace.spec.d.ts +1 -0
- package/node_modules/@pnpm/config.env-replace/dist/env-replace.spec.js +26 -0
- package/node_modules/@pnpm/config.env-replace/dist/env-replace.spec.js.map +1 -0
- package/node_modules/@pnpm/config.env-replace/dist/index.d.ts +1 -0
- package/node_modules/@pnpm/config.env-replace/dist/index.js +6 -0
- package/node_modules/@pnpm/config.env-replace/dist/index.js.map +1 -0
- package/node_modules/@pnpm/config.env-replace/dist/preview-1680634751300.js +7 -0
- package/node_modules/@pnpm/config.env-replace/dist/tsconfig.json +32 -0
- package/node_modules/@pnpm/config.env-replace/env-replace.docs.mdx +18 -0
- package/node_modules/@pnpm/config.env-replace/env-replace.spec.ts +27 -0
- package/node_modules/@pnpm/config.env-replace/env-replace.ts +28 -0
- package/node_modules/@pnpm/config.env-replace/index.ts +1 -0
- package/node_modules/@pnpm/config.env-replace/package-tar/pnpm-config.env-replace-1.1.0.tgz +0 -0
- package/node_modules/@pnpm/config.env-replace/package.json +31 -0
- package/node_modules/@pnpm/config.env-replace/tsconfig.json +32 -0
- package/node_modules/@pnpm/config.env-replace/types/asset.d.ts +29 -0
- package/node_modules/@pnpm/config.env-replace/types/style.d.ts +42 -0
- package/node_modules/@pnpm/network.ca-file/ca-file.docs.mdx +12 -0
- package/node_modules/@pnpm/network.ca-file/ca-file.spec.ts +20 -0
- package/node_modules/@pnpm/network.ca-file/ca-file.ts +16 -0
- package/node_modules/@pnpm/network.ca-file/dist/ca-file.d.ts +1 -0
- package/node_modules/@pnpm/network.ca-file/dist/ca-file.docs.mdx +12 -0
- package/node_modules/@pnpm/network.ca-file/dist/ca-file.js +25 -0
- package/node_modules/@pnpm/network.ca-file/dist/ca-file.js.map +1 -0
- package/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.d.ts +1 -0
- package/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.js +24 -0
- package/node_modules/@pnpm/network.ca-file/dist/ca-file.spec.js.map +1 -0
- package/node_modules/@pnpm/network.ca-file/dist/fixtures/ca-file1.txt +14 -0
- package/node_modules/@pnpm/network.ca-file/dist/index.d.ts +1 -0
- package/node_modules/@pnpm/network.ca-file/dist/index.js +18 -0
- package/node_modules/@pnpm/network.ca-file/dist/index.js.map +1 -0
- package/node_modules/@pnpm/network.ca-file/dist/tsconfig.json +32 -0
- package/node_modules/@pnpm/network.ca-file/fixtures/ca-file1.txt +14 -0
- package/node_modules/@pnpm/network.ca-file/index.ts +1 -0
- package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/README.md +143 -0
- package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/package.json +50 -0
- package/node_modules/@pnpm/network.ca-file/node_modules/graceful-fs/polyfills.js +355 -0
- package/node_modules/@pnpm/network.ca-file/package-tar/pnpm-network.ca-file-1.0.2.tgz +0 -0
- package/node_modules/@pnpm/network.ca-file/package.json +34 -0
- package/node_modules/@pnpm/network.ca-file/preview-1668994697977.js +7 -0
- package/node_modules/@pnpm/network.ca-file/tsconfig.json +32 -0
- package/node_modules/@pnpm/network.ca-file/types/asset.d.ts +29 -0
- package/node_modules/@pnpm/network.ca-file/types/style.d.ts +42 -0
- package/node_modules/@pnpm/npm-conf/index.js +96 -0
- package/node_modules/@pnpm/npm-conf/lib/conf.js +196 -0
- package/node_modules/@pnpm/npm-conf/lib/defaults.js +176 -0
- package/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.js +19 -0
- package/node_modules/@pnpm/npm-conf/lib/envKeyToSetting.test.js +50 -0
- package/node_modules/@pnpm/npm-conf/lib/make.js +99 -0
- package/node_modules/@pnpm/npm-conf/lib/tsconfig.make-out.json +14 -0
- package/node_modules/@pnpm/npm-conf/lib/types.d.ts +122 -0
- package/node_modules/@pnpm/npm-conf/lib/types.js +134 -0
- package/node_modules/@pnpm/npm-conf/lib/util.js +145 -0
- package/node_modules/@pnpm/npm-conf/lib/util.test.js +8 -0
- package/node_modules/@pnpm/npm-conf/license +9 -0
- package/node_modules/@pnpm/npm-conf/package.json +45 -0
- package/node_modules/@pnpm/npm-conf/readme.md +47 -0
- package/node_modules/abbrev/lib/index.js +53 -0
- package/node_modules/abbrev/package.json +33 -47
- package/node_modules/ajv/README.md +224 -78
- package/node_modules/ajv/dist/ajv.bundle.js +187 -158
- package/node_modules/ajv/dist/ajv.min.js +2 -2
- package/node_modules/ajv/dist/ajv.min.js.map +1 -1
- package/node_modules/ajv/lib/ajv.d.ts +16 -4
- package/node_modules/ajv/lib/ajv.js +9 -0
- package/node_modules/ajv/lib/compile/equal.js +1 -1
- package/node_modules/ajv/lib/compile/formats.js +10 -17
- package/node_modules/ajv/lib/compile/index.js +9 -7
- package/node_modules/ajv/lib/compile/util.js +9 -44
- package/node_modules/ajv/lib/data.js +1 -1
- package/node_modules/ajv/lib/definition_schema.js +1 -1
- package/node_modules/ajv/lib/dot/_limit.jst +9 -0
- package/node_modules/ajv/lib/dot/_limitItems.jst +2 -0
- package/node_modules/ajv/lib/dot/_limitLength.jst +2 -0
- package/node_modules/ajv/lib/dot/_limitProperties.jst +2 -0
- package/node_modules/ajv/lib/dot/allOf.jst +0 -2
- package/node_modules/ajv/lib/dot/anyOf.jst +0 -2
- package/node_modules/ajv/lib/dot/coerce.def +18 -28
- package/node_modules/ajv/lib/dot/contains.jst +0 -2
- package/node_modules/ajv/lib/dot/definitions.def +9 -7
- package/node_modules/ajv/lib/dot/dependencies.jst +1 -2
- package/node_modules/ajv/lib/dot/if.jst +0 -2
- package/node_modules/ajv/lib/dot/items.jst +0 -2
- package/node_modules/ajv/lib/dot/multipleOf.jst +2 -0
- package/node_modules/ajv/lib/dot/pattern.jst +15 -4
- package/node_modules/ajv/lib/dot/properties.jst +6 -5
- package/node_modules/ajv/lib/dot/propertyNames.jst +0 -2
- package/node_modules/ajv/lib/dot/uniqueItems.jst +1 -1
- package/node_modules/ajv/lib/dot/validate.jst +3 -9
- package/node_modules/ajv/lib/dotjs/_limit.js +6 -0
- package/node_modules/ajv/lib/dotjs/_limitItems.js +3 -0
- package/node_modules/ajv/lib/dotjs/_limitLength.js +3 -0
- package/node_modules/ajv/lib/dotjs/_limitProperties.js +3 -0
- package/node_modules/ajv/lib/dotjs/allOf.js +1 -2
- package/node_modules/ajv/lib/dotjs/anyOf.js +1 -2
- package/node_modules/ajv/lib/dotjs/contains.js +1 -2
- package/node_modules/ajv/lib/dotjs/dependencies.js +2 -2
- package/node_modules/ajv/lib/dotjs/if.js +2 -3
- package/node_modules/ajv/lib/dotjs/items.js +3 -4
- package/node_modules/ajv/lib/dotjs/multipleOf.js +3 -0
- package/node_modules/ajv/lib/dotjs/not.js +1 -1
- package/node_modules/ajv/lib/dotjs/oneOf.js +1 -1
- package/node_modules/ajv/lib/dotjs/pattern.js +14 -4
- package/node_modules/ajv/lib/dotjs/properties.js +11 -6
- package/node_modules/ajv/lib/dotjs/propertyNames.js +1 -2
- package/node_modules/ajv/lib/dotjs/required.js +1 -1
- package/node_modules/ajv/lib/dotjs/uniqueItems.js +1 -1
- package/node_modules/ajv/lib/dotjs/validate.js +13 -25
- package/node_modules/ajv/lib/keyword.js +1 -1
- package/node_modules/ajv/lib/refs/data.json +1 -1
- package/node_modules/ajv/lib/refs/json-schema-secure.json +1 -1
- package/node_modules/ajv/package.json +77 -97
- package/node_modules/ajv/scripts/publish-built-version +1 -1
- package/node_modules/ajv/scripts/travis-gh-pages +1 -1
- package/node_modules/ansi-align/CHANGELOG.md +8 -1
- package/node_modules/ansi-align/node_modules/emoji-regex/package.json +50 -0
- package/node_modules/ansi-align/node_modules/is-fullwidth-code-point/index.js +25 -21
- package/node_modules/ansi-align/node_modules/is-fullwidth-code-point/license +4 -16
- package/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json +40 -75
- package/node_modules/ansi-align/node_modules/is-fullwidth-code-point/readme.md +6 -6
- package/node_modules/ansi-align/node_modules/string-width/index.js +15 -7
- package/node_modules/ansi-align/node_modules/string-width/package.json +54 -86
- package/node_modules/ansi-align/node_modules/string-width/readme.md +15 -10
- package/node_modules/ansi-align/package.json +26 -55
- package/node_modules/ansi-regex/index.js +8 -2
- package/node_modules/ansi-regex/license +4 -16
- package/node_modules/ansi-regex/package.json +53 -107
- package/node_modules/ansi-regex/readme.md +48 -9
- package/node_modules/any-promise/package.json +24 -51
- package/node_modules/asn1/Jenkinsfile +65 -0
- package/node_modules/asn1/package.json +19 -63
- package/node_modules/assert-plus/package.json +14 -78
- package/node_modules/asynckit/package.json +40 -68
- package/node_modules/atomically/dist/constants.d.ts +15 -0
- package/node_modules/atomically/dist/constants.js +19 -0
- package/node_modules/atomically/dist/index.d.ts +15 -0
- package/node_modules/atomically/dist/index.js +209 -0
- package/node_modules/atomically/dist/types.d.ts +27 -0
- package/node_modules/atomically/dist/types.js +2 -0
- package/node_modules/atomically/dist/utils/lang.d.ts +6 -0
- package/node_modules/atomically/dist/utils/lang.js +16 -0
- package/node_modules/atomically/dist/utils/scheduler.d.ts +6 -0
- package/node_modules/atomically/dist/utils/scheduler.js +34 -0
- package/node_modules/atomically/dist/utils/temp.d.ts +11 -0
- package/node_modules/atomically/dist/utils/temp.js +59 -0
- package/node_modules/atomically/license +21 -0
- package/node_modules/atomically/package.json +42 -0
- package/node_modules/atomically/readme.md +147 -0
- package/node_modules/aws-sign2/package.json +10 -43
- package/node_modules/aws4/README.md +68 -380
- package/node_modules/aws4/aws4.js +71 -29
- package/node_modules/aws4/package.json +14 -97
- package/node_modules/bare-events/LICENSE +201 -0
- package/node_modules/bare-events/README.md +25 -0
- package/node_modules/bare-events/global.d.ts +15 -0
- package/node_modules/bare-events/global.js +5 -0
- package/node_modules/bare-events/index.d.ts +85 -0
- package/node_modules/bare-events/index.js +378 -0
- package/node_modules/bare-events/lib/errors.js +26 -0
- package/node_modules/bare-events/package.json +63 -0
- package/node_modules/bare-events/web.d.ts +79 -0
- package/node_modules/bare-events/web.js +353 -0
- package/node_modules/bare-fs/CMakeLists.txt +13 -0
- package/node_modules/bare-fs/LICENSE +201 -0
- package/node_modules/bare-fs/README.md +989 -0
- package/node_modules/bare-fs/binding.c +2889 -0
- package/node_modules/bare-fs/binding.js +1 -0
- package/node_modules/bare-fs/index.d.ts +1232 -0
- package/node_modules/bare-fs/index.js +2842 -0
- package/node_modules/bare-fs/lib/constants.d.ts +49 -0
- package/node_modules/bare-fs/lib/constants.js +49 -0
- package/node_modules/bare-fs/lib/errors.d.ts +11 -0
- package/node_modules/bare-fs/lib/errors.js +55 -0
- package/node_modules/bare-fs/package.json +74 -0
- package/node_modules/bare-fs/prebuilds/android-arm/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-ia32/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/android-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/darwin-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-arm64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/ios-x64-simulator/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/linux-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-arm64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/prebuilds/win32-x64/bare-fs.bare +0 -0
- package/node_modules/bare-fs/promises.d.ts +313 -0
- package/node_modules/bare-fs/promises.js +119 -0
- package/node_modules/bare-os/CMakeLists.txt +13 -0
- package/node_modules/bare-os/LICENSE +201 -0
- package/node_modules/bare-os/README.md +252 -0
- package/node_modules/bare-os/binding.c +1538 -0
- package/node_modules/bare-os/binding.js +1 -0
- package/node_modules/bare-os/index.d.ts +150 -0
- package/node_modules/bare-os/index.js +131 -0
- package/node_modules/bare-os/lib/constants.d.ts +7 -0
- package/node_modules/bare-os/lib/constants.js +7 -0
- package/node_modules/bare-os/lib/errors.d.ts +5 -0
- package/node_modules/bare-os/lib/errors.js +22 -0
- package/node_modules/bare-os/package.json +55 -0
- package/node_modules/bare-os/prebuilds/android-arm/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/android-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/android-ia32/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/android-x64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/darwin-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/darwin-x64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/ios-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/ios-arm64-simulator/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/ios-x64-simulator/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/linux-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/linux-x64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/win32-arm64/bare-os.bare +0 -0
- package/node_modules/bare-os/prebuilds/win32-x64/bare-os.bare +0 -0
- package/node_modules/bare-path/LICENSE +201 -0
- package/node_modules/bare-path/NOTICE +28 -0
- package/node_modules/bare-path/README.md +19 -0
- package/node_modules/bare-path/index.d.ts +27 -0
- package/node_modules/bare-path/index.js +9 -0
- package/node_modules/bare-path/lib/constants.js +11 -0
- package/node_modules/bare-path/lib/posix.js +246 -0
- package/node_modules/bare-path/lib/shared.js +73 -0
- package/node_modules/bare-path/lib/win32.js +547 -0
- package/node_modules/bare-path/package.json +44 -0
- package/node_modules/bare-stream/LICENSE +201 -0
- package/node_modules/bare-stream/README.md +354 -0
- package/node_modules/bare-stream/global.d.ts +31 -0
- package/node_modules/bare-stream/global.js +15 -0
- package/node_modules/bare-stream/index.d.ts +235 -0
- package/node_modules/bare-stream/index.js +493 -0
- package/node_modules/bare-stream/node_modules/b4a/LICENSE +201 -0
- package/node_modules/bare-stream/node_modules/b4a/README.md +153 -0
- package/node_modules/bare-stream/node_modules/b4a/browser.js +541 -0
- package/node_modules/bare-stream/node_modules/b4a/index.js +188 -0
- package/node_modules/bare-stream/node_modules/b4a/lib/ascii.js +31 -0
- package/node_modules/bare-stream/node_modules/b4a/lib/base64.js +64 -0
- package/node_modules/bare-stream/node_modules/b4a/lib/hex.js +51 -0
- package/node_modules/bare-stream/node_modules/b4a/lib/latin1.js +31 -0
- package/node_modules/bare-stream/node_modules/b4a/lib/utf16le.js +40 -0
- package/node_modules/bare-stream/node_modules/b4a/lib/utf8.js +144 -0
- package/node_modules/bare-stream/node_modules/b4a/package.json +51 -0
- package/node_modules/bare-stream/node_modules/b4a/react-native.js +5 -0
- package/node_modules/bare-stream/package.json +75 -0
- package/node_modules/bare-stream/promises.js +3 -0
- package/node_modules/bare-stream/web.d.ts +152 -0
- package/node_modules/bare-stream/web.js +607 -0
- package/node_modules/bare-url/CMakeLists.txt +27 -0
- package/node_modules/bare-url/LICENSE +201 -0
- package/node_modules/bare-url/README.md +172 -0
- package/node_modules/bare-url/binding.c +186 -0
- package/node_modules/bare-url/binding.js +1 -0
- package/node_modules/bare-url/global.d.ts +12 -0
- package/node_modules/bare-url/global.js +2 -0
- package/node_modules/bare-url/index.d.ts +41 -0
- package/node_modules/bare-url/index.js +411 -0
- package/node_modules/bare-url/lib/errors.d.ts +10 -0
- package/node_modules/bare-url/lib/errors.js +33 -0
- package/node_modules/bare-url/lib/url-search-params.d.ts +23 -0
- package/node_modules/bare-url/lib/url-search-params.js +194 -0
- package/node_modules/bare-url/package.json +54 -0
- package/node_modules/bare-url/prebuilds/android-arm/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-ia32/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/android-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/darwin-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/linux-x64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-arm64/bare-url.bare +0 -0
- package/node_modules/bare-url/prebuilds/win32-x64/bare-url.bare +0 -0
- package/node_modules/bcrypt-pbkdf/package.json +8 -37
- package/node_modules/boxen/index.d.ts +246 -157
- package/node_modules/boxen/index.js +327 -92
- package/node_modules/boxen/license +1 -1
- package/node_modules/boxen/node_modules/camelcase/index.d.ts +102 -0
- package/node_modules/boxen/node_modules/camelcase/index.js +110 -0
- package/node_modules/boxen/node_modules/camelcase/license +9 -0
- package/node_modules/boxen/node_modules/camelcase/package.json +47 -0
- package/node_modules/boxen/node_modules/camelcase/readme.md +135 -0
- package/node_modules/boxen/node_modules/chalk/license +1 -1
- package/node_modules/boxen/node_modules/chalk/package.json +81 -101
- package/node_modules/boxen/node_modules/chalk/readme.md +87 -104
- package/node_modules/boxen/node_modules/chalk/source/index.d.ts +325 -0
- package/node_modules/boxen/node_modules/chalk/source/index.js +225 -0
- package/node_modules/boxen/node_modules/chalk/source/utilities.js +33 -0
- package/node_modules/boxen/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/node_modules/boxen/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/node_modules/boxen/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/node_modules/boxen/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/node_modules/boxen/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/node_modules/boxen/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/node_modules/boxen/node_modules/type-fest/index.d.ts +178 -0
- package/node_modules/boxen/node_modules/type-fest/license-cc0 +121 -0
- package/node_modules/boxen/node_modules/type-fest/license-mit +9 -0
- package/node_modules/boxen/node_modules/type-fest/package.json +91 -0
- package/node_modules/boxen/node_modules/type-fest/readme.md +1060 -0
- package/node_modules/boxen/node_modules/type-fest/source/all-union-fields.d.ts +88 -0
- package/node_modules/boxen/node_modules/type-fest/source/and.d.ts +25 -0
- package/node_modules/boxen/node_modules/type-fest/source/array-indices.d.ts +23 -0
- package/node_modules/boxen/node_modules/type-fest/source/array-slice.d.ts +109 -0
- package/node_modules/boxen/node_modules/type-fest/source/array-splice.d.ts +99 -0
- package/node_modules/boxen/node_modules/type-fest/source/array-tail.d.ts +76 -0
- package/node_modules/boxen/node_modules/type-fest/source/array-values.d.ts +22 -0
- package/node_modules/boxen/node_modules/type-fest/source/arrayable.d.ts +29 -0
- package/node_modules/boxen/node_modules/type-fest/source/async-return-type.d.ts +23 -0
- package/node_modules/boxen/node_modules/type-fest/source/asyncify.d.ts +32 -0
- package/node_modules/boxen/node_modules/type-fest/source/basic.d.ts +68 -0
- package/node_modules/boxen/node_modules/type-fest/source/camel-case.d.ts +89 -0
- package/node_modules/boxen/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +97 -0
- package/node_modules/boxen/node_modules/type-fest/source/camel-cased-properties.d.ts +43 -0
- package/node_modules/boxen/node_modules/type-fest/source/conditional-except.d.ts +45 -0
- package/node_modules/boxen/node_modules/type-fest/source/conditional-keys.d.ts +47 -0
- package/node_modules/boxen/node_modules/type-fest/source/conditional-pick-deep.d.ts +118 -0
- package/node_modules/boxen/node_modules/type-fest/source/conditional-pick.d.ts +44 -0
- package/node_modules/boxen/node_modules/type-fest/source/conditional-simplify.d.ts +32 -0
- package/node_modules/boxen/node_modules/type-fest/source/delimiter-case.d.ts +78 -0
- package/node_modules/boxen/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +106 -0
- package/node_modules/boxen/node_modules/type-fest/source/delimiter-cased-properties.d.ts +46 -0
- package/node_modules/boxen/node_modules/type-fest/source/distributed-omit.d.ts +89 -0
- package/node_modules/boxen/node_modules/type-fest/source/distributed-pick.d.ts +85 -0
- package/node_modules/boxen/node_modules/type-fest/source/empty-object.d.ts +46 -0
- package/node_modules/boxen/node_modules/type-fest/source/enforce-optional.d.ts +47 -0
- package/node_modules/boxen/node_modules/type-fest/source/entries.d.ts +62 -0
- package/node_modules/boxen/node_modules/type-fest/source/entry.d.ts +65 -0
- package/node_modules/boxen/node_modules/type-fest/source/exact.d.ts +68 -0
- package/node_modules/boxen/node_modules/type-fest/source/except.d.ts +108 -0
- package/node_modules/boxen/node_modules/type-fest/source/find-global-type.d.ts +64 -0
- package/node_modules/boxen/node_modules/type-fest/source/fixed-length-array.d.ts +43 -0
- package/node_modules/boxen/node_modules/type-fest/source/get.d.ts +219 -0
- package/node_modules/boxen/node_modules/type-fest/source/global-this.d.ts +21 -0
- package/node_modules/boxen/node_modules/type-fest/source/greater-than-or-equal.d.ts +22 -0
- package/node_modules/boxen/node_modules/type-fest/source/greater-than.d.ts +56 -0
- package/node_modules/boxen/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
- package/node_modules/boxen/node_modules/type-fest/source/has-readonly-keys.d.ts +21 -0
- package/node_modules/boxen/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
- package/node_modules/boxen/node_modules/type-fest/source/has-writable-keys.d.ts +21 -0
- package/node_modules/boxen/node_modules/type-fest/source/if-any.d.ts +24 -0
- package/node_modules/boxen/node_modules/type-fest/source/if-empty-object.d.ts +26 -0
- package/node_modules/boxen/node_modules/type-fest/source/if-never.d.ts +24 -0
- package/node_modules/boxen/node_modules/type-fest/source/if-null.d.ts +24 -0
- package/node_modules/boxen/node_modules/type-fest/source/if-unknown.d.ts +24 -0
- package/node_modules/boxen/node_modules/type-fest/source/includes.d.ts +22 -0
- package/node_modules/boxen/node_modules/type-fest/source/int-closed-range.d.ts +35 -0
- package/node_modules/boxen/node_modules/type-fest/source/int-range.d.ts +55 -0
- package/node_modules/boxen/node_modules/type-fest/source/internal/array.d.ts +126 -0
- package/node_modules/boxen/node_modules/type-fest/source/internal/characters.d.ts +67 -0
- package/node_modules/boxen/node_modules/type-fest/source/internal/index.d.ts +8 -0
- package/node_modules/boxen/node_modules/type-fest/source/internal/keys.d.ts +97 -0
- package/node_modules/boxen/node_modules/type-fest/source/internal/numeric.d.ts +118 -0
- package/node_modules/boxen/node_modules/type-fest/source/internal/object.d.ts +236 -0
- package/node_modules/boxen/node_modules/type-fest/source/internal/string.d.ts +210 -0
- package/node_modules/boxen/node_modules/type-fest/source/internal/tuple.d.ts +90 -0
- package/node_modules/boxen/node_modules/type-fest/source/internal/type.d.ts +139 -0
- package/node_modules/boxen/node_modules/type-fest/source/invariant-of.d.ts +76 -0
- package/node_modules/boxen/node_modules/type-fest/source/is-any.d.ts +33 -0
- package/node_modules/boxen/node_modules/type-fest/source/is-equal.d.ts +31 -0
- package/node_modules/boxen/node_modules/type-fest/source/is-float.d.ts +41 -0
- package/node_modules/boxen/node_modules/type-fest/source/is-integer.d.ts +58 -0
- package/node_modules/boxen/node_modules/type-fest/source/is-literal.d.ts +296 -0
- package/node_modules/boxen/node_modules/type-fest/source/is-never.d.ts +42 -0
- package/node_modules/boxen/node_modules/type-fest/source/is-null.d.ts +20 -0
- package/node_modules/boxen/node_modules/type-fest/source/is-tuple.d.ts +89 -0
- package/node_modules/boxen/node_modules/type-fest/source/is-unknown.d.ts +52 -0
- package/node_modules/boxen/node_modules/type-fest/source/iterable-element.d.ts +64 -0
- package/node_modules/boxen/node_modules/type-fest/source/join.d.ts +68 -0
- package/node_modules/boxen/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
- package/node_modules/boxen/node_modules/type-fest/source/jsonify.d.ts +122 -0
- package/node_modules/boxen/node_modules/type-fest/source/kebab-case.d.ts +44 -0
- package/node_modules/boxen/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +63 -0
- package/node_modules/boxen/node_modules/type-fest/source/kebab-cased-properties.d.ts +40 -0
- package/node_modules/boxen/node_modules/type-fest/source/keys-of-union.d.ts +42 -0
- package/node_modules/boxen/node_modules/type-fest/source/last-array-element.d.ts +38 -0
- package/node_modules/boxen/node_modules/type-fest/source/less-than-or-equal.d.ts +22 -0
- package/node_modules/boxen/node_modules/type-fest/source/less-than.d.ts +26 -0
- package/node_modules/boxen/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +36 -0
- package/node_modules/boxen/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
- package/node_modules/boxen/node_modules/type-fest/source/literal-union.d.ts +37 -0
- package/node_modules/boxen/node_modules/type-fest/source/merge-deep.d.ts +486 -0
- package/node_modules/boxen/node_modules/type-fest/source/merge-exclusive.d.ts +41 -0
- package/node_modules/boxen/node_modules/type-fest/source/merge.d.ts +48 -0
- package/node_modules/boxen/node_modules/type-fest/source/multidimensional-array.d.ts +44 -0
- package/node_modules/boxen/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +48 -0
- package/node_modules/boxen/node_modules/type-fest/source/non-empty-object.d.ts +35 -0
- package/node_modules/boxen/node_modules/type-fest/source/non-empty-string.d.ts +28 -0
- package/node_modules/boxen/node_modules/type-fest/source/non-empty-tuple.d.ts +21 -0
- package/node_modules/boxen/node_modules/type-fest/source/numeric.d.ts +222 -0
- package/node_modules/boxen/node_modules/type-fest/source/observable-like.d.ts +63 -0
- package/node_modules/boxen/node_modules/type-fest/source/omit-deep.d.ts +167 -0
- package/node_modules/boxen/node_modules/type-fest/source/omit-index-signature.d.ts +95 -0
- package/node_modules/boxen/node_modules/type-fest/source/opaque.d.ts +1 -0
- package/node_modules/boxen/node_modules/type-fest/source/optional-keys-of.d.ts +39 -0
- package/node_modules/boxen/node_modules/type-fest/source/or.d.ts +25 -0
- package/node_modules/boxen/node_modules/type-fest/source/override-properties.d.ts +36 -0
- package/node_modules/boxen/node_modules/type-fest/source/package-json.d.ts +676 -0
- package/node_modules/boxen/node_modules/type-fest/source/partial-deep.d.ts +151 -0
- package/node_modules/boxen/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +78 -0
- package/node_modules/boxen/node_modules/type-fest/source/pascal-case.d.ts +42 -0
- package/node_modules/boxen/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +62 -0
- package/node_modules/boxen/node_modules/type-fest/source/pascal-cased-properties.d.ts +36 -0
- package/node_modules/boxen/node_modules/type-fest/source/paths.d.ts +262 -0
- package/node_modules/boxen/node_modules/type-fest/source/pick-deep.d.ts +149 -0
- package/node_modules/boxen/node_modules/type-fest/source/pick-index-signature.d.ts +50 -0
- package/node_modules/boxen/node_modules/type-fest/source/primitive.d.ts +13 -0
- package/node_modules/boxen/node_modules/type-fest/source/promisable.d.ts +25 -0
- package/node_modules/boxen/node_modules/type-fest/source/readonly-deep.d.ts +81 -0
- package/node_modules/boxen/node_modules/type-fest/source/readonly-keys-of.d.ts +30 -0
- package/node_modules/boxen/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
- package/node_modules/boxen/node_modules/type-fest/source/replace.d.ts +85 -0
- package/node_modules/boxen/node_modules/type-fest/source/require-all-or-none.d.ts +51 -0
- package/node_modules/boxen/node_modules/type-fest/source/require-at-least-one.d.ts +47 -0
- package/node_modules/boxen/node_modules/type-fest/source/require-exactly-one.d.ts +45 -0
- package/node_modules/boxen/node_modules/type-fest/source/require-one-or-none.d.ts +46 -0
- package/node_modules/boxen/node_modules/type-fest/source/required-deep.d.ts +78 -0
- package/node_modules/boxen/node_modules/type-fest/source/required-keys-of.d.ts +30 -0
- package/node_modules/boxen/node_modules/type-fest/source/schema.d.ts +114 -0
- package/node_modules/boxen/node_modules/type-fest/source/screaming-snake-case.d.ts +28 -0
- package/node_modules/boxen/node_modules/type-fest/source/set-field-type.d.ts +65 -0
- package/node_modules/boxen/node_modules/type-fest/source/set-non-nullable-deep.d.ts +83 -0
- package/node_modules/boxen/node_modules/type-fest/source/set-non-nullable.d.ts +39 -0
- package/node_modules/boxen/node_modules/type-fest/source/set-optional.d.ts +38 -0
- package/node_modules/boxen/node_modules/type-fest/source/set-parameter-type.d.ts +117 -0
- package/node_modules/boxen/node_modules/type-fest/source/set-readonly.d.ts +39 -0
- package/node_modules/boxen/node_modules/type-fest/source/set-required-deep.d.ts +68 -0
- package/node_modules/boxen/node_modules/type-fest/source/set-required.d.ts +70 -0
- package/node_modules/boxen/node_modules/type-fest/source/set-return-type.d.ts +29 -0
- package/node_modules/boxen/node_modules/type-fest/source/shared-union-fields-deep.d.ts +178 -0
- package/node_modules/boxen/node_modules/type-fest/source/shared-union-fields.d.ts +76 -0
- package/node_modules/boxen/node_modules/type-fest/source/simplify-deep.d.ts +115 -0
- package/node_modules/boxen/node_modules/type-fest/source/simplify.d.ts +58 -0
- package/node_modules/boxen/node_modules/type-fest/source/single-key-object.d.ts +29 -0
- package/node_modules/boxen/node_modules/type-fest/source/snake-case.d.ts +45 -0
- package/node_modules/boxen/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +63 -0
- package/node_modules/boxen/node_modules/type-fest/source/snake-cased-properties.d.ts +40 -0
- package/node_modules/boxen/node_modules/type-fest/source/split.d.ts +88 -0
- package/node_modules/boxen/node_modules/type-fest/source/spread.d.ts +84 -0
- package/node_modules/boxen/node_modules/type-fest/source/string-key-of.d.ts +25 -0
- package/node_modules/boxen/node_modules/type-fest/source/string-repeat.d.ts +47 -0
- package/node_modules/boxen/node_modules/type-fest/source/string-slice.d.ts +37 -0
- package/node_modules/boxen/node_modules/type-fest/source/stringified.d.ts +23 -0
- package/node_modules/boxen/node_modules/type-fest/source/structured-cloneable.d.ts +92 -0
- package/node_modules/boxen/node_modules/type-fest/source/subtract.d.ts +83 -0
- package/node_modules/boxen/node_modules/type-fest/source/sum.d.ts +78 -0
- package/node_modules/boxen/node_modules/type-fest/source/tagged-union.d.ts +51 -0
- package/node_modules/boxen/node_modules/type-fest/source/tagged.d.ts +256 -0
- package/node_modules/boxen/node_modules/type-fest/source/trim.d.ts +27 -0
- package/node_modules/boxen/node_modules/type-fest/source/tsconfig-json.d.ts +1294 -0
- package/node_modules/boxen/node_modules/type-fest/source/tuple-to-object.d.ts +42 -0
- package/node_modules/boxen/node_modules/type-fest/source/tuple-to-union.d.ts +51 -0
- package/node_modules/boxen/node_modules/type-fest/source/typed-array.d.ts +17 -0
- package/node_modules/boxen/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +80 -0
- package/node_modules/boxen/node_modules/type-fest/source/union-to-intersection.d.ts +61 -0
- package/node_modules/boxen/node_modules/type-fest/source/union-to-tuple.d.ts +56 -0
- package/node_modules/boxen/node_modules/type-fest/source/unknown-array.d.ts +25 -0
- package/node_modules/boxen/node_modules/type-fest/source/unknown-map.d.ts +24 -0
- package/node_modules/boxen/node_modules/type-fest/source/unknown-record.d.ts +31 -0
- package/node_modules/boxen/node_modules/type-fest/source/unknown-set.d.ts +24 -0
- package/node_modules/boxen/node_modules/type-fest/source/value-of.d.ts +42 -0
- package/node_modules/boxen/node_modules/type-fest/source/words.d.ts +118 -0
- package/node_modules/boxen/node_modules/type-fest/source/writable-deep.d.ts +83 -0
- package/node_modules/boxen/node_modules/type-fest/source/writable-keys-of.d.ts +33 -0
- package/node_modules/boxen/node_modules/type-fest/source/writable.d.ts +68 -0
- package/node_modules/boxen/package.json +67 -85
- package/node_modules/boxen/readme.md +156 -44
- package/node_modules/browserify-zlib/package.json +19 -53
- package/node_modules/buffer-from/index.js +3 -0
- package/node_modules/buffer-from/package.json +10 -45
- package/node_modules/caseless/package.json +16 -45
- package/node_modules/chownr/LICENSE.md +63 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
- package/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/esm/index.js +85 -0
- package/node_modules/chownr/dist/esm/index.js.map +1 -0
- package/node_modules/chownr/dist/esm/package.json +3 -0
- package/node_modules/chownr/package.json +59 -50
- package/node_modules/cli-boxes/boxes.json +38 -14
- package/node_modules/cli-boxes/index.d.ts +19 -5
- package/node_modules/cli-boxes/license +1 -1
- package/node_modules/cli-boxes/package.json +40 -71
- package/node_modules/cli-boxes/readme.md +27 -14
- package/node_modules/cliui/CHANGELOG.md +81 -0
- package/node_modules/cliui/README.md +51 -5
- package/node_modules/cliui/build/lib/index.js +287 -0
- package/node_modules/cliui/build/tsconfig.tsbuildinfo +1 -0
- package/node_modules/cliui/index.mjs +15 -0
- package/node_modules/cliui/node_modules/ansi-regex/index.d.ts +9 -13
- package/node_modules/cliui/node_modules/ansi-regex/index.js +11 -7
- package/node_modules/cliui/node_modules/ansi-regex/license +1 -1
- package/node_modules/cliui/node_modules/ansi-regex/package.json +59 -85
- package/node_modules/cliui/node_modules/ansi-regex/readme.md +10 -22
- package/node_modules/cliui/node_modules/strip-ansi/index.d.ts +2 -4
- package/node_modules/cliui/node_modules/strip-ansi/index.js +18 -3
- package/node_modules/cliui/node_modules/strip-ansi/license +1 -1
- package/node_modules/cliui/node_modules/strip-ansi/package.json +57 -85
- package/node_modules/cliui/node_modules/strip-ansi/readme.md +6 -15
- package/node_modules/cliui/package.json +55 -80
- package/node_modules/cmd-shim/README.md +34 -0
- package/node_modules/cmd-shim/lib/index.js +283 -0
- package/node_modules/cmd-shim/lib/to-batch-syntax.js +49 -0
- package/node_modules/cmd-shim/package.json +48 -0
- package/node_modules/combined-stream/package.json +14 -47
- package/node_modules/config-chain/LICENCE +22 -0
- package/node_modules/config-chain/index.js +282 -0
- package/node_modules/config-chain/package.json +28 -0
- package/node_modules/config-chain/readme.markdown +257 -0
- package/node_modules/configstore/index.d.ts +94 -0
- package/node_modules/configstore/index.js +62 -45
- package/node_modules/configstore/node_modules/dot-prop/index.d.ts +164 -0
- package/node_modules/configstore/node_modules/dot-prop/index.js +337 -0
- package/node_modules/configstore/node_modules/dot-prop/license +9 -0
- package/node_modules/configstore/node_modules/dot-prop/package.json +53 -0
- package/node_modules/configstore/node_modules/dot-prop/readme.md +168 -0
- package/node_modules/configstore/node_modules/type-fest/index.d.ts +178 -0
- package/node_modules/configstore/node_modules/type-fest/license-cc0 +121 -0
- package/node_modules/configstore/node_modules/type-fest/license-mit +9 -0
- package/node_modules/configstore/node_modules/type-fest/package.json +91 -0
- package/node_modules/configstore/node_modules/type-fest/readme.md +1060 -0
- package/node_modules/configstore/node_modules/type-fest/source/all-union-fields.d.ts +88 -0
- package/node_modules/configstore/node_modules/type-fest/source/and.d.ts +25 -0
- package/node_modules/configstore/node_modules/type-fest/source/array-indices.d.ts +23 -0
- package/node_modules/configstore/node_modules/type-fest/source/array-slice.d.ts +109 -0
- package/node_modules/configstore/node_modules/type-fest/source/array-splice.d.ts +99 -0
- package/node_modules/configstore/node_modules/type-fest/source/array-tail.d.ts +76 -0
- package/node_modules/configstore/node_modules/type-fest/source/array-values.d.ts +22 -0
- package/node_modules/configstore/node_modules/type-fest/source/arrayable.d.ts +29 -0
- package/node_modules/configstore/node_modules/type-fest/source/async-return-type.d.ts +23 -0
- package/node_modules/configstore/node_modules/type-fest/source/asyncify.d.ts +32 -0
- package/node_modules/configstore/node_modules/type-fest/source/basic.d.ts +68 -0
- package/node_modules/configstore/node_modules/type-fest/source/camel-case.d.ts +89 -0
- package/node_modules/configstore/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +97 -0
- package/node_modules/configstore/node_modules/type-fest/source/camel-cased-properties.d.ts +43 -0
- package/node_modules/configstore/node_modules/type-fest/source/conditional-except.d.ts +45 -0
- package/node_modules/configstore/node_modules/type-fest/source/conditional-keys.d.ts +47 -0
- package/node_modules/configstore/node_modules/type-fest/source/conditional-pick-deep.d.ts +118 -0
- package/node_modules/configstore/node_modules/type-fest/source/conditional-pick.d.ts +44 -0
- package/node_modules/configstore/node_modules/type-fest/source/conditional-simplify.d.ts +32 -0
- package/node_modules/configstore/node_modules/type-fest/source/delimiter-case.d.ts +78 -0
- package/node_modules/configstore/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +106 -0
- package/node_modules/configstore/node_modules/type-fest/source/delimiter-cased-properties.d.ts +46 -0
- package/node_modules/configstore/node_modules/type-fest/source/distributed-omit.d.ts +89 -0
- package/node_modules/configstore/node_modules/type-fest/source/distributed-pick.d.ts +85 -0
- package/node_modules/configstore/node_modules/type-fest/source/empty-object.d.ts +46 -0
- package/node_modules/configstore/node_modules/type-fest/source/enforce-optional.d.ts +47 -0
- package/node_modules/configstore/node_modules/type-fest/source/entries.d.ts +62 -0
- package/node_modules/configstore/node_modules/type-fest/source/entry.d.ts +65 -0
- package/node_modules/configstore/node_modules/type-fest/source/exact.d.ts +68 -0
- package/node_modules/configstore/node_modules/type-fest/source/except.d.ts +108 -0
- package/node_modules/configstore/node_modules/type-fest/source/find-global-type.d.ts +64 -0
- package/node_modules/configstore/node_modules/type-fest/source/fixed-length-array.d.ts +43 -0
- package/node_modules/configstore/node_modules/type-fest/source/get.d.ts +219 -0
- package/node_modules/configstore/node_modules/type-fest/source/global-this.d.ts +21 -0
- package/node_modules/configstore/node_modules/type-fest/source/greater-than-or-equal.d.ts +22 -0
- package/node_modules/configstore/node_modules/type-fest/source/greater-than.d.ts +56 -0
- package/node_modules/configstore/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
- package/node_modules/configstore/node_modules/type-fest/source/has-readonly-keys.d.ts +21 -0
- package/node_modules/configstore/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
- package/node_modules/configstore/node_modules/type-fest/source/has-writable-keys.d.ts +21 -0
- package/node_modules/configstore/node_modules/type-fest/source/if-any.d.ts +24 -0
- package/node_modules/configstore/node_modules/type-fest/source/if-empty-object.d.ts +26 -0
- package/node_modules/configstore/node_modules/type-fest/source/if-never.d.ts +24 -0
- package/node_modules/configstore/node_modules/type-fest/source/if-null.d.ts +24 -0
- package/node_modules/configstore/node_modules/type-fest/source/if-unknown.d.ts +24 -0
- package/node_modules/configstore/node_modules/type-fest/source/includes.d.ts +22 -0
- package/node_modules/configstore/node_modules/type-fest/source/int-closed-range.d.ts +35 -0
- package/node_modules/configstore/node_modules/type-fest/source/int-range.d.ts +55 -0
- package/node_modules/configstore/node_modules/type-fest/source/internal/array.d.ts +126 -0
- package/node_modules/configstore/node_modules/type-fest/source/internal/characters.d.ts +67 -0
- package/node_modules/configstore/node_modules/type-fest/source/internal/index.d.ts +8 -0
- package/node_modules/configstore/node_modules/type-fest/source/internal/keys.d.ts +97 -0
- package/node_modules/configstore/node_modules/type-fest/source/internal/numeric.d.ts +118 -0
- package/node_modules/configstore/node_modules/type-fest/source/internal/object.d.ts +236 -0
- package/node_modules/configstore/node_modules/type-fest/source/internal/string.d.ts +210 -0
- package/node_modules/configstore/node_modules/type-fest/source/internal/tuple.d.ts +90 -0
- package/node_modules/configstore/node_modules/type-fest/source/internal/type.d.ts +139 -0
- package/node_modules/configstore/node_modules/type-fest/source/invariant-of.d.ts +76 -0
- package/node_modules/configstore/node_modules/type-fest/source/is-any.d.ts +33 -0
- package/node_modules/configstore/node_modules/type-fest/source/is-equal.d.ts +31 -0
- package/node_modules/configstore/node_modules/type-fest/source/is-float.d.ts +41 -0
- package/node_modules/configstore/node_modules/type-fest/source/is-integer.d.ts +58 -0
- package/node_modules/configstore/node_modules/type-fest/source/is-literal.d.ts +296 -0
- package/node_modules/configstore/node_modules/type-fest/source/is-never.d.ts +42 -0
- package/node_modules/configstore/node_modules/type-fest/source/is-null.d.ts +20 -0
- package/node_modules/configstore/node_modules/type-fest/source/is-tuple.d.ts +89 -0
- package/node_modules/configstore/node_modules/type-fest/source/is-unknown.d.ts +52 -0
- package/node_modules/configstore/node_modules/type-fest/source/iterable-element.d.ts +64 -0
- package/node_modules/configstore/node_modules/type-fest/source/join.d.ts +68 -0
- package/node_modules/configstore/node_modules/type-fest/source/jsonifiable.d.ts +37 -0
- package/node_modules/configstore/node_modules/type-fest/source/jsonify.d.ts +122 -0
- package/node_modules/configstore/node_modules/type-fest/source/kebab-case.d.ts +44 -0
- package/node_modules/configstore/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +63 -0
- package/node_modules/configstore/node_modules/type-fest/source/kebab-cased-properties.d.ts +40 -0
- package/node_modules/configstore/node_modules/type-fest/source/keys-of-union.d.ts +42 -0
- package/node_modules/configstore/node_modules/type-fest/source/last-array-element.d.ts +38 -0
- package/node_modules/configstore/node_modules/type-fest/source/less-than-or-equal.d.ts +22 -0
- package/node_modules/configstore/node_modules/type-fest/source/less-than.d.ts +26 -0
- package/node_modules/configstore/node_modules/type-fest/source/literal-to-primitive-deep.d.ts +36 -0
- package/node_modules/configstore/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
- package/node_modules/configstore/node_modules/type-fest/source/literal-union.d.ts +37 -0
- package/node_modules/configstore/node_modules/type-fest/source/merge-deep.d.ts +486 -0
- package/node_modules/configstore/node_modules/type-fest/source/merge-exclusive.d.ts +41 -0
- package/node_modules/configstore/node_modules/type-fest/source/merge.d.ts +48 -0
- package/node_modules/configstore/node_modules/type-fest/source/multidimensional-array.d.ts +44 -0
- package/node_modules/configstore/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +48 -0
- package/node_modules/configstore/node_modules/type-fest/source/non-empty-object.d.ts +35 -0
- package/node_modules/configstore/node_modules/type-fest/source/non-empty-string.d.ts +28 -0
- package/node_modules/configstore/node_modules/type-fest/source/non-empty-tuple.d.ts +21 -0
- package/node_modules/configstore/node_modules/type-fest/source/numeric.d.ts +222 -0
- package/node_modules/configstore/node_modules/type-fest/source/observable-like.d.ts +63 -0
- package/node_modules/configstore/node_modules/type-fest/source/omit-deep.d.ts +167 -0
- package/node_modules/configstore/node_modules/type-fest/source/omit-index-signature.d.ts +95 -0
- package/node_modules/configstore/node_modules/type-fest/source/opaque.d.ts +1 -0
- package/node_modules/configstore/node_modules/type-fest/source/optional-keys-of.d.ts +39 -0
- package/node_modules/configstore/node_modules/type-fest/source/or.d.ts +25 -0
- package/node_modules/configstore/node_modules/type-fest/source/override-properties.d.ts +36 -0
- package/node_modules/configstore/node_modules/type-fest/source/package-json.d.ts +676 -0
- package/node_modules/configstore/node_modules/type-fest/source/partial-deep.d.ts +151 -0
- package/node_modules/configstore/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +78 -0
- package/node_modules/configstore/node_modules/type-fest/source/pascal-case.d.ts +42 -0
- package/node_modules/configstore/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +62 -0
- package/node_modules/configstore/node_modules/type-fest/source/pascal-cased-properties.d.ts +36 -0
- package/node_modules/configstore/node_modules/type-fest/source/paths.d.ts +262 -0
- package/node_modules/configstore/node_modules/type-fest/source/pick-deep.d.ts +149 -0
- package/node_modules/configstore/node_modules/type-fest/source/pick-index-signature.d.ts +50 -0
- package/node_modules/configstore/node_modules/type-fest/source/primitive.d.ts +13 -0
- package/node_modules/configstore/node_modules/type-fest/source/promisable.d.ts +25 -0
- package/node_modules/configstore/node_modules/type-fest/source/readonly-deep.d.ts +81 -0
- package/node_modules/configstore/node_modules/type-fest/source/readonly-keys-of.d.ts +30 -0
- package/node_modules/configstore/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
- package/node_modules/configstore/node_modules/type-fest/source/replace.d.ts +85 -0
- package/node_modules/configstore/node_modules/type-fest/source/require-all-or-none.d.ts +51 -0
- package/node_modules/configstore/node_modules/type-fest/source/require-at-least-one.d.ts +47 -0
- package/node_modules/configstore/node_modules/type-fest/source/require-exactly-one.d.ts +45 -0
- package/node_modules/configstore/node_modules/type-fest/source/require-one-or-none.d.ts +46 -0
- package/node_modules/configstore/node_modules/type-fest/source/required-deep.d.ts +78 -0
- package/node_modules/configstore/node_modules/type-fest/source/required-keys-of.d.ts +30 -0
- package/node_modules/configstore/node_modules/type-fest/source/schema.d.ts +114 -0
- package/node_modules/configstore/node_modules/type-fest/source/screaming-snake-case.d.ts +28 -0
- package/node_modules/configstore/node_modules/type-fest/source/set-field-type.d.ts +65 -0
- package/node_modules/configstore/node_modules/type-fest/source/set-non-nullable-deep.d.ts +83 -0
- package/node_modules/configstore/node_modules/type-fest/source/set-non-nullable.d.ts +39 -0
- package/node_modules/configstore/node_modules/type-fest/source/set-optional.d.ts +38 -0
- package/node_modules/configstore/node_modules/type-fest/source/set-parameter-type.d.ts +117 -0
- package/node_modules/configstore/node_modules/type-fest/source/set-readonly.d.ts +39 -0
- package/node_modules/configstore/node_modules/type-fest/source/set-required-deep.d.ts +68 -0
- package/node_modules/configstore/node_modules/type-fest/source/set-required.d.ts +70 -0
- package/node_modules/configstore/node_modules/type-fest/source/set-return-type.d.ts +29 -0
- package/node_modules/configstore/node_modules/type-fest/source/shared-union-fields-deep.d.ts +178 -0
- package/node_modules/configstore/node_modules/type-fest/source/shared-union-fields.d.ts +76 -0
- package/node_modules/configstore/node_modules/type-fest/source/simplify-deep.d.ts +115 -0
- package/node_modules/configstore/node_modules/type-fest/source/simplify.d.ts +58 -0
- package/node_modules/configstore/node_modules/type-fest/source/single-key-object.d.ts +29 -0
- package/node_modules/configstore/node_modules/type-fest/source/snake-case.d.ts +45 -0
- package/node_modules/configstore/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +63 -0
- package/node_modules/configstore/node_modules/type-fest/source/snake-cased-properties.d.ts +40 -0
- package/node_modules/configstore/node_modules/type-fest/source/split.d.ts +88 -0
- package/node_modules/configstore/node_modules/type-fest/source/spread.d.ts +84 -0
- package/node_modules/configstore/node_modules/type-fest/source/string-key-of.d.ts +25 -0
- package/node_modules/configstore/node_modules/type-fest/source/string-repeat.d.ts +47 -0
- package/node_modules/configstore/node_modules/type-fest/source/string-slice.d.ts +37 -0
- package/node_modules/configstore/node_modules/type-fest/source/stringified.d.ts +23 -0
- package/node_modules/configstore/node_modules/type-fest/source/structured-cloneable.d.ts +92 -0
- package/node_modules/configstore/node_modules/type-fest/source/subtract.d.ts +83 -0
- package/node_modules/configstore/node_modules/type-fest/source/sum.d.ts +78 -0
- package/node_modules/configstore/node_modules/type-fest/source/tagged-union.d.ts +51 -0
- package/node_modules/configstore/node_modules/type-fest/source/tagged.d.ts +256 -0
- package/node_modules/configstore/node_modules/type-fest/source/trim.d.ts +27 -0
- package/node_modules/configstore/node_modules/type-fest/source/tsconfig-json.d.ts +1294 -0
- package/node_modules/configstore/node_modules/type-fest/source/tuple-to-object.d.ts +42 -0
- package/node_modules/configstore/node_modules/type-fest/source/tuple-to-union.d.ts +51 -0
- package/node_modules/configstore/node_modules/type-fest/source/typed-array.d.ts +17 -0
- package/node_modules/configstore/node_modules/type-fest/source/undefined-on-partial-deep.d.ts +80 -0
- package/node_modules/configstore/node_modules/type-fest/source/union-to-intersection.d.ts +61 -0
- package/node_modules/configstore/node_modules/type-fest/source/union-to-tuple.d.ts +56 -0
- package/node_modules/configstore/node_modules/type-fest/source/unknown-array.d.ts +25 -0
- package/node_modules/configstore/node_modules/type-fest/source/unknown-map.d.ts +24 -0
- package/node_modules/configstore/node_modules/type-fest/source/unknown-record.d.ts +31 -0
- package/node_modules/configstore/node_modules/type-fest/source/unknown-set.d.ts +24 -0
- package/node_modules/configstore/node_modules/type-fest/source/value-of.d.ts +42 -0
- package/node_modules/configstore/node_modules/type-fest/source/words.d.ts +118 -0
- package/node_modules/configstore/node_modules/type-fest/source/writable-deep.d.ts +83 -0
- package/node_modules/configstore/node_modules/type-fest/source/writable-keys-of.d.ts +33 -0
- package/node_modules/configstore/node_modules/type-fest/source/writable.d.ts +68 -0
- package/node_modules/configstore/node_modules/xdg-basedir/index.d.ts +90 -0
- package/node_modules/configstore/node_modules/xdg-basedir/index.js +30 -0
- package/node_modules/configstore/node_modules/xdg-basedir/license +9 -0
- package/node_modules/configstore/node_modules/xdg-basedir/package.json +47 -0
- package/node_modules/configstore/node_modules/xdg-basedir/readme.md +70 -0
- package/node_modules/configstore/package.json +51 -77
- package/node_modules/configstore/readme.md +52 -32
- package/node_modules/core-util-is/lib/util.js +1 -1
- package/node_modules/core-util-is/package.json +19 -44
- package/node_modules/dashdash/package.json +23 -64
- package/node_modules/deep-extend/package.json +33 -63
- package/node_modules/delayed-stream/package.json +14 -49
- package/node_modules/duplexify/package.json +15 -43
- package/node_modules/ecc-jsbn/package.json +19 -44
- package/node_modules/emoji-regex/README.md +48 -14
- package/node_modules/emoji-regex/index.d.ts +1 -3
- package/node_modules/emoji-regex/index.js +3 -5
- package/node_modules/emoji-regex/index.mjs +4 -0
- package/node_modules/emoji-regex/package.json +43 -80
- package/node_modules/end-of-stream/index.js +3 -1
- package/node_modules/end-of-stream/package.json +17 -50
- package/node_modules/env-paths/index.d.ts +32 -0
- package/node_modules/env-paths/package.json +43 -75
- package/node_modules/env-paths/readme.md +44 -5
- package/node_modules/escalade/dist/index.js +22 -0
- package/node_modules/escalade/dist/index.mjs +22 -0
- package/node_modules/escalade/index.d.mts +11 -0
- package/node_modules/escalade/index.d.ts +15 -0
- package/node_modules/escalade/license +9 -0
- package/node_modules/escalade/package.json +74 -0
- package/node_modules/escalade/readme.md +211 -0
- package/node_modules/escalade/sync/index.d.mts +9 -0
- package/node_modules/escalade/sync/index.d.ts +13 -0
- package/node_modules/escalade/sync/index.js +18 -0
- package/node_modules/escalade/sync/index.mjs +18 -0
- package/node_modules/escape-goat/index.d.ts +62 -0
- package/node_modules/escape-goat/index.js +39 -0
- package/node_modules/escape-goat/license +9 -0
- package/node_modules/escape-goat/package.json +48 -0
- package/node_modules/escape-goat/readme.md +60 -0
- package/node_modules/events-universal/LICENSE +201 -0
- package/node_modules/events-universal/README.md +17 -0
- package/node_modules/events-universal/bare.js +1 -0
- package/node_modules/events-universal/default.js +1 -0
- package/node_modules/events-universal/index.js +1 -0
- package/node_modules/events-universal/package.json +39 -0
- package/node_modules/events-universal/react-native.js +1 -0
- package/node_modules/exponential-backoff/LICENSE +202 -0
- package/node_modules/exponential-backoff/README.md +89 -0
- package/node_modules/exponential-backoff/dist/backoff.d.ts +9 -0
- package/node_modules/exponential-backoff/dist/backoff.js +124 -0
- package/node_modules/exponential-backoff/dist/backoff.js.map +1 -0
- package/node_modules/exponential-backoff/dist/delay/always/always.delay.d.ts +3 -0
- package/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/node_modules/exponential-backoff/dist/delay/always/always.delay.js.map +1 -0
- package/node_modules/exponential-backoff/dist/delay/delay.base.d.ts +12 -0
- package/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/node_modules/exponential-backoff/dist/delay/delay.base.js.map +1 -0
- package/node_modules/exponential-backoff/dist/delay/delay.factory.d.ts +3 -0
- package/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/node_modules/exponential-backoff/dist/delay/delay.factory.js.map +1 -0
- package/node_modules/exponential-backoff/dist/delay/delay.interface.d.ts +4 -0
- package/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/node_modules/exponential-backoff/dist/delay/delay.interface.js.map +1 -0
- package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.d.ts +6 -0
- package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js.map +1 -0
- package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.d.ts +1 -0
- package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js.map +1 -0
- package/node_modules/exponential-backoff/dist/jitter/jitter.factory.d.ts +3 -0
- package/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/node_modules/exponential-backoff/dist/jitter/jitter.factory.js.map +1 -0
- package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.d.ts +1 -0
- package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js.map +1 -0
- package/node_modules/exponential-backoff/dist/options.d.ts +55 -0
- package/node_modules/exponential-backoff/dist/options.js +31 -0
- package/node_modules/exponential-backoff/dist/options.js.map +1 -0
- package/node_modules/exponential-backoff/package.json +62 -0
- package/node_modules/exponential-backoff/src/backoff.spec.ts +194 -0
- package/node_modules/exponential-backoff/src/backoff.ts +60 -0
- package/node_modules/exponential-backoff/src/delay/always/always.delay.spec.ts +65 -0
- package/node_modules/exponential-backoff/src/delay/always/always.delay.ts +3 -0
- package/node_modules/exponential-backoff/src/delay/delay.base.ts +34 -0
- package/node_modules/exponential-backoff/src/delay/delay.factory.ts +18 -0
- package/node_modules/exponential-backoff/src/delay/delay.interface.ts +4 -0
- package/node_modules/exponential-backoff/src/delay/skip-first/skip-first.delay.ts +15 -0
- package/node_modules/exponential-backoff/src/jitter/full/full.jitter.spec.ts +31 -0
- package/node_modules/exponential-backoff/src/jitter/full/full.jitter.ts +4 -0
- package/node_modules/exponential-backoff/src/jitter/jitter.factory.ts +16 -0
- package/node_modules/exponential-backoff/src/jitter/no/no.jitter.spec.ts +9 -0
- package/node_modules/exponential-backoff/src/jitter/no/no.jitter.ts +3 -0
- package/node_modules/exponential-backoff/src/options.ts +76 -0
- package/node_modules/extend/package.json +40 -73
- package/node_modules/extsprintf/package.json +12 -42
- package/node_modules/fast-deep-equal/README.md +53 -15
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.js +15 -24
- package/node_modules/fast-deep-equal/package.json +41 -66
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-fifo/LICENSE +21 -0
- package/node_modules/fast-fifo/README.md +78 -0
- package/node_modules/fast-fifo/fixed-size.js +39 -0
- package/node_modules/fast-fifo/index.js +48 -0
- package/node_modules/fast-fifo/package.json +28 -0
- package/node_modules/fast-json-stable-stringify/.github/FUNDING.yml +1 -0
- package/node_modules/fast-json-stable-stringify/.travis.yml +3 -3
- package/node_modules/fast-json-stable-stringify/LICENSE +3 -0
- package/node_modules/fast-json-stable-stringify/README.md +12 -0
- package/node_modules/fast-json-stable-stringify/index.d.ts +4 -0
- package/node_modules/fast-json-stable-stringify/package.json +23 -49
- package/node_modules/fdir/LICENSE +7 -0
- package/node_modules/fdir/README.md +91 -0
- package/node_modules/fdir/dist/index.cjs +588 -0
- package/node_modules/fdir/dist/index.d.cts +155 -0
- package/node_modules/fdir/dist/index.d.mts +155 -0
- package/node_modules/fdir/dist/index.mjs +570 -0
- package/node_modules/fdir/package.json +103 -0
- package/node_modules/forever-agent/package.json +10 -43
- package/node_modules/form-data/package.json +35 -68
- package/node_modules/fs-extra/LICENSE +1 -1
- package/node_modules/fs-extra/README.md +41 -8
- package/node_modules/fs-extra/lib/copy/copy-sync.js +176 -0
- package/node_modules/fs-extra/lib/copy/copy.js +130 -162
- package/node_modules/fs-extra/lib/copy/index.js +3 -2
- package/node_modules/fs-extra/lib/empty/index.js +11 -20
- package/node_modules/fs-extra/lib/ensure/file.js +42 -25
- package/node_modules/fs-extra/lib/ensure/index.js +15 -15
- package/node_modules/fs-extra/lib/ensure/link.js +36 -33
- package/node_modules/fs-extra/lib/ensure/symlink-paths.js +59 -57
- package/node_modules/fs-extra/lib/ensure/symlink-type.js +17 -14
- package/node_modules/fs-extra/lib/ensure/symlink.js +71 -42
- package/node_modules/fs-extra/lib/esm.mjs +68 -0
- package/node_modules/fs-extra/lib/fs/index.js +52 -15
- package/node_modules/fs-extra/lib/index.js +11 -23
- package/node_modules/fs-extra/lib/json/index.js +1 -1
- package/node_modules/fs-extra/lib/json/jsonfile.js +2 -3
- package/node_modules/fs-extra/lib/json/output-json-sync.js +4 -10
- package/node_modules/fs-extra/lib/json/output-json.js +5 -20
- package/node_modules/fs-extra/lib/mkdirs/index.js +9 -9
- package/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/node_modules/fs-extra/lib/move/index.js +3 -2
- package/node_modules/fs-extra/lib/move/move-sync.js +55 -0
- package/node_modules/fs-extra/lib/move/move.js +40 -46
- package/node_modules/fs-extra/lib/output-file/index.js +31 -0
- package/node_modules/fs-extra/lib/remove/index.js +11 -3
- package/node_modules/fs-extra/lib/util/async.js +29 -0
- package/node_modules/fs-extra/lib/util/stat.js +94 -107
- package/node_modules/fs-extra/lib/util/utimes.js +40 -66
- package/node_modules/fs-extra/package.json +37 -66
- package/node_modules/get-caller-file/package.json +22 -51
- package/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/node_modules/get-east-asian-width/index.js +30 -0
- package/node_modules/get-east-asian-width/license +9 -0
- package/node_modules/get-east-asian-width/lookup-data.js +21 -0
- package/node_modules/get-east-asian-width/lookup.js +138 -0
- package/node_modules/get-east-asian-width/package.json +71 -0
- package/node_modules/get-east-asian-width/readme.md +65 -0
- package/node_modules/get-east-asian-width/utilities.js +24 -0
- package/node_modules/getpass/package.json +7 -39
- package/node_modules/global-directory/index.d.ts +58 -0
- package/node_modules/global-directory/index.js +121 -0
- package/node_modules/global-directory/license +9 -0
- package/node_modules/global-directory/node_modules/ini/README.md +125 -0
- package/node_modules/global-directory/node_modules/ini/lib/ini.js +278 -0
- package/node_modules/global-directory/node_modules/ini/package.json +45 -0
- package/node_modules/global-directory/package.json +61 -0
- package/node_modules/global-directory/readme.md +60 -0
- package/node_modules/graceful-fs/LICENSE +1 -1
- package/node_modules/graceful-fs/README.md +11 -1
- package/node_modules/graceful-fs/clone.js +5 -1
- package/node_modules/graceful-fs/graceful-fs.js +151 -49
- package/node_modules/graceful-fs/package.json +28 -73
- package/node_modules/graceful-fs/polyfills.js +48 -35
- package/node_modules/gunzip-maybe/index.js +1 -1
- package/node_modules/gunzip-maybe/package.json +23 -51
- package/node_modules/gunzip-maybe/test.js +14 -0
- package/node_modules/har-schema/package.json +34 -66
- package/node_modules/har-validator/README.md +22 -16
- package/node_modules/har-validator/package.json +26 -59
- package/node_modules/hosted-git-info/README.md +15 -10
- package/node_modules/hosted-git-info/lib/from-url.js +122 -0
- package/node_modules/hosted-git-info/lib/hosts.js +229 -0
- package/node_modules/hosted-git-info/lib/index.js +227 -0
- package/node_modules/hosted-git-info/lib/parse-url.js +79 -0
- package/node_modules/hosted-git-info/package.json +43 -58
- package/node_modules/http-signature/package.json +25 -63
- package/node_modules/inherits/package.json +12 -52
- package/node_modules/ini/ini.js +49 -37
- package/node_modules/ini/package.json +23 -55
- package/node_modules/is-deflate/package.json +19 -48
- package/node_modules/is-gzip/package.json +13 -45
- package/node_modules/is-in-ci/cli.js +5 -0
- package/node_modules/is-in-ci/index.d.ts +15 -0
- package/node_modules/is-in-ci/index.js +11 -0
- package/node_modules/is-in-ci/license +9 -0
- package/node_modules/is-in-ci/package.json +49 -0
- package/node_modules/is-in-ci/readme.md +44 -0
- package/node_modules/is-installed-globally/index.d.ts +19 -0
- package/node_modules/is-installed-globally/index.js +19 -4
- package/node_modules/is-installed-globally/license +1 -1
- package/node_modules/is-installed-globally/node_modules/is-path-inside/index.d.ts +25 -0
- package/node_modules/is-installed-globally/node_modules/is-path-inside/index.js +12 -0
- package/node_modules/is-installed-globally/node_modules/is-path-inside/license +9 -0
- package/node_modules/is-installed-globally/node_modules/is-path-inside/package.json +38 -0
- package/node_modules/is-installed-globally/node_modules/is-path-inside/readme.md +59 -0
- package/node_modules/is-installed-globally/package.json +58 -78
- package/node_modules/is-installed-globally/readme.md +5 -13
- package/node_modules/is-npm/index.d.ts +82 -10
- package/node_modules/is-npm/index.js +9 -7
- package/node_modules/is-npm/license +1 -1
- package/node_modules/is-npm/package.json +44 -67
- package/node_modules/is-npm/readme.md +82 -13
- package/node_modules/is-typedarray/package.json +15 -46
- package/node_modules/isarray/package.json +16 -45
- package/node_modules/isexe/LICENSE.md +55 -0
- package/node_modules/isexe/README.md +52 -23
- package/node_modules/isexe/dist/commonjs/index.d.ts +14 -0
- package/node_modules/isexe/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/node_modules/isexe/dist/commonjs/index.js.map +1 -0
- package/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/node_modules/isexe/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/isexe/dist/commonjs/options.d.ts +32 -0
- package/node_modules/isexe/dist/commonjs/options.d.ts.map +1 -0
- package/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/node_modules/isexe/dist/commonjs/options.js.map +1 -0
- package/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/node_modules/isexe/dist/commonjs/posix.d.ts +18 -0
- package/node_modules/isexe/dist/commonjs/posix.d.ts.map +1 -0
- package/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/node_modules/isexe/dist/commonjs/posix.js.map +1 -0
- package/node_modules/isexe/dist/commonjs/win32.d.ts +18 -0
- package/node_modules/isexe/dist/commonjs/win32.d.ts.map +1 -0
- package/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/node_modules/isexe/dist/commonjs/win32.js.map +1 -0
- package/node_modules/isexe/dist/esm/index.d.ts +14 -0
- package/node_modules/isexe/dist/esm/index.d.ts.map +1 -0
- package/node_modules/isexe/dist/esm/index.js +16 -0
- package/node_modules/isexe/dist/esm/index.js.map +1 -0
- package/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/node_modules/isexe/dist/esm/index.min.js.map +7 -0
- package/node_modules/isexe/dist/esm/options.d.ts +32 -0
- package/node_modules/isexe/dist/esm/options.d.ts.map +1 -0
- package/node_modules/isexe/dist/esm/options.js +2 -0
- package/node_modules/isexe/dist/esm/options.js.map +1 -0
- package/node_modules/isexe/dist/esm/package.json +3 -0
- package/node_modules/isexe/dist/esm/posix.d.ts +18 -0
- package/node_modules/isexe/dist/esm/posix.d.ts.map +1 -0
- package/node_modules/isexe/dist/esm/posix.js +62 -0
- package/node_modules/isexe/dist/esm/posix.js.map +1 -0
- package/node_modules/isexe/dist/esm/win32.d.ts +18 -0
- package/node_modules/isexe/dist/esm/win32.d.ts.map +1 -0
- package/node_modules/isexe/dist/esm/win32.js +58 -0
- package/node_modules/isexe/dist/esm/win32.js.map +1 -0
- package/node_modules/isexe/package.json +68 -58
- package/node_modules/isstream/package.json +20 -48
- package/node_modules/jsbn/package.json +11 -43
- package/node_modules/json-schema/LICENSE +195 -0
- package/node_modules/json-schema/README.md +2 -4
- package/node_modules/json-schema/lib/links.js +1 -2
- package/node_modules/json-schema/lib/validate.js +7 -9
- package/node_modules/json-schema/package.json +24 -71
- package/node_modules/json-schema-traverse/package.json +20 -47
- package/node_modules/json-stringify-safe/package.json +15 -51
- package/node_modules/jsonfile/README.md +109 -47
- package/node_modules/jsonfile/index.js +45 -91
- package/node_modules/jsonfile/package.json +19 -50
- package/node_modules/jsonfile/utils.js +18 -0
- package/node_modules/jsprim/CHANGES.md +4 -0
- package/node_modules/jsprim/package.json +18 -47
- package/node_modules/ky/distribution/core/Ky.d.ts +8 -0
- package/node_modules/ky/distribution/core/Ky.js +395 -0
- package/node_modules/ky/distribution/core/Ky.js.map +1 -0
- package/node_modules/ky/distribution/core/constants.d.ts +205 -0
- package/node_modules/ky/distribution/core/constants.js +185 -0
- package/node_modules/ky/distribution/core/constants.js.map +1 -0
- package/node_modules/ky/distribution/errors/ForceRetryError.d.ts +12 -0
- package/node_modules/ky/distribution/errors/ForceRetryError.js +23 -0
- package/node_modules/ky/distribution/errors/ForceRetryError.js.map +1 -0
- package/node_modules/ky/distribution/errors/HTTPError.d.ts +9 -0
- package/node_modules/ky/distribution/errors/HTTPError.js +17 -0
- package/node_modules/ky/distribution/errors/HTTPError.js.map +1 -0
- package/node_modules/ky/distribution/errors/NonError.d.ts +10 -0
- package/node_modules/ky/distribution/errors/NonError.js +27 -0
- package/node_modules/ky/distribution/errors/NonError.js.map +1 -0
- package/node_modules/ky/distribution/errors/TimeoutError.d.ts +5 -0
- package/node_modules/ky/distribution/errors/TimeoutError.js +9 -0
- package/node_modules/ky/distribution/errors/TimeoutError.js.map +1 -0
- package/node_modules/ky/distribution/index.d.ts +14 -0
- package/node_modules/ky/distribution/index.js +31 -0
- package/node_modules/ky/distribution/index.js.map +1 -0
- package/node_modules/ky/distribution/types/ResponsePromise.d.ts +40 -0
- package/node_modules/ky/distribution/types/ResponsePromise.js +2 -0
- package/node_modules/ky/distribution/types/ResponsePromise.js.map +1 -0
- package/node_modules/ky/distribution/types/common.d.ts +7 -0
- package/node_modules/ky/distribution/types/common.js +2 -0
- package/node_modules/ky/distribution/types/common.js.map +1 -0
- package/node_modules/ky/distribution/types/hooks.d.ts +247 -0
- package/node_modules/ky/distribution/types/hooks.js +2 -0
- package/node_modules/ky/distribution/types/hooks.js.map +1 -0
- package/node_modules/ky/distribution/types/ky.d.ts +175 -0
- package/node_modules/ky/distribution/types/ky.js +2 -0
- package/node_modules/ky/distribution/types/ky.js.map +1 -0
- package/node_modules/ky/distribution/types/options.d.ts +352 -0
- package/node_modules/ky/distribution/types/options.js +2 -0
- package/node_modules/ky/distribution/types/options.js.map +1 -0
- package/node_modules/ky/distribution/types/request.d.ts +3 -0
- package/node_modules/ky/distribution/types/request.js +2 -0
- package/node_modules/ky/distribution/types/request.js.map +1 -0
- package/node_modules/ky/distribution/types/response.d.ts +3 -0
- package/node_modules/ky/distribution/types/response.js +2 -0
- package/node_modules/ky/distribution/types/response.js.map +1 -0
- package/node_modules/ky/distribution/types/retry.d.ts +159 -0
- package/node_modules/ky/distribution/types/retry.js +2 -0
- package/node_modules/ky/distribution/types/retry.js.map +1 -0
- package/node_modules/ky/distribution/utils/body.d.ts +4 -0
- package/node_modules/ky/distribution/utils/body.js +103 -0
- package/node_modules/ky/distribution/utils/body.js.map +1 -0
- package/node_modules/ky/distribution/utils/delay.d.ts +5 -0
- package/node_modules/ky/distribution/utils/delay.js +18 -0
- package/node_modules/ky/distribution/utils/delay.js.map +1 -0
- package/node_modules/ky/distribution/utils/is.d.ts +1 -0
- package/node_modules/ky/distribution/utils/is.js +3 -0
- package/node_modules/ky/distribution/utils/is.js.map +1 -0
- package/node_modules/ky/distribution/utils/merge.d.ts +6 -0
- package/node_modules/ky/distribution/utils/merge.js +154 -0
- package/node_modules/ky/distribution/utils/merge.js.map +1 -0
- package/node_modules/ky/distribution/utils/normalize.d.ts +5 -0
- package/node_modules/ky/distribution/utils/normalize.js +37 -0
- package/node_modules/ky/distribution/utils/normalize.js.map +1 -0
- package/node_modules/ky/distribution/utils/options.d.ts +3 -0
- package/node_modules/ky/distribution/utils/options.js +41 -0
- package/node_modules/ky/distribution/utils/options.js.map +1 -0
- package/node_modules/ky/distribution/utils/timeout.d.ts +5 -0
- package/node_modules/ky/distribution/utils/timeout.js +20 -0
- package/node_modules/ky/distribution/utils/timeout.js.map +1 -0
- package/node_modules/ky/distribution/utils/type-guards.d.ts +88 -0
- package/node_modules/ky/distribution/utils/type-guards.js +97 -0
- package/node_modules/ky/distribution/utils/type-guards.js.map +1 -0
- package/node_modules/ky/distribution/utils/types.d.ts +6 -0
- package/node_modules/ky/distribution/utils/types.js +2 -0
- package/node_modules/ky/distribution/utils/types.js.map +1 -0
- package/node_modules/ky/license +9 -0
- package/node_modules/ky/package.json +116 -0
- package/node_modules/ky/readme.md +1356 -0
- package/node_modules/latest-version/index.d.ts +18 -35
- package/node_modules/latest-version/index.js +5 -8
- package/node_modules/latest-version/license +1 -1
- package/node_modules/latest-version/package.json +47 -72
- package/node_modules/latest-version/readme.md +12 -20
- package/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/lru-cache/README.md +420 -117
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
- package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
- package/node_modules/lru-cache/package.json +141 -54
- package/node_modules/mime-db/HISTORY.md +76 -0
- package/node_modules/mime-db/LICENSE +19 -18
- package/node_modules/mime-db/README.md +9 -9
- package/node_modules/mime-db/db.json +608 -58
- package/node_modules/mime-db/index.js +1 -0
- package/node_modules/mime-db/package.json +34 -75
- package/node_modules/mime-types/HISTORY.md +83 -2
- package/node_modules/mime-types/README.md +8 -8
- package/node_modules/mime-types/package.json +27 -70
- package/node_modules/minimist/.eslintrc +29 -0
- package/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/node_modules/minimist/.nycrc +14 -0
- package/node_modules/minimist/CHANGELOG.md +298 -0
- package/node_modules/minimist/README.md +121 -0
- package/node_modules/minimist/example/parse.js +3 -1
- package/node_modules/minimist/index.js +255 -179
- package/node_modules/minimist/package.json +73 -70
- package/node_modules/minimist/test/all_bool.js +34 -0
- package/node_modules/minimist/test/bool.js +177 -0
- package/node_modules/minimist/test/dash.js +35 -16
- package/node_modules/minimist/test/default_bool.js +29 -12
- package/node_modules/minimist/test/dotted.js +16 -8
- package/node_modules/minimist/test/kv_short.js +32 -0
- package/node_modules/minimist/test/long.js +28 -26
- package/node_modules/minimist/test/num.js +38 -0
- package/node_modules/minimist/test/parse.js +166 -275
- package/node_modules/minimist/test/parse_modified.js +7 -5
- package/node_modules/minimist/test/proto.js +64 -0
- package/node_modules/minimist/test/short.js +57 -55
- package/node_modules/minimist/test/stop_early.js +17 -0
- package/node_modules/minimist/test/unknown.js +104 -0
- package/node_modules/minimist/test/whitespace.js +6 -4
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +470 -251
- package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +64 -59
- package/node_modules/minizlib/LICENSE +3 -3
- package/node_modules/minizlib/README.md +14 -3
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/minizlib/package.json +62 -53
- package/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/node_modules/node-gyp/CHANGELOG.md +958 -63
- package/node_modules/node-gyp/CODE_OF_CONDUCT.md +4 -0
- package/node_modules/node-gyp/CONTRIBUTING.md +11 -1
- package/node_modules/node-gyp/README.md +99 -47
- package/node_modules/node-gyp/SECURITY.md +2 -0
- package/node_modules/node-gyp/addon.gypi +55 -15
- package/node_modules/node-gyp/bin/node-gyp.js +36 -32
- package/node_modules/node-gyp/commitlint.config.mjs +3 -0
- package/node_modules/node-gyp/eslint.config.js +3 -0
- package/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/node_modules/node-gyp/gyp/LICENSE +1 -0
- package/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/node_modules/node-gyp/gyp/docs/GypVsCMake.md +116 -0
- package/node_modules/node-gyp/gyp/docs/Hacking.md +46 -0
- package/node_modules/node-gyp/gyp/docs/InputFormatReference.md +1083 -0
- package/node_modules/node-gyp/gyp/docs/LanguageSpecification.md +430 -0
- package/node_modules/node-gyp/gyp/docs/README.md +27 -0
- package/node_modules/node-gyp/gyp/docs/Testing.md +450 -0
- package/node_modules/node-gyp/gyp/docs/UserDocumentation.md +965 -0
- package/node_modules/node-gyp/gyp/gyp.bat +0 -0
- package/node_modules/node-gyp/gyp/gyp_main.py +25 -30
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +326 -299
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +200 -202
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1022 -843
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1513 -1455
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +53 -52
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +136 -131
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +232 -232
- package/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +574 -422
- package/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +657 -508
- package/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/__init__.cpython-312.pyc +0 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/common.cpython-312.pyc +0 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/input.cpython-312.pyc +0 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/simple_copy.cpython-312.pyc +0 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/xcode_emulation.cpython-312.pyc +0 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/common.py +556 -465
- package/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +163 -49
- package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +142 -135
- package/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +100 -93
- package/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +40 -39
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/__init__.cpython-312.pyc +0 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/make.cpython-312.pyc +0 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +654 -592
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1076 -1004
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1184 -1094
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +96 -83
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +82 -78
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +404 -374
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +35 -41
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +27 -28
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2242 -1752
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3608 -3168
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +34 -30
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2833 -2302
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +67 -36
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1293 -1205
- package/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +14 -11
- package/node_modules/node-gyp/gyp/pylib/gyp/input.py +2840 -2645
- package/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +88 -79
- package/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +739 -588
- package/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1181 -1030
- package/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +69 -55
- package/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +31 -20
- package/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +348 -304
- package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1837 -1561
- package/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +274 -243
- package/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +2827 -2569
- package/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +39 -44
- package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/__pycache__/__init__.cpython-312.pyc +0 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/__pycache__/_structures.cpython-312.pyc +0 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/__pycache__/version.cpython-312.pyc +0 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +807 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/tags.py +541 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/node_modules/node-gyp/gyp/pyproject.toml +116 -0
- package/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/node_modules/node-gyp/gyp/test_gyp.py +260 -0
- package/node_modules/node-gyp/lib/Find-VisualStudio.cs +8 -1
- package/node_modules/node-gyp/lib/build.js +122 -96
- package/node_modules/node-gyp/lib/clean.js +5 -5
- package/node_modules/node-gyp/lib/configure.js +211 -269
- package/node_modules/node-gyp/lib/create-config-gypi.js +158 -0
- package/node_modules/node-gyp/lib/download.js +86 -0
- package/node_modules/node-gyp/lib/find-node-directory.js +5 -5
- package/node_modules/node-gyp/lib/find-python.js +158 -175
- package/node_modules/node-gyp/lib/find-visualstudio.js +315 -143
- package/node_modules/node-gyp/lib/install.js +288 -327
- package/node_modules/node-gyp/lib/list.js +14 -15
- package/node_modules/node-gyp/lib/log.js +168 -0
- package/node_modules/node-gyp/lib/node-gyp.js +156 -166
- package/node_modules/node-gyp/lib/process-release.js +35 -38
- package/node_modules/node-gyp/lib/rebuild.js +1 -2
- package/node_modules/node-gyp/lib/remove.js +18 -21
- package/node_modules/node-gyp/lib/util.js +62 -45
- package/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/node_modules/node-gyp/package.json +37 -71
- package/node_modules/node-gyp/release-please-config.json +40 -0
- package/node_modules/node-gyp/src/win_delay_load_hook.cc +3 -1
- package/node_modules/nopt/README.md +7 -8
- package/node_modules/nopt/bin/nopt.js +28 -53
- package/node_modules/nopt/lib/nopt-lib.js +478 -0
- package/node_modules/nopt/lib/nopt.js +23 -427
- package/node_modules/nopt/lib/type-defs.js +86 -0
- package/node_modules/nopt/package.json +40 -48
- package/node_modules/npm-package-arg/LICENSE +1 -1
- package/node_modules/npm-package-arg/README.md +30 -9
- package/node_modules/npm-package-arg/lib/npa.js +479 -0
- package/node_modules/npm-package-arg/package.json +46 -59
- package/node_modules/npm-path/bin/npm-path +0 -0
- package/node_modules/npm-path/node_modules/isexe/README.md +51 -0
- package/node_modules/npm-path/node_modules/isexe/package.json +31 -0
- package/node_modules/npm-path/node_modules/which/package.json +16 -51
- package/node_modules/npm-path/package.json +25 -54
- package/node_modules/oauth-sign/package.json +12 -45
- package/node_modules/once/package.json +14 -54
- package/node_modules/package-json/index.d.ts +266 -162
- package/node_modules/package-json/index.js +31 -54
- package/node_modules/package-json/license +1 -1
- package/node_modules/package-json/package.json +51 -76
- package/node_modules/package-json/readme.md +25 -37
- package/node_modules/pako/package.json +27 -64
- package/node_modules/peek-stream/package.json +15 -42
- package/node_modules/performance-now/package.json +16 -46
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +749 -0
- package/node_modules/picomatch/index.js +17 -0
- package/node_modules/picomatch/lib/constants.js +184 -0
- package/node_modules/picomatch/lib/parse.js +1386 -0
- package/node_modules/picomatch/lib/picomatch.js +349 -0
- package/node_modules/picomatch/lib/scan.js +391 -0
- package/node_modules/picomatch/lib/utils.js +72 -0
- package/node_modules/picomatch/package.json +82 -0
- package/node_modules/picomatch/posix.js +3 -0
- package/node_modules/proc-log/LICENSE +15 -0
- package/node_modules/proc-log/README.md +226 -0
- package/node_modules/proc-log/lib/index.js +158 -0
- package/node_modules/proc-log/package.json +46 -0
- package/node_modules/process-nextick-args/package.json +15 -40
- package/node_modules/promise-each/package.json +15 -47
- package/node_modules/proto-list/README.md +3 -0
- package/node_modules/proto-list/package.json +18 -0
- package/node_modules/proto-list/proto-list.js +88 -0
- package/node_modules/proto-list/test/basic.js +61 -0
- package/node_modules/psl/README.md +79 -34
- package/node_modules/psl/SECURITY.md +13 -0
- package/node_modules/psl/data/rules.js +9778 -0
- package/node_modules/psl/dist/psl.cjs +1 -0
- package/node_modules/psl/dist/psl.mjs +10008 -0
- package/node_modules/psl/dist/psl.umd.cjs +1 -0
- package/node_modules/psl/index.js +60 -82
- package/node_modules/psl/package.json +40 -66
- package/node_modules/psl/types/index.d.ts +52 -0
- package/node_modules/psl/types/test.ts +14 -0
- package/node_modules/psl/types/tsconfig.json +22 -0
- package/node_modules/psl/vite.config.js +20 -0
- package/node_modules/pump/package.json +10 -45
- package/node_modules/pumpify/package.json +15 -42
- package/node_modules/punycode/README.md +29 -3
- package/node_modules/punycode/package.json +32 -59
- package/node_modules/punycode/punycode.es6.js +25 -22
- package/node_modules/punycode/punycode.js +25 -22
- package/node_modules/pupa/index.d.ts +98 -0
- package/node_modules/pupa/index.js +119 -0
- package/node_modules/pupa/license +9 -0
- package/node_modules/pupa/package.json +52 -0
- package/node_modules/pupa/readme.md +135 -0
- package/node_modules/qs/.editorconfig +14 -1
- package/node_modules/qs/.eslintrc +21 -3
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +36 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +62 -21
- package/node_modules/qs/dist/qs.js +45 -35
- package/node_modules/qs/lib/formats.js +1 -1
- package/node_modules/qs/lib/parse.js +10 -9
- package/node_modules/qs/lib/stringify.js +21 -14
- package/node_modules/qs/lib/utils.js +13 -11
- package/node_modules/qs/package.json +59 -76
- package/node_modules/qs/test/parse.js +88 -4
- package/node_modules/qs/test/stringify.js +51 -0
- package/node_modules/qs/test/utils.js +31 -0
- package/node_modules/rc/node_modules/strip-json-comments/package.json +42 -0
- package/node_modules/rc/package.json +18 -54
- package/node_modules/readable-stream/.travis.yml +9 -30
- package/node_modules/readable-stream/README.md +2 -2
- package/node_modules/readable-stream/lib/_stream_duplex.js +1 -1
- package/node_modules/readable-stream/lib/_stream_passthrough.js +1 -1
- package/node_modules/readable-stream/lib/_stream_readable.js +5 -5
- package/node_modules/readable-stream/lib/_stream_transform.js +1 -1
- package/node_modules/readable-stream/lib/_stream_writable.js +7 -9
- package/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -1
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +14 -4
- package/node_modules/readable-stream/package.json +22 -57
- package/node_modules/registry-auth-token/CHANGELOG.md +66 -3
- package/node_modules/registry-auth-token/README.md +14 -8
- package/node_modules/registry-auth-token/index.d.ts +67 -0
- package/node_modules/registry-auth-token/index.js +64 -30
- package/node_modules/registry-auth-token/package.json +25 -54
- package/node_modules/registry-auth-token/registry-url.d.ts +15 -0
- package/node_modules/registry-auth-token/registry-url.js +5 -3
- package/node_modules/registry-url/index.d.ts +17 -27
- package/node_modules/registry-url/index.js +3 -8
- package/node_modules/registry-url/license +1 -1
- package/node_modules/registry-url/package.json +44 -74
- package/node_modules/registry-url/readme.md +14 -9
- package/node_modules/request/CHANGELOG.md +8 -0
- package/node_modules/request/README.md +81 -45
- package/node_modules/request/index.js +1 -1
- package/node_modules/request/lib/auth.js +1 -1
- package/node_modules/request/lib/getProxyFromURI.js +1 -1
- package/node_modules/request/lib/har.js +1 -1
- package/node_modules/request/package.json +33 -64
- package/node_modules/request/request.js +13 -11
- package/node_modules/safe-buffer/package.json +5 -38
- package/node_modules/safer-buffer/package.json +13 -42
- package/node_modules/semver/README.md +298 -61
- package/node_modules/semver/bin/semver.js +119 -98
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +577 -0
- package/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +93 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +65 -55
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +5 -4
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/sshpk/Jenkinsfile +86 -0
- package/node_modules/sshpk/bin/sshpk-conv +6 -6
- package/node_modules/sshpk/lib/formats/pkcs8.js +24 -12
- package/node_modules/sshpk/lib/formats/putty.js +99 -4
- package/node_modules/sshpk/lib/private-key.js +1 -0
- package/node_modules/sshpk/package.json +30 -67
- package/node_modules/stream-shift/.github/workflows/test.yml +23 -0
- package/node_modules/stream-shift/index.js +4 -3
- package/node_modules/stream-shift/package.json +13 -41
- package/node_modules/stream-shift/test.js +4 -4
- package/node_modules/streamx/LICENSE +21 -0
- package/node_modules/streamx/README.md +550 -0
- package/node_modules/streamx/index.d.ts +198 -0
- package/node_modules/streamx/index.js +1314 -0
- package/node_modules/streamx/lib/errors.d.ts +13 -0
- package/node_modules/streamx/lib/errors.js +47 -0
- package/node_modules/streamx/package.json +51 -0
- package/node_modules/streamx/runtime.d.ts +55 -0
- package/node_modules/string-width/index.d.ts +39 -0
- package/node_modules/string-width/index.js +66 -21
- package/node_modules/string-width/license +5 -17
- package/node_modules/string-width/node_modules/ansi-regex/index.d.ts +33 -0
- package/node_modules/string-width/node_modules/ansi-regex/index.js +14 -0
- package/node_modules/string-width/node_modules/ansi-regex/license +9 -0
- package/node_modules/string-width/node_modules/ansi-regex/package.json +61 -0
- package/node_modules/string-width/node_modules/ansi-regex/readme.md +66 -0
- package/node_modules/string-width/node_modules/strip-ansi/index.js +19 -0
- package/node_modules/string-width/node_modules/strip-ansi/license +9 -0
- package/node_modules/string-width/node_modules/strip-ansi/package.json +59 -0
- package/node_modules/string-width/node_modules/strip-ansi/readme.md +37 -0
- package/node_modules/string-width/package.json +62 -87
- package/node_modules/string-width/readme.md +40 -16
- package/node_modules/string_decoder/package.json +13 -44
- package/node_modules/strip-ansi/index.js +2 -4
- package/node_modules/strip-ansi/license +4 -16
- package/node_modules/strip-ansi/package.json +52 -103
- package/node_modules/strip-ansi/readme.md +20 -7
- package/node_modules/stubborn-fs/dist/constants.d.ts +11 -0
- package/node_modules/stubborn-fs/dist/constants.js +16 -0
- package/node_modules/stubborn-fs/dist/handlers.d.ts +7 -0
- package/node_modules/stubborn-fs/dist/handlers.js +36 -0
- package/node_modules/stubborn-fs/dist/index.d.ts +274 -0
- package/node_modules/stubborn-fs/dist/index.js +52 -0
- package/node_modules/stubborn-fs/license +21 -0
- package/node_modules/stubborn-fs/package.json +32 -0
- package/node_modules/stubborn-fs/readme.md +69 -0
- package/node_modules/stubborn-utils/dist/attemptify_async.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/attemptify_async.js +10 -0
- package/node_modules/stubborn-utils/dist/attemptify_sync.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/attemptify_sync.js +15 -0
- package/node_modules/stubborn-utils/dist/constants.d.ts +2 -0
- package/node_modules/stubborn-utils/dist/constants.js +4 -0
- package/node_modules/stubborn-utils/dist/index.d.ts +9 -0
- package/node_modules/stubborn-utils/dist/index.js +7 -0
- package/node_modules/stubborn-utils/dist/retryify_async.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/retryify_async.js +29 -0
- package/node_modules/stubborn-utils/dist/retryify_sync.d.ts +3 -0
- package/node_modules/stubborn-utils/dist/retryify_sync.js +25 -0
- package/node_modules/stubborn-utils/dist/types.d.ts +44 -0
- package/node_modules/stubborn-utils/dist/types.js +2 -0
- package/node_modules/stubborn-utils/license +21 -0
- package/node_modules/stubborn-utils/package.json +30 -0
- package/node_modules/stubborn-utils/readme.md +139 -0
- package/node_modules/tar/LICENSE.md +55 -0
- package/node_modules/tar/README.md +506 -236
- package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/create.js +82 -0
- package/node_modules/tar/dist/commonjs/create.js.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/commonjs/header.d.ts +53 -0
- package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/header.js +347 -0
- package/node_modules/tar/dist/commonjs/header.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
- package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/index.js +64 -0
- package/node_modules/tar/dist/commonjs/index.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/list.js +145 -0
- package/node_modules/tar/dist/commonjs/list.js.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/options.d.ts +596 -0
- package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/options.js +66 -0
- package/node_modules/tar/dist/commonjs/options.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts +105 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/package.json +3 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts +85 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/parse.js +610 -0
- package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.js +158 -0
- package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
- package/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/types.d.ts +16 -0
- package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/types.js +70 -0
- package/node_modules/tar/dist/commonjs/types.js.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/update.js +33 -0
- package/node_modules/tar/dist/commonjs/update.js.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/create.d.ts +3 -0
- package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/create.js +76 -0
- package/node_modules/tar/dist/esm/create.js.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/esm/extract.d.ts +3 -0
- package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/extract.js +49 -0
- package/node_modules/tar/dist/esm/extract.js.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/esm/header.d.ts +53 -0
- package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/header.js +310 -0
- package/node_modules/tar/dist/esm/header.js.map +1 -0
- package/node_modules/tar/dist/esm/index.d.ts +20 -0
- package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/index.js +20 -0
- package/node_modules/tar/dist/esm/index.js.map +1 -0
- package/node_modules/tar/dist/esm/index.min.js +4 -0
- package/node_modules/tar/dist/esm/index.min.js.map +7 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/esm/list.d.ts +7 -0
- package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/list.js +105 -0
- package/node_modules/tar/dist/esm/list.js.map +1 -0
- package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
- package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/make-command.js +48 -0
- package/node_modules/tar/dist/esm/make-command.js.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/esm/options.d.ts +596 -0
- package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/options.js +54 -0
- package/node_modules/tar/dist/esm/options.js.map +1 -0
- package/node_modules/tar/dist/esm/pack.d.ts +105 -0
- package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pack.js +502 -0
- package/node_modules/tar/dist/esm/pack.js.map +1 -0
- package/node_modules/tar/dist/esm/package.json +3 -0
- package/node_modules/tar/dist/esm/parse.d.ts +85 -0
- package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/parse.js +606 -0
- package/node_modules/tar/dist/esm/parse.js.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/esm/pax.d.ts +26 -0
- package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pax.js +154 -0
- package/node_modules/tar/dist/esm/pax.js.map +1 -0
- package/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
- package/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/node_modules/tar/dist/esm/process-umask.js.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/replace.d.ts +2 -0
- package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/replace.js +221 -0
- package/node_modules/tar/dist/esm/replace.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/esm/types.d.ts +16 -0
- package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/types.js +65 -0
- package/node_modules/tar/dist/esm/types.js.map +1 -0
- package/node_modules/tar/dist/esm/unpack.d.ts +101 -0
- package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/unpack.js +891 -0
- package/node_modules/tar/dist/esm/unpack.js.map +1 -0
- package/node_modules/tar/dist/esm/update.d.ts +2 -0
- package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/update.js +30 -0
- package/node_modules/tar/dist/esm/update.js.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
- package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
- package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/winchars.js +9 -0
- package/node_modules/tar/dist/esm/winchars.js.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
- package/node_modules/tar/package.json +283 -67
- package/node_modules/tar-fs/README.md +25 -34
- package/node_modules/tar-fs/index.js +234 -182
- package/node_modules/tar-fs/node_modules/pump/.github/FUNDING.yml +2 -0
- package/node_modules/tar-fs/node_modules/pump/README.md +9 -0
- package/node_modules/tar-fs/node_modules/pump/SECURITY.md +5 -0
- package/node_modules/tar-fs/node_modules/pump/empty.js +1 -0
- package/node_modules/tar-fs/node_modules/pump/index.js +6 -2
- package/node_modules/tar-fs/node_modules/pump/package.json +15 -44
- package/node_modules/tar-fs/package.json +45 -55
- package/node_modules/tar-stream/README.md +35 -20
- package/node_modules/tar-stream/constants.js +14 -0
- package/node_modules/tar-stream/extract.js +353 -192
- package/node_modules/tar-stream/headers.js +203 -179
- package/node_modules/tar-stream/node_modules/b4a/LICENSE +201 -0
- package/node_modules/tar-stream/node_modules/b4a/README.md +153 -0
- package/node_modules/tar-stream/node_modules/b4a/browser.js +541 -0
- package/node_modules/tar-stream/node_modules/b4a/index.js +188 -0
- package/node_modules/tar-stream/node_modules/b4a/lib/ascii.js +31 -0
- package/node_modules/tar-stream/node_modules/b4a/lib/base64.js +64 -0
- package/node_modules/tar-stream/node_modules/b4a/lib/hex.js +51 -0
- package/node_modules/tar-stream/node_modules/b4a/lib/latin1.js +31 -0
- package/node_modules/tar-stream/node_modules/b4a/lib/utf16le.js +40 -0
- package/node_modules/tar-stream/node_modules/b4a/lib/utf8.js +144 -0
- package/node_modules/tar-stream/node_modules/b4a/package.json +51 -0
- package/node_modules/tar-stream/node_modules/b4a/react-native.js +5 -0
- package/node_modules/tar-stream/pack.js +226 -193
- package/node_modules/tar-stream/package.json +30 -76
- package/node_modules/teex/LICENSE +21 -0
- package/node_modules/teex/README.md +31 -0
- package/node_modules/teex/example.js +16 -0
- package/node_modules/teex/index.js +52 -0
- package/node_modules/teex/package.json +26 -0
- package/node_modules/teex/test.js +68 -0
- package/node_modules/text-decoder/LICENSE +201 -0
- package/node_modules/text-decoder/README.md +36 -0
- package/node_modules/text-decoder/index.js +64 -0
- package/node_modules/text-decoder/lib/pass-through-decoder.js +19 -0
- package/node_modules/text-decoder/lib/utf8-decoder.js +185 -0
- package/node_modules/text-decoder/node_modules/b4a/LICENSE +201 -0
- package/node_modules/text-decoder/node_modules/b4a/README.md +153 -0
- package/node_modules/text-decoder/node_modules/b4a/browser.js +541 -0
- package/node_modules/text-decoder/node_modules/b4a/index.js +188 -0
- package/node_modules/text-decoder/node_modules/b4a/lib/ascii.js +31 -0
- package/node_modules/text-decoder/node_modules/b4a/lib/base64.js +64 -0
- package/node_modules/text-decoder/node_modules/b4a/lib/hex.js +51 -0
- package/node_modules/text-decoder/node_modules/b4a/lib/latin1.js +31 -0
- package/node_modules/text-decoder/node_modules/b4a/lib/utf16le.js +40 -0
- package/node_modules/text-decoder/node_modules/b4a/lib/utf8.js +144 -0
- package/node_modules/text-decoder/node_modules/b4a/package.json +51 -0
- package/node_modules/text-decoder/node_modules/b4a/react-native.js +5 -0
- package/node_modules/text-decoder/package.json +39 -0
- package/node_modules/through2/package.json +18 -55
- package/node_modules/tinyglobby/LICENSE +21 -0
- package/node_modules/tinyglobby/README.md +25 -0
- package/node_modules/tinyglobby/dist/index.cjs +335 -0
- package/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/node_modules/tinyglobby/dist/index.mjs +307 -0
- package/node_modules/tinyglobby/package.json +70 -0
- package/node_modules/tough-cookie/README.md +24 -4
- package/node_modules/tough-cookie/lib/cookie.js +54 -3
- package/node_modules/tough-cookie/lib/memstore.js +5 -0
- package/node_modules/tough-cookie/lib/store.js +4 -0
- package/node_modules/tough-cookie/lib/version.js +2 -0
- package/node_modules/tough-cookie/package.json +42 -58
- package/node_modules/tunnel-agent/package.json +12 -45
- package/node_modules/tweetnacl/package.json +35 -63
- package/node_modules/undici/LICENSE +21 -0
- package/node_modules/undici/README.md +473 -0
- package/node_modules/undici/docs/docs/api/Agent.md +80 -0
- package/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
- package/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
- package/node_modules/undici/docs/docs/api/Client.md +277 -0
- package/node_modules/undici/docs/docs/api/Connector.md +115 -0
- package/node_modules/undici/docs/docs/api/ContentType.md +57 -0
- package/node_modules/undici/docs/docs/api/Cookies.md +101 -0
- package/node_modules/undici/docs/docs/api/Debug.md +62 -0
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +204 -0
- package/node_modules/undici/docs/docs/api/DispatchInterceptor.md +60 -0
- package/node_modules/undici/docs/docs/api/Dispatcher.md +1347 -0
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +162 -0
- package/node_modules/undici/docs/docs/api/Errors.md +49 -0
- package/node_modules/undici/docs/docs/api/EventSource.md +45 -0
- package/node_modules/undici/docs/docs/api/Fetch.md +52 -0
- package/node_modules/undici/docs/docs/api/MockAgent.md +540 -0
- package/node_modules/undici/docs/docs/api/MockClient.md +77 -0
- package/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
- package/node_modules/undici/docs/docs/api/MockPool.md +547 -0
- package/node_modules/undici/docs/docs/api/Pool.md +84 -0
- package/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
- package/node_modules/undici/docs/docs/api/ProxyAgent.md +131 -0
- package/node_modules/undici/docs/docs/api/RedirectHandler.md +96 -0
- package/node_modules/undici/docs/docs/api/RetryAgent.md +45 -0
- package/node_modules/undici/docs/docs/api/RetryHandler.md +117 -0
- package/node_modules/undici/docs/docs/api/Util.md +25 -0
- package/node_modules/undici/docs/docs/api/WebSocket.md +51 -0
- package/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
- package/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
- package/node_modules/undici/docs/docs/best-practices/mocking-request.md +136 -0
- package/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
- package/node_modules/undici/docs/docs/best-practices/writing-tests.md +20 -0
- package/node_modules/undici/index-fetch.js +35 -0
- package/node_modules/undici/index.d.ts +3 -0
- package/node_modules/undici/index.js +169 -0
- package/node_modules/undici/lib/api/abort-signal.js +57 -0
- package/node_modules/undici/lib/api/api-connect.js +108 -0
- package/node_modules/undici/lib/api/api-pipeline.js +251 -0
- package/node_modules/undici/lib/api/api-request.js +214 -0
- package/node_modules/undici/lib/api/api-stream.js +220 -0
- package/node_modules/undici/lib/api/api-upgrade.js +108 -0
- package/node_modules/undici/lib/api/index.js +7 -0
- package/node_modules/undici/lib/api/readable.js +385 -0
- package/node_modules/undici/lib/api/util.js +93 -0
- package/node_modules/undici/lib/core/connect.js +240 -0
- package/node_modules/undici/lib/core/constants.js +118 -0
- package/node_modules/undici/lib/core/diagnostics.js +202 -0
- package/node_modules/undici/lib/core/errors.js +425 -0
- package/node_modules/undici/lib/core/request.js +405 -0
- package/node_modules/undici/lib/core/symbols.js +67 -0
- package/node_modules/undici/lib/core/tree.js +152 -0
- package/node_modules/undici/lib/core/util.js +719 -0
- package/node_modules/undici/lib/dispatcher/agent.js +129 -0
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
- package/node_modules/undici/lib/dispatcher/client-h1.js +1487 -0
- package/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
- package/node_modules/undici/lib/dispatcher/client.js +623 -0
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +199 -0
- package/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
- package/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
- package/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
- package/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
- package/node_modules/undici/lib/dispatcher/pool.js +107 -0
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
- package/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/node_modules/undici/lib/global.js +32 -0
- package/node_modules/undici/lib/handler/decorator-handler.js +44 -0
- package/node_modules/undici/lib/handler/redirect-handler.js +232 -0
- package/node_modules/undici/lib/handler/retry-handler.js +374 -0
- package/node_modules/undici/lib/interceptor/dns.js +375 -0
- package/node_modules/undici/lib/interceptor/dump.js +123 -0
- package/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
- package/node_modules/undici/lib/interceptor/redirect.js +24 -0
- package/node_modules/undici/lib/interceptor/response-error.js +86 -0
- package/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/node_modules/undici/lib/llhttp/constants.js +278 -0
- package/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
- package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
- package/node_modules/undici/lib/llhttp/utils.js +15 -0
- package/node_modules/undici/lib/mock/mock-agent.js +160 -0
- package/node_modules/undici/lib/mock/mock-client.js +59 -0
- package/node_modules/undici/lib/mock/mock-errors.js +28 -0
- package/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
- package/node_modules/undici/lib/mock/mock-pool.js +59 -0
- package/node_modules/undici/lib/mock/mock-symbols.js +23 -0
- package/node_modules/undici/lib/mock/mock-utils.js +367 -0
- package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/node_modules/undici/lib/mock/pluralizer.js +29 -0
- package/node_modules/undici/lib/util/timers.js +423 -0
- package/node_modules/undici/lib/web/cache/cache.js +859 -0
- package/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/node_modules/undici/lib/web/cache/symbols.js +5 -0
- package/node_modules/undici/lib/web/cache/util.js +45 -0
- package/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/node_modules/undici/lib/web/cookies/index.js +184 -0
- package/node_modules/undici/lib/web/cookies/parse.js +310 -0
- package/node_modules/undici/lib/web/cookies/util.js +282 -0
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
- package/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
- package/node_modules/undici/lib/web/eventsource/util.js +37 -0
- package/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/node_modules/undici/lib/web/fetch/body.js +529 -0
- package/node_modules/undici/lib/web/fetch/constants.js +124 -0
- package/node_modules/undici/lib/web/fetch/data-url.js +744 -0
- package/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
- package/node_modules/undici/lib/web/fetch/file.js +126 -0
- package/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
- package/node_modules/undici/lib/web/fetch/formdata.js +252 -0
- package/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/node_modules/undici/lib/web/fetch/headers.js +687 -0
- package/node_modules/undici/lib/web/fetch/index.js +2272 -0
- package/node_modules/undici/lib/web/fetch/request.js +1037 -0
- package/node_modules/undici/lib/web/fetch/response.js +610 -0
- package/node_modules/undici/lib/web/fetch/symbols.js +9 -0
- package/node_modules/undici/lib/web/fetch/util.js +1632 -0
- package/node_modules/undici/lib/web/fetch/webidl.js +695 -0
- package/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
- package/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
- package/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
- package/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
- package/node_modules/undici/lib/web/fileapi/util.js +391 -0
- package/node_modules/undici/lib/web/websocket/connection.js +371 -0
- package/node_modules/undici/lib/web/websocket/constants.js +66 -0
- package/node_modules/undici/lib/web/websocket/events.js +329 -0
- package/node_modules/undici/lib/web/websocket/frame.js +96 -0
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
- package/node_modules/undici/lib/web/websocket/receiver.js +513 -0
- package/node_modules/undici/lib/web/websocket/sender.js +104 -0
- package/node_modules/undici/lib/web/websocket/symbols.js +12 -0
- package/node_modules/undici/lib/web/websocket/util.js +322 -0
- package/node_modules/undici/lib/web/websocket/websocket.js +595 -0
- package/node_modules/undici/package.json +160 -0
- package/node_modules/undici/scripts/strip-comments.js +8 -0
- package/node_modules/undici/types/README.md +6 -0
- package/node_modules/undici/types/agent.d.ts +31 -0
- package/node_modules/undici/types/api.d.ts +43 -0
- package/node_modules/undici/types/balanced-pool.d.ts +29 -0
- package/node_modules/undici/types/cache.d.ts +36 -0
- package/node_modules/undici/types/client.d.ts +125 -0
- package/node_modules/undici/types/connector.d.ts +34 -0
- package/node_modules/undici/types/content-type.d.ts +21 -0
- package/node_modules/undici/types/cookies.d.ts +28 -0
- package/node_modules/undici/types/diagnostics-channel.d.ts +66 -0
- package/node_modules/undici/types/dispatcher.d.ts +256 -0
- package/node_modules/undici/types/env-http-proxy-agent.d.ts +21 -0
- package/node_modules/undici/types/errors.d.ts +155 -0
- package/node_modules/undici/types/eventsource.d.ts +61 -0
- package/node_modules/undici/types/fetch.d.ts +209 -0
- package/node_modules/undici/types/file.d.ts +39 -0
- package/node_modules/undici/types/filereader.d.ts +54 -0
- package/node_modules/undici/types/formdata.d.ts +108 -0
- package/node_modules/undici/types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici/types/global-origin.d.ts +7 -0
- package/node_modules/undici/types/handlers.d.ts +15 -0
- package/node_modules/undici/types/header.d.ts +4 -0
- package/node_modules/undici/types/index.d.ts +71 -0
- package/node_modules/undici/types/interceptors.d.ts +32 -0
- package/node_modules/undici/types/mock-agent.d.ts +50 -0
- package/node_modules/undici/types/mock-client.d.ts +25 -0
- package/node_modules/undici/types/mock-errors.d.ts +12 -0
- package/node_modules/undici/types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici/types/mock-pool.d.ts +25 -0
- package/node_modules/undici/types/patch.d.ts +33 -0
- package/node_modules/undici/types/pool-stats.d.ts +19 -0
- package/node_modules/undici/types/pool.d.ts +39 -0
- package/node_modules/undici/types/proxy-agent.d.ts +29 -0
- package/node_modules/undici/types/readable.d.ts +65 -0
- package/node_modules/undici/types/retry-agent.d.ts +8 -0
- package/node_modules/undici/types/retry-handler.d.ts +116 -0
- package/node_modules/undici/types/util.d.ts +18 -0
- package/node_modules/undici/types/webidl.d.ts +228 -0
- package/node_modules/undici/types/websocket.d.ts +150 -0
- package/node_modules/universalify/README.md +2 -2
- package/node_modules/universalify/index.js +11 -12
- package/node_modules/universalify/package.json +19 -49
- package/node_modules/update-notifier/check.js +7 -9
- package/node_modules/update-notifier/index.js +3 -176
- package/node_modules/update-notifier/node_modules/chalk/license +1 -1
- package/node_modules/update-notifier/node_modules/chalk/package.json +81 -101
- package/node_modules/update-notifier/node_modules/chalk/readme.md +87 -104
- package/node_modules/update-notifier/node_modules/chalk/source/index.d.ts +325 -0
- package/node_modules/update-notifier/node_modules/chalk/source/index.js +225 -0
- package/node_modules/update-notifier/node_modules/chalk/source/utilities.js +33 -0
- package/node_modules/update-notifier/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/node_modules/update-notifier/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/node_modules/update-notifier/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/node_modules/update-notifier/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/node_modules/update-notifier/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/node_modules/update-notifier/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/node_modules/update-notifier/node_modules/xdg-basedir/index.d.ts +90 -0
- package/node_modules/update-notifier/node_modules/xdg-basedir/index.js +30 -0
- package/node_modules/update-notifier/node_modules/xdg-basedir/license +9 -0
- package/node_modules/update-notifier/node_modules/xdg-basedir/package.json +47 -0
- package/node_modules/update-notifier/node_modules/xdg-basedir/readme.md +70 -0
- package/node_modules/update-notifier/package.json +62 -96
- package/node_modules/update-notifier/readme.md +63 -63
- package/node_modules/update-notifier/update-notifier.js +177 -0
- package/node_modules/uri-js/LICENSE +11 -0
- package/node_modules/uri-js/README.md +22 -18
- package/node_modules/uri-js/dist/es5/uri.all.d.ts +59 -59
- package/node_modules/uri-js/dist/es5/uri.all.js +61 -7
- package/node_modules/uri-js/dist/es5/uri.all.js.map +1 -1
- package/node_modules/uri-js/dist/es5/uri.all.min.d.ts +59 -59
- package/node_modules/uri-js/dist/es5/uri.all.min.js +2 -2
- package/node_modules/uri-js/dist/es5/uri.all.min.js.map +1 -1
- package/node_modules/uri-js/dist/esnext/index.d.ts +1 -1
- package/node_modules/uri-js/dist/esnext/index.js +16 -12
- package/node_modules/uri-js/dist/esnext/index.js.map +1 -1
- package/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +3 -3
- package/node_modules/uri-js/dist/esnext/regexps-iri.js +2 -2
- package/node_modules/uri-js/dist/esnext/regexps-iri.js.map +0 -0
- package/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +4 -4
- package/node_modules/uri-js/dist/esnext/regexps-uri.js +41 -41
- package/node_modules/uri-js/dist/esnext/regexps-uri.js.map +0 -0
- package/node_modules/uri-js/dist/esnext/schemes/http.d.ts +3 -3
- package/node_modules/uri-js/dist/esnext/schemes/http.js +27 -26
- package/node_modules/uri-js/dist/esnext/schemes/http.js.map +1 -1
- package/node_modules/uri-js/dist/esnext/schemes/https.d.ts +3 -3
- package/node_modules/uri-js/dist/esnext/schemes/https.js +8 -8
- package/node_modules/uri-js/dist/esnext/schemes/https.js.map +0 -0
- package/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +12 -12
- package/node_modules/uri-js/dist/esnext/schemes/mailto.js +0 -0
- package/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +0 -0
- package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +7 -7
- package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +22 -22
- package/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +0 -0
- package/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +10 -10
- package/node_modules/uri-js/dist/esnext/schemes/urn.js +48 -48
- package/node_modules/uri-js/dist/esnext/schemes/urn.js.map +0 -0
- package/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +7 -0
- package/node_modules/uri-js/dist/esnext/schemes/ws.js +41 -0
- package/node_modules/uri-js/dist/esnext/schemes/ws.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +3 -0
- package/node_modules/uri-js/dist/esnext/schemes/wss.js +9 -0
- package/node_modules/uri-js/dist/esnext/schemes/wss.js.map +1 -0
- package/node_modules/uri-js/dist/esnext/uri.d.ts +59 -59
- package/node_modules/uri-js/dist/esnext/uri.js +2 -2
- package/node_modules/uri-js/dist/esnext/uri.js.map +1 -1
- package/node_modules/uri-js/dist/esnext/util.d.ts +6 -6
- package/node_modules/uri-js/dist/esnext/util.js +35 -35
- package/node_modules/uri-js/dist/esnext/util.js.map +0 -0
- package/node_modules/uri-js/package.json +47 -63
- package/node_modules/util-deprecate/package.json +14 -46
- package/node_modules/uuid/CHANGELOG.md +25 -18
- package/node_modules/uuid/README.md +27 -44
- package/node_modules/uuid/lib/bytesToUuid.js +10 -8
- package/node_modules/uuid/package.json +31 -79
- package/node_modules/uuid/v1.js +1 -1
- package/node_modules/validate-npm-package-name/README.md +4 -4
- package/node_modules/validate-npm-package-name/lib/builtin-modules.json +1 -0
- package/node_modules/validate-npm-package-name/lib/index.js +114 -0
- package/node_modules/validate-npm-package-name/package.json +45 -51
- package/node_modules/verror/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/verror/node_modules/core-util-is/README.md +3 -0
- package/node_modules/verror/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/verror/node_modules/core-util-is/package.json +32 -0
- package/node_modules/verror/package.json +20 -49
- package/node_modules/when-exit/dist/browser/index.d.ts +2 -0
- package/node_modules/when-exit/dist/browser/index.js +6 -0
- package/node_modules/when-exit/dist/browser/interceptor.d.ts +10 -0
- package/node_modules/when-exit/dist/browser/interceptor.js +27 -0
- package/node_modules/when-exit/dist/node/constants.d.ts +3 -0
- package/node_modules/when-exit/dist/node/constants.js +7 -0
- package/node_modules/when-exit/dist/node/index.d.ts +2 -0
- package/node_modules/when-exit/dist/node/index.js +6 -0
- package/node_modules/when-exit/dist/node/interceptor.d.ts +11 -0
- package/node_modules/when-exit/dist/node/interceptor.js +50 -0
- package/node_modules/when-exit/dist/node/signals.d.ts +2 -0
- package/node_modules/when-exit/dist/node/signals.js +13 -0
- package/node_modules/when-exit/dist/types.d.ts +3 -0
- package/node_modules/when-exit/dist/types.js +2 -0
- package/node_modules/when-exit/license +21 -0
- package/node_modules/when-exit/package.json +35 -0
- package/node_modules/when-exit/readme.md +41 -0
- package/node_modules/which/README.md +13 -16
- package/node_modules/which/bin/which.js +52 -0
- package/node_modules/which/lib/index.js +111 -0
- package/node_modules/which/package.json +38 -63
- package/node_modules/widest-line/index.d.ts +12 -0
- package/node_modules/widest-line/index.js +10 -7
- package/node_modules/widest-line/license +1 -1
- package/node_modules/widest-line/package.json +58 -84
- package/node_modules/widest-line/readme.md +4 -12
- package/node_modules/wrap-ansi/index.d.ts +41 -0
- package/node_modules/wrap-ansi/index.js +72 -36
- package/node_modules/wrap-ansi/license +1 -1
- package/node_modules/wrap-ansi/node_modules/ansi-regex/index.d.ts +9 -13
- package/node_modules/wrap-ansi/node_modules/ansi-regex/index.js +11 -7
- package/node_modules/wrap-ansi/node_modules/ansi-regex/license +1 -1
- package/node_modules/wrap-ansi/node_modules/ansi-regex/package.json +59 -85
- package/node_modules/wrap-ansi/node_modules/ansi-regex/readme.md +10 -22
- package/node_modules/wrap-ansi/node_modules/ansi-styles/index.d.ts +232 -193
- package/node_modules/wrap-ansi/node_modules/ansi-styles/index.js +190 -130
- package/node_modules/wrap-ansi/node_modules/ansi-styles/license +1 -1
- package/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +52 -86
- package/node_modules/wrap-ansi/node_modules/ansi-styles/readme.md +55 -48
- package/node_modules/wrap-ansi/node_modules/strip-ansi/index.d.ts +2 -4
- package/node_modules/wrap-ansi/node_modules/strip-ansi/index.js +18 -3
- package/node_modules/wrap-ansi/node_modules/strip-ansi/license +1 -1
- package/node_modules/wrap-ansi/node_modules/strip-ansi/package.json +57 -85
- package/node_modules/wrap-ansi/node_modules/strip-ansi/readme.md +6 -15
- package/node_modules/wrap-ansi/package.json +67 -93
- package/node_modules/wrap-ansi/readme.md +12 -34
- package/node_modules/wrappy/package.json +16 -47
- package/node_modules/xtend/package.json +25 -57
- package/node_modules/y18n/CHANGELOG.md +81 -2
- package/node_modules/y18n/README.md +31 -13
- package/node_modules/y18n/build/index.cjs +203 -0
- package/node_modules/y18n/build/lib/cjs.js +6 -0
- package/node_modules/y18n/build/lib/index.js +174 -0
- package/node_modules/y18n/build/lib/platform-shims/node.js +19 -0
- package/node_modules/y18n/index.mjs +8 -0
- package/node_modules/y18n/package.json +57 -56
- package/node_modules/yallist/LICENSE.md +63 -0
- package/node_modules/yallist/README.md +8 -7
- package/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
- package/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/node_modules/yallist/dist/commonjs/index.js.map +1 -0
- package/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/node_modules/yallist/dist/esm/index.d.ts +39 -0
- package/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/esm/index.js +379 -0
- package/node_modules/yallist/dist/esm/index.js.map +1 -0
- package/node_modules/yallist/dist/esm/package.json +3 -0
- package/node_modules/yallist/package.json +57 -53
- package/node_modules/yargs/LICENSE +2 -3
- package/node_modules/yargs/README.md +69 -27
- package/node_modules/yargs/browser.d.ts +5 -0
- package/node_modules/yargs/browser.mjs +7 -0
- package/node_modules/yargs/build/lib/argsert.js +62 -0
- package/node_modules/yargs/build/lib/command.js +479 -0
- package/node_modules/yargs/build/lib/completion-templates.js +57 -0
- package/node_modules/yargs/build/lib/completion.js +243 -0
- package/node_modules/yargs/build/lib/middleware.js +88 -0
- package/node_modules/yargs/build/lib/parse-command.js +32 -0
- package/node_modules/yargs/build/lib/typings/common-types.js +9 -0
- package/node_modules/yargs/build/lib/typings/yargs-parser-types.js +1 -0
- package/node_modules/yargs/build/lib/usage.js +584 -0
- package/node_modules/yargs/build/lib/utils/apply-extends.js +59 -0
- package/node_modules/yargs/build/lib/utils/is-promise.js +5 -0
- package/node_modules/yargs/build/lib/utils/levenshtein.js +34 -0
- package/node_modules/yargs/build/lib/utils/maybe-async-result.js +17 -0
- package/node_modules/yargs/build/lib/utils/obj-filter.js +10 -0
- package/node_modules/yargs/build/lib/utils/process-argv.js +17 -0
- package/node_modules/yargs/build/lib/utils/set-blocking.js +12 -0
- package/node_modules/yargs/build/lib/utils/which-module.js +10 -0
- package/node_modules/yargs/build/lib/validation.js +305 -0
- package/node_modules/yargs/build/lib/yargs-factory.js +1517 -0
- package/node_modules/yargs/build/lib/yerror.js +9 -0
- package/node_modules/yargs/helpers/helpers.mjs +10 -0
- package/node_modules/yargs/helpers/package.json +3 -0
- package/node_modules/yargs/index.mjs +10 -0
- package/node_modules/yargs/lib/platform-shims/browser.mjs +99 -0
- package/node_modules/yargs/lib/platform-shims/esm.mjs +67 -0
- package/node_modules/yargs/locales/be.json +9 -2
- package/node_modules/yargs/locales/cs.json +51 -0
- package/node_modules/yargs/locales/de.json +9 -2
- package/node_modules/yargs/locales/en.json +16 -3
- package/node_modules/yargs/locales/es.json +9 -2
- package/node_modules/yargs/locales/fi.json +49 -0
- package/node_modules/yargs/locales/fr.json +38 -23
- package/node_modules/yargs/locales/he.json +55 -0
- package/node_modules/yargs/locales/hi.json +9 -2
- package/node_modules/yargs/locales/hu.json +9 -2
- package/node_modules/yargs/locales/id.json +9 -2
- package/node_modules/yargs/locales/it.json +9 -2
- package/node_modules/yargs/locales/ja.json +15 -6
- package/node_modules/yargs/locales/ko.json +29 -22
- package/node_modules/yargs/locales/nb.json +9 -2
- package/node_modules/yargs/locales/nl.json +9 -2
- package/node_modules/yargs/locales/nn.json +9 -4
- package/node_modules/yargs/locales/pl.json +9 -2
- package/node_modules/yargs/locales/pt.json +9 -2
- package/node_modules/yargs/locales/pt_BR.json +8 -2
- package/node_modules/yargs/locales/ru.json +15 -3
- package/node_modules/yargs/locales/th.json +9 -2
- package/node_modules/yargs/locales/tr.json +9 -2
- package/node_modules/yargs/locales/uk_UA.json +51 -0
- package/node_modules/yargs/locales/uz.json +52 -0
- package/node_modules/yargs/locales/zh_CN.json +9 -2
- package/node_modules/yargs/locales/zh_TW.json +50 -39
- package/node_modules/yargs/node_modules/yargs-parser/CHANGELOG.md +319 -0
- package/node_modules/yargs/node_modules/yargs-parser/README.md +518 -0
- package/node_modules/yargs/node_modules/yargs-parser/browser.js +29 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/lib/index.js +64 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/lib/string-utils.js +65 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/lib/tokenize-arg-string.js +40 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/lib/yargs-parser-types.js +12 -0
- package/node_modules/yargs/node_modules/yargs-parser/build/lib/yargs-parser.js +1046 -0
- package/node_modules/yargs/node_modules/yargs-parser/package.json +78 -0
- package/node_modules/yargs/package.json +74 -77
- package/package.json +24 -28
- package/scripts/install.js +7 -3
- package/test/00-clean.js +11 -8
- package/test/01-chmod.js +8 -8
- package/test/10-install.js +15 -14
- package/test/11-install-deprecated.js +13 -11
- package/test/11-install-only.js +15 -13
- package/test/11-install-save.js +19 -18
- package/test/20-lock.js +22 -24
- package/test/30-run.js +10 -9
- package/test/90-help.js +9 -8
- package/test/90-version.js +7 -6
- package/test/zz-cleanup.js +11 -8
- package/.travis.yml +0 -29
- package/appveyor.yml +0 -18
- package/node_modules/@sindresorhus/is/dist/index.d.ts +0 -132
- package/node_modules/@sindresorhus/is/dist/index.js +0 -245
- package/node_modules/@sindresorhus/is/dist/index.js.map +0 -1
- package/node_modules/@sindresorhus/is/license +0 -9
- package/node_modules/@sindresorhus/is/package.json +0 -96
- package/node_modules/@sindresorhus/is/readme.md +0 -451
- package/node_modules/@szmarczak/http-timer/LICENSE +0 -21
- package/node_modules/@szmarczak/http-timer/README.md +0 -70
- package/node_modules/@szmarczak/http-timer/package.json +0 -75
- package/node_modules/@szmarczak/http-timer/source/index.js +0 -99
- package/node_modules/@types/color-name/LICENSE +0 -21
- package/node_modules/@types/color-name/README.md +0 -16
- package/node_modules/@types/color-name/index.d.ts +0 -161
- package/node_modules/@types/color-name/package.json +0 -52
- package/node_modules/abbrev/abbrev.js +0 -61
- package/node_modules/ansi-align/node_modules/ansi-regex/index.js +0 -14
- package/node_modules/ansi-align/node_modules/ansi-regex/license +0 -9
- package/node_modules/ansi-align/node_modules/ansi-regex/package.json +0 -85
- package/node_modules/ansi-align/node_modules/ansi-regex/readme.md +0 -87
- package/node_modules/ansi-align/node_modules/strip-ansi/index.js +0 -7
- package/node_modules/ansi-align/node_modules/strip-ansi/license +0 -9
- package/node_modules/ansi-align/node_modules/strip-ansi/package.json +0 -86
- package/node_modules/ansi-align/node_modules/strip-ansi/readme.md +0 -61
- package/node_modules/aproba/LICENSE +0 -14
- package/node_modules/aproba/README.md +0 -94
- package/node_modules/aproba/index.js +0 -105
- package/node_modules/aproba/package.json +0 -62
- package/node_modules/are-we-there-yet/CHANGES.md +0 -37
- package/node_modules/are-we-there-yet/LICENSE +0 -5
- package/node_modules/are-we-there-yet/README.md +0 -195
- package/node_modules/are-we-there-yet/index.js +0 -4
- package/node_modules/are-we-there-yet/package.json +0 -63
- package/node_modules/are-we-there-yet/tracker-base.js +0 -11
- package/node_modules/are-we-there-yet/tracker-group.js +0 -107
- package/node_modules/are-we-there-yet/tracker-stream.js +0 -36
- package/node_modules/are-we-there-yet/tracker.js +0 -30
- package/node_modules/aws4/.travis.yml +0 -9
- package/node_modules/balanced-match/.npmignore +0 -5
- package/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/balanced-match/README.md +0 -91
- package/node_modules/balanced-match/index.js +0 -59
- package/node_modules/balanced-match/package.json +0 -77
- package/node_modules/bl/.jshintrc +0 -60
- package/node_modules/bl/.travis.yml +0 -13
- package/node_modules/bl/LICENSE.md +0 -13
- package/node_modules/bl/README.md +0 -218
- package/node_modules/bl/bl.js +0 -382
- package/node_modules/bl/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/bl/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/bl/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/bl/node_modules/readable-stream/README.md +0 -111
- package/node_modules/bl/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/bl/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/bl/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +0 -1087
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +0 -201
- package/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +0 -683
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -189
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -85
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/bl/node_modules/readable-stream/package.json +0 -95
- package/node_modules/bl/node_modules/readable-stream/readable-browser.js +0 -9
- package/node_modules/bl/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/bl/package.json +0 -66
- package/node_modules/bl/test/indexOf.js +0 -463
- package/node_modules/bl/test/test.js +0 -780
- package/node_modules/boxen/node_modules/ansi-regex/index.js +0 -14
- package/node_modules/boxen/node_modules/ansi-regex/license +0 -9
- package/node_modules/boxen/node_modules/ansi-regex/package.json +0 -85
- package/node_modules/boxen/node_modules/ansi-regex/readme.md +0 -87
- package/node_modules/boxen/node_modules/ansi-styles/index.js +0 -165
- package/node_modules/boxen/node_modules/ansi-styles/license +0 -9
- package/node_modules/boxen/node_modules/ansi-styles/package.json +0 -88
- package/node_modules/boxen/node_modules/ansi-styles/readme.md +0 -147
- package/node_modules/boxen/node_modules/chalk/index.js +0 -228
- package/node_modules/boxen/node_modules/chalk/index.js.flow +0 -93
- package/node_modules/boxen/node_modules/chalk/templates.js +0 -128
- package/node_modules/boxen/node_modules/chalk/types/index.d.ts +0 -97
- package/node_modules/boxen/node_modules/is-fullwidth-code-point/index.js +0 -46
- package/node_modules/boxen/node_modules/is-fullwidth-code-point/package.json +0 -77
- package/node_modules/boxen/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/boxen/node_modules/string-width/index.js +0 -39
- package/node_modules/boxen/node_modules/string-width/license +0 -9
- package/node_modules/boxen/node_modules/string-width/package.json +0 -88
- package/node_modules/boxen/node_modules/string-width/readme.md +0 -45
- package/node_modules/boxen/node_modules/strip-ansi/index.d.ts +0 -15
- package/node_modules/boxen/node_modules/strip-ansi/index.js +0 -7
- package/node_modules/boxen/node_modules/strip-ansi/license +0 -9
- package/node_modules/boxen/node_modules/strip-ansi/package.json +0 -86
- package/node_modules/boxen/node_modules/strip-ansi/readme.md +0 -61
- package/node_modules/boxen/node_modules/supports-color/browser.js +0 -5
- package/node_modules/boxen/node_modules/supports-color/index.js +0 -131
- package/node_modules/boxen/node_modules/supports-color/license +0 -9
- package/node_modules/boxen/node_modules/supports-color/package.json +0 -85
- package/node_modules/boxen/node_modules/supports-color/readme.md +0 -66
- package/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/brace-expansion/README.md +0 -129
- package/node_modules/brace-expansion/index.js +0 -201
- package/node_modules/brace-expansion/package.json +0 -75
- package/node_modules/builtins/.travis.yml +0 -4
- package/node_modules/builtins/History.md +0 -39
- package/node_modules/builtins/License +0 -20
- package/node_modules/builtins/Readme.md +0 -18
- package/node_modules/builtins/builtins.json +0 -35
- package/node_modules/builtins/package.json +0 -46
- package/node_modules/builtins/test.js +0 -5
- package/node_modules/cacheable-request/LICENSE +0 -21
- package/node_modules/cacheable-request/README.md +0 -206
- package/node_modules/cacheable-request/node_modules/get-stream/buffer-stream.js +0 -52
- package/node_modules/cacheable-request/node_modules/get-stream/index.d.ts +0 -108
- package/node_modules/cacheable-request/node_modules/get-stream/index.js +0 -58
- package/node_modules/cacheable-request/node_modules/get-stream/license +0 -9
- package/node_modules/cacheable-request/node_modules/get-stream/package.json +0 -81
- package/node_modules/cacheable-request/node_modules/get-stream/readme.md +0 -123
- package/node_modules/cacheable-request/node_modules/lowercase-keys/index.d.ts +0 -16
- package/node_modules/cacheable-request/node_modules/lowercase-keys/index.js +0 -10
- package/node_modules/cacheable-request/node_modules/lowercase-keys/license +0 -9
- package/node_modules/cacheable-request/node_modules/lowercase-keys/package.json +0 -70
- package/node_modules/cacheable-request/node_modules/lowercase-keys/readme.md +0 -32
- package/node_modules/cacheable-request/node_modules/pump/.travis.yml +0 -5
- package/node_modules/cacheable-request/node_modules/pump/LICENSE +0 -21
- package/node_modules/cacheable-request/node_modules/pump/README.md +0 -65
- package/node_modules/cacheable-request/node_modules/pump/index.js +0 -82
- package/node_modules/cacheable-request/node_modules/pump/package.json +0 -59
- package/node_modules/cacheable-request/node_modules/pump/test-browser.js +0 -66
- package/node_modules/cacheable-request/node_modules/pump/test-node.js +0 -53
- package/node_modules/cacheable-request/package.json +0 -95
- package/node_modules/cacheable-request/src/index.js +0 -251
- package/node_modules/camelcase/index.d.ts +0 -63
- package/node_modules/camelcase/index.js +0 -76
- package/node_modules/camelcase/license +0 -9
- package/node_modules/camelcase/package.json +0 -78
- package/node_modules/camelcase/readme.md +0 -99
- package/node_modules/chownr/chownr.js +0 -125
- package/node_modules/ci-info/CHANGELOG.md +0 -78
- package/node_modules/ci-info/LICENSE +0 -21
- package/node_modules/ci-info/README.md +0 -108
- package/node_modules/ci-info/index.js +0 -66
- package/node_modules/ci-info/package.json +0 -65
- package/node_modules/ci-info/vendors.json +0 -153
- package/node_modules/cliui/index.js +0 -354
- package/node_modules/cliui/node_modules/emoji-regex/package.json +0 -77
- package/node_modules/cliui/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/node_modules/cliui/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/cliui/node_modules/is-fullwidth-code-point/package.json +0 -74
- package/node_modules/cliui/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/cliui/node_modules/string-width/index.js +0 -43
- package/node_modules/cliui/node_modules/string-width/license +0 -9
- package/node_modules/cliui/node_modules/string-width/package.json +0 -88
- package/node_modules/cliui/node_modules/string-width/readme.md +0 -50
- package/node_modules/clone-response/LICENSE +0 -21
- package/node_modules/clone-response/README.md +0 -62
- package/node_modules/clone-response/package.json +0 -73
- package/node_modules/clone-response/src/index.js +0 -17
- package/node_modules/code-point-at/index.js +0 -32
- package/node_modules/code-point-at/license +0 -21
- package/node_modules/code-point-at/package.json +0 -71
- package/node_modules/code-point-at/readme.md +0 -32
- package/node_modules/color-convert/CHANGELOG.md +0 -54
- package/node_modules/color-convert/LICENSE +0 -21
- package/node_modules/color-convert/README.md +0 -68
- package/node_modules/color-convert/conversions.js +0 -868
- package/node_modules/color-convert/index.js +0 -78
- package/node_modules/color-convert/package.json +0 -87
- package/node_modules/color-convert/route.js +0 -97
- package/node_modules/color-name/.eslintrc.json +0 -43
- package/node_modules/color-name/.npmignore +0 -107
- package/node_modules/color-name/LICENSE +0 -8
- package/node_modules/color-name/README.md +0 -11
- package/node_modules/color-name/index.js +0 -152
- package/node_modules/color-name/package.json +0 -53
- package/node_modules/color-name/test.js +0 -7
- package/node_modules/combined-stream/yarn.lock +0 -17
- package/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/concat-map/LICENSE +0 -18
- package/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/concat-map/index.js +0 -13
- package/node_modules/concat-map/package.json +0 -88
- package/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/console-control-strings/LICENSE +0 -13
- package/node_modules/console-control-strings/README.md +0 -145
- package/node_modules/console-control-strings/README.md~ +0 -140
- package/node_modules/console-control-strings/index.js +0 -125
- package/node_modules/console-control-strings/package.json +0 -61
- package/node_modules/cross-spawn/CHANGELOG.md +0 -6
- package/node_modules/cross-spawn/LICENSE +0 -19
- package/node_modules/cross-spawn/README.md +0 -85
- package/node_modules/cross-spawn/index.js +0 -59
- package/node_modules/cross-spawn/lib/enoent.js +0 -73
- package/node_modules/cross-spawn/lib/parse.js +0 -113
- package/node_modules/cross-spawn/lib/util/escapeArgument.js +0 -30
- package/node_modules/cross-spawn/lib/util/escapeCommand.js +0 -12
- package/node_modules/cross-spawn/lib/util/hasEmptyArgumentBug.js +0 -18
- package/node_modules/cross-spawn/lib/util/readShebang.js +0 -37
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -31
- package/node_modules/cross-spawn/node_modules/lru-cache/README.md +0 -158
- package/node_modules/cross-spawn/node_modules/lru-cache/index.js +0 -468
- package/node_modules/cross-spawn/node_modules/lru-cache/package.json +0 -71
- package/node_modules/cross-spawn/node_modules/which/CHANGELOG.md +0 -152
- package/node_modules/cross-spawn/node_modules/which/README.md +0 -51
- package/node_modules/cross-spawn/node_modules/which/bin/which +0 -52
- package/node_modules/cross-spawn/node_modules/which/package.json +0 -65
- package/node_modules/cross-spawn/node_modules/which/which.js +0 -135
- package/node_modules/cross-spawn/node_modules/yallist/README.md +0 -204
- package/node_modules/cross-spawn/node_modules/yallist/iterator.js +0 -7
- package/node_modules/cross-spawn/node_modules/yallist/package.json +0 -62
- package/node_modules/cross-spawn/node_modules/yallist/yallist.js +0 -370
- package/node_modules/cross-spawn/package.json +0 -86
- package/node_modules/crypto-random-string/index.js +0 -10
- package/node_modules/crypto-random-string/license +0 -21
- package/node_modules/crypto-random-string/package.json +0 -75
- package/node_modules/crypto-random-string/readme.md +0 -49
- package/node_modules/decamelize/index.js +0 -13
- package/node_modules/decamelize/license +0 -21
- package/node_modules/decamelize/package.json +0 -76
- package/node_modules/decamelize/readme.md +0 -48
- package/node_modules/decompress-response/index.js +0 -29
- package/node_modules/decompress-response/license +0 -21
- package/node_modules/decompress-response/package.json +0 -85
- package/node_modules/decompress-response/readme.md +0 -31
- package/node_modules/defer-to-connect/.editorconfig +0 -12
- package/node_modules/defer-to-connect/.travis.yml +0 -7
- package/node_modules/defer-to-connect/.vscode/settings.json +0 -3
- package/node_modules/defer-to-connect/LICENSE +0 -21
- package/node_modules/defer-to-connect/README.md +0 -38
- package/node_modules/defer-to-connect/dist/index.d.ts +0 -10
- package/node_modules/defer-to-connect/dist/index.js +0 -45
- package/node_modules/defer-to-connect/package.json +0 -95
- package/node_modules/defer-to-connect/source/index.ts +0 -55
- package/node_modules/defer-to-connect/test.ts +0 -171
- package/node_modules/defer-to-connect/tsconfig.json +0 -10
- package/node_modules/delegates/.npmignore +0 -1
- package/node_modules/delegates/History.md +0 -22
- package/node_modules/delegates/License +0 -20
- package/node_modules/delegates/Makefile +0 -8
- package/node_modules/delegates/Readme.md +0 -94
- package/node_modules/delegates/index.js +0 -121
- package/node_modules/delegates/package.json +0 -48
- package/node_modules/delegates/test/index.js +0 -94
- package/node_modules/dot-prop/index.js +0 -123
- package/node_modules/dot-prop/license +0 -21
- package/node_modules/dot-prop/package.json +0 -80
- package/node_modules/dot-prop/readme.md +0 -103
- package/node_modules/duplexer3/LICENSE.md +0 -26
- package/node_modules/duplexer3/README.md +0 -115
- package/node_modules/duplexer3/index.js +0 -76
- package/node_modules/duplexer3/package.json +0 -64
- package/node_modules/emoji-regex/es2015/index.js +0 -6
- package/node_modules/emoji-regex/es2015/text.js +0 -6
- package/node_modules/emoji-regex/text.js +0 -6
- package/node_modules/escape-string-regexp/index.js +0 -11
- package/node_modules/escape-string-regexp/license +0 -21
- package/node_modules/escape-string-regexp/package.json +0 -89
- package/node_modules/escape-string-regexp/readme.md +0 -27
- package/node_modules/execa/index.js +0 -309
- package/node_modules/execa/lib/errname.js +0 -37
- package/node_modules/execa/lib/stdio.js +0 -41
- package/node_modules/execa/license +0 -9
- package/node_modules/execa/package.json +0 -108
- package/node_modules/execa/readme.md +0 -279
- package/node_modules/fast-json-stable-stringify/.npmignore +0 -4
- package/node_modules/find-up/index.d.ts +0 -137
- package/node_modules/find-up/index.js +0 -89
- package/node_modules/find-up/license +0 -9
- package/node_modules/find-up/package.json +0 -86
- package/node_modules/find-up/readme.md +0 -156
- package/node_modules/form-data/yarn.lock +0 -2662
- package/node_modules/fs-constants/LICENSE +0 -21
- package/node_modules/fs-constants/README.md +0 -26
- package/node_modules/fs-constants/browser.js +0 -1
- package/node_modules/fs-constants/index.js +0 -1
- package/node_modules/fs-constants/package.json +0 -47
- package/node_modules/fs-extra/CHANGELOG.md +0 -864
- package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +0 -164
- package/node_modules/fs-extra/lib/copy-sync/index.js +0 -5
- package/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js +0 -54
- package/node_modules/fs-extra/lib/mkdirs/mkdirs.js +0 -63
- package/node_modules/fs-extra/lib/mkdirs/win32.js +0 -25
- package/node_modules/fs-extra/lib/move-sync/index.js +0 -5
- package/node_modules/fs-extra/lib/move-sync/move-sync.js +0 -47
- package/node_modules/fs-extra/lib/output/index.js +0 -40
- package/node_modules/fs-extra/lib/remove/rimraf.js +0 -314
- package/node_modules/fs-extra/lib/util/buffer.js +0 -12
- package/node_modules/fs-minipass/LICENSE +0 -15
- package/node_modules/fs-minipass/README.md +0 -70
- package/node_modules/fs-minipass/index.js +0 -387
- package/node_modules/fs-minipass/package.json +0 -65
- package/node_modules/fs.realpath/LICENSE +0 -43
- package/node_modules/fs.realpath/README.md +0 -33
- package/node_modules/fs.realpath/index.js +0 -66
- package/node_modules/fs.realpath/old.js +0 -303
- package/node_modules/fs.realpath/package.json +0 -59
- package/node_modules/gauge/CHANGELOG.md +0 -160
- package/node_modules/gauge/LICENSE +0 -13
- package/node_modules/gauge/README.md +0 -399
- package/node_modules/gauge/base-theme.js +0 -14
- package/node_modules/gauge/error.js +0 -24
- package/node_modules/gauge/has-color.js +0 -12
- package/node_modules/gauge/index.js +0 -233
- package/node_modules/gauge/package.json +0 -91
- package/node_modules/gauge/plumbing.js +0 -48
- package/node_modules/gauge/process.js +0 -3
- package/node_modules/gauge/progress-bar.js +0 -35
- package/node_modules/gauge/render-template.js +0 -181
- package/node_modules/gauge/set-immediate.js +0 -7
- package/node_modules/gauge/set-interval.js +0 -3
- package/node_modules/gauge/spin.js +0 -5
- package/node_modules/gauge/template-item.js +0 -73
- package/node_modules/gauge/theme-set.js +0 -115
- package/node_modules/gauge/themes.js +0 -54
- package/node_modules/gauge/wide-truncate.js +0 -25
- package/node_modules/get-stream/buffer-stream.js +0 -51
- package/node_modules/get-stream/index.js +0 -51
- package/node_modules/get-stream/license +0 -21
- package/node_modules/get-stream/package.json +0 -80
- package/node_modules/get-stream/readme.md +0 -117
- package/node_modules/glob/LICENSE +0 -21
- package/node_modules/glob/README.md +0 -375
- package/node_modules/glob/changelog.md +0 -67
- package/node_modules/glob/common.js +0 -240
- package/node_modules/glob/glob.js +0 -790
- package/node_modules/glob/package.json +0 -87
- package/node_modules/glob/sync.js +0 -486
- package/node_modules/global-dirs/index.js +0 -90
- package/node_modules/global-dirs/license +0 -9
- package/node_modules/global-dirs/package.json +0 -84
- package/node_modules/global-dirs/readme.md +0 -69
- package/node_modules/got/license +0 -9
- package/node_modules/got/node_modules/get-stream/buffer-stream.js +0 -51
- package/node_modules/got/node_modules/get-stream/index.js +0 -50
- package/node_modules/got/node_modules/get-stream/license +0 -9
- package/node_modules/got/node_modules/get-stream/package.json +0 -78
- package/node_modules/got/node_modules/get-stream/readme.md +0 -123
- package/node_modules/got/node_modules/pump/.travis.yml +0 -5
- package/node_modules/got/node_modules/pump/LICENSE +0 -21
- package/node_modules/got/node_modules/pump/README.md +0 -65
- package/node_modules/got/node_modules/pump/index.js +0 -82
- package/node_modules/got/node_modules/pump/package.json +0 -59
- package/node_modules/got/node_modules/pump/test-browser.js +0 -66
- package/node_modules/got/node_modules/pump/test-node.js +0 -53
- package/node_modules/got/package.json +0 -109
- package/node_modules/got/readme.md +0 -1237
- package/node_modules/got/source/as-promise.js +0 -108
- package/node_modules/got/source/as-stream.js +0 -93
- package/node_modules/got/source/create.js +0 -79
- package/node_modules/got/source/errors.js +0 -107
- package/node_modules/got/source/get-response.js +0 -31
- package/node_modules/got/source/index.js +0 -60
- package/node_modules/got/source/known-hook-events.js +0 -10
- package/node_modules/got/source/merge.js +0 -73
- package/node_modules/got/source/normalize-arguments.js +0 -265
- package/node_modules/got/source/progress.js +0 -96
- package/node_modules/got/source/request-as-event-emitter.js +0 -312
- package/node_modules/got/source/utils/deep-freeze.js +0 -12
- package/node_modules/got/source/utils/get-body-size.js +0 -32
- package/node_modules/got/source/utils/is-form-data.js +0 -4
- package/node_modules/got/source/utils/timed-out.js +0 -160
- package/node_modules/got/source/utils/url-to-options.js +0 -25
- package/node_modules/gunzip-maybe/.npmignore +0 -1
- package/node_modules/has-flag/index.js +0 -8
- package/node_modules/has-flag/license +0 -9
- package/node_modules/has-flag/package.json +0 -81
- package/node_modules/has-flag/readme.md +0 -70
- package/node_modules/has-unicode/LICENSE +0 -14
- package/node_modules/has-unicode/README.md +0 -43
- package/node_modules/has-unicode/index.js +0 -16
- package/node_modules/has-unicode/package.json +0 -58
- package/node_modules/has-yarn/index.d.ts +0 -16
- package/node_modules/has-yarn/index.js +0 -9
- package/node_modules/has-yarn/license +0 -9
- package/node_modules/has-yarn/package.json +0 -71
- package/node_modules/has-yarn/readme.md +0 -60
- package/node_modules/hosted-git-info/CHANGELOG.md +0 -135
- package/node_modules/hosted-git-info/git-host-info.js +0 -79
- package/node_modules/hosted-git-info/git-host.js +0 -156
- package/node_modules/hosted-git-info/index.js +0 -125
- package/node_modules/http-cache-semantics/LICENSE +0 -9
- package/node_modules/http-cache-semantics/README.md +0 -193
- package/node_modules/http-cache-semantics/index.js +0 -653
- package/node_modules/http-cache-semantics/package.json +0 -60
- package/node_modules/import-lazy/index.js +0 -53
- package/node_modules/import-lazy/license +0 -21
- package/node_modules/import-lazy/package.json +0 -76
- package/node_modules/import-lazy/readme.md +0 -64
- package/node_modules/imurmurhash/README.md +0 -122
- package/node_modules/imurmurhash/imurmurhash.js +0 -138
- package/node_modules/imurmurhash/imurmurhash.min.js +0 -12
- package/node_modules/imurmurhash/package.json +0 -65
- package/node_modules/inflight/LICENSE +0 -15
- package/node_modules/inflight/README.md +0 -37
- package/node_modules/inflight/inflight.js +0 -54
- package/node_modules/inflight/package.json +0 -58
- package/node_modules/is-ci/CHANGELOG.md +0 -14
- package/node_modules/is-ci/LICENSE +0 -21
- package/node_modules/is-ci/README.md +0 -50
- package/node_modules/is-ci/bin.js +0 -4
- package/node_modules/is-ci/index.js +0 -3
- package/node_modules/is-ci/package.json +0 -69
- package/node_modules/is-fullwidth-code-point/index.js +0 -46
- package/node_modules/is-fullwidth-code-point/license +0 -21
- package/node_modules/is-fullwidth-code-point/package.json +0 -77
- package/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/is-obj/index.js +0 -5
- package/node_modules/is-obj/license +0 -21
- package/node_modules/is-obj/package.json +0 -66
- package/node_modules/is-obj/readme.md +0 -34
- package/node_modules/is-path-inside/index.js +0 -14
- package/node_modules/is-path-inside/license +0 -21
- package/node_modules/is-path-inside/package.json +0 -69
- package/node_modules/is-path-inside/readme.md +0 -34
- package/node_modules/is-stream/index.js +0 -21
- package/node_modules/is-stream/license +0 -21
- package/node_modules/is-stream/package.json +0 -72
- package/node_modules/is-stream/readme.md +0 -42
- package/node_modules/is-yarn-global/.travis.yml +0 -4
- package/node_modules/is-yarn-global/LICENSE +0 -21
- package/node_modules/is-yarn-global/README.md +0 -28
- package/node_modules/is-yarn-global/index.js +0 -12
- package/node_modules/is-yarn-global/package.json +0 -50
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/json-buffer/.npmignore +0 -3
- package/node_modules/json-buffer/.travis.yml +0 -3
- package/node_modules/json-buffer/LICENSE +0 -22
- package/node_modules/json-buffer/README.md +0 -24
- package/node_modules/json-buffer/index.js +0 -58
- package/node_modules/json-buffer/package.json +0 -66
- package/node_modules/json-buffer/test/index.js +0 -63
- package/node_modules/json-schema/draft-00/hyper-schema +0 -68
- package/node_modules/json-schema/draft-00/json-ref +0 -26
- package/node_modules/json-schema/draft-00/links +0 -33
- package/node_modules/json-schema/draft-00/schema +0 -155
- package/node_modules/json-schema/draft-01/hyper-schema +0 -68
- package/node_modules/json-schema/draft-01/json-ref +0 -26
- package/node_modules/json-schema/draft-01/links +0 -33
- package/node_modules/json-schema/draft-01/schema +0 -155
- package/node_modules/json-schema/draft-02/hyper-schema +0 -68
- package/node_modules/json-schema/draft-02/json-ref +0 -26
- package/node_modules/json-schema/draft-02/links +0 -35
- package/node_modules/json-schema/draft-02/schema +0 -166
- package/node_modules/json-schema/draft-03/examples/address +0 -20
- package/node_modules/json-schema/draft-03/examples/calendar +0 -53
- package/node_modules/json-schema/draft-03/examples/card +0 -105
- package/node_modules/json-schema/draft-03/examples/geo +0 -8
- package/node_modules/json-schema/draft-03/examples/interfaces +0 -23
- package/node_modules/json-schema/draft-03/hyper-schema +0 -60
- package/node_modules/json-schema/draft-03/json-ref +0 -26
- package/node_modules/json-schema/draft-03/links +0 -35
- package/node_modules/json-schema/draft-03/schema +0 -174
- package/node_modules/json-schema/draft-04/hyper-schema +0 -60
- package/node_modules/json-schema/draft-04/links +0 -41
- package/node_modules/json-schema/draft-04/schema +0 -189
- package/node_modules/json-schema/draft-zyp-json-schema-03.xml +0 -1120
- package/node_modules/json-schema/draft-zyp-json-schema-04.xml +0 -1072
- package/node_modules/json-schema/test/tests.js +0 -95
- package/node_modules/jsonfile/CHANGELOG.md +0 -145
- package/node_modules/keyv/LICENSE +0 -21
- package/node_modules/keyv/README.md +0 -276
- package/node_modules/keyv/package.json +0 -78
- package/node_modules/keyv/src/index.js +0 -103
- package/node_modules/locate-path/index.d.ts +0 -83
- package/node_modules/locate-path/index.js +0 -65
- package/node_modules/locate-path/license +0 -9
- package/node_modules/locate-path/package.json +0 -77
- package/node_modules/locate-path/readme.md +0 -122
- package/node_modules/lowercase-keys/index.js +0 -11
- package/node_modules/lowercase-keys/license +0 -21
- package/node_modules/lowercase-keys/package.json +0 -68
- package/node_modules/lowercase-keys/readme.md +0 -33
- package/node_modules/lru-cache/LICENSE +0 -15
- package/node_modules/lru-cache/index.js +0 -334
- package/node_modules/make-dir/index.js +0 -85
- package/node_modules/make-dir/license +0 -9
- package/node_modules/make-dir/package.json +0 -86
- package/node_modules/make-dir/readme.md +0 -116
- package/node_modules/mimic-response/index.js +0 -32
- package/node_modules/mimic-response/license +0 -9
- package/node_modules/mimic-response/package.json +0 -71
- package/node_modules/mimic-response/readme.md +0 -54
- package/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/minimatch/README.md +0 -209
- package/node_modules/minimatch/minimatch.js +0 -923
- package/node_modules/minimatch/package.json +0 -68
- package/node_modules/minimist/.travis.yml +0 -4
- package/node_modules/minimist/readme.markdown +0 -73
- package/node_modules/minipass/index.js +0 -537
- package/node_modules/minizlib/constants.js +0 -115
- package/node_modules/minizlib/index.js +0 -320
- package/node_modules/mkdirp/.travis.yml +0 -8
- package/node_modules/mkdirp/LICENSE +0 -21
- package/node_modules/mkdirp/bin/cmd.js +0 -33
- package/node_modules/mkdirp/bin/usage.txt +0 -12
- package/node_modules/mkdirp/examples/pow.js +0 -6
- package/node_modules/mkdirp/index.js +0 -98
- package/node_modules/mkdirp/package.json +0 -68
- package/node_modules/mkdirp/readme.markdown +0 -100
- package/node_modules/mkdirp/test/chmod.js +0 -41
- package/node_modules/mkdirp/test/clobber.js +0 -38
- package/node_modules/mkdirp/test/mkdirp.js +0 -28
- package/node_modules/mkdirp/test/opts_fs.js +0 -29
- package/node_modules/mkdirp/test/opts_fs_sync.js +0 -27
- package/node_modules/mkdirp/test/perm.js +0 -32
- package/node_modules/mkdirp/test/perm_sync.js +0 -36
- package/node_modules/mkdirp/test/race.js +0 -37
- package/node_modules/mkdirp/test/rel.js +0 -32
- package/node_modules/mkdirp/test/return.js +0 -25
- package/node_modules/mkdirp/test/return_sync.js +0 -24
- package/node_modules/mkdirp/test/root.js +0 -19
- package/node_modules/mkdirp/test/sync.js +0 -32
- package/node_modules/mkdirp/test/umask.js +0 -28
- package/node_modules/mkdirp/test/umask_sync.js +0 -32
- package/node_modules/node-gyp/.github/ISSUE_TEMPLATE.md +0 -27
- package/node_modules/node-gyp/.github/PULL_REQUEST_TEMPLATE.md +0 -17
- package/node_modules/node-gyp/.travis.yml +0 -102
- package/node_modules/node-gyp/gyp/AUTHORS +0 -13
- package/node_modules/node-gyp/gyp/DEPS +0 -24
- package/node_modules/node-gyp/gyp/OWNERS +0 -1
- package/node_modules/node-gyp/gyp/PRESUBMIT.py +0 -138
- package/node_modules/node-gyp/gyp/codereview.settings +0 -10
- package/node_modules/node-gyp/gyp/pylib/gyp/ordered_dict.py +0 -289
- package/node_modules/node-gyp/gyp/samples/samples +0 -81
- package/node_modules/node-gyp/gyp/samples/samples.bat +0 -5
- package/node_modules/node-gyp/gyp/setup.py +0 -19
- package/node_modules/node-gyp/gyp/tools/README +0 -15
- package/node_modules/node-gyp/gyp/tools/Xcode/README +0 -5
- package/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec +0 -27
- package/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec +0 -226
- package/node_modules/node-gyp/gyp/tools/emacs/README +0 -12
- package/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el +0 -63
- package/node_modules/node-gyp/gyp/tools/emacs/gyp.el +0 -275
- package/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh +0 -7
- package/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp +0 -1105
- package/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified +0 -1107
- package/node_modules/node-gyp/gyp/tools/graphviz.py +0 -102
- package/node_modules/node-gyp/gyp/tools/pretty_gyp.py +0 -157
- package/node_modules/node-gyp/gyp/tools/pretty_sln.py +0 -171
- package/node_modules/node-gyp/gyp/tools/pretty_vcproj.py +0 -337
- package/node_modules/node-gyp/macOS_Catalina.md +0 -69
- package/node_modules/node-gyp/node_modules/semver/CHANGELOG.md +0 -39
- package/node_modules/node-gyp/node_modules/semver/LICENSE +0 -15
- package/node_modules/node-gyp/node_modules/semver/README.md +0 -412
- package/node_modules/node-gyp/node_modules/semver/bin/semver +0 -160
- package/node_modules/node-gyp/node_modules/semver/package.json +0 -60
- package/node_modules/node-gyp/node_modules/semver/range.bnf +0 -16
- package/node_modules/node-gyp/node_modules/semver/semver.js +0 -1483
- package/node_modules/node-gyp/node_modules/which/CHANGELOG.md +0 -152
- package/node_modules/node-gyp/node_modules/which/LICENSE +0 -15
- package/node_modules/node-gyp/node_modules/which/README.md +0 -51
- package/node_modules/node-gyp/node_modules/which/bin/which +0 -52
- package/node_modules/node-gyp/node_modules/which/package.json +0 -65
- package/node_modules/node-gyp/node_modules/which/which.js +0 -135
- package/node_modules/node-gyp/test/docker.sh +0 -112
- package/node_modules/node-gyp/test/fixtures/VS_2017_BuildTools_minimal.txt +0 -1
- package/node_modules/node-gyp/test/fixtures/VS_2017_Community_workload.txt +0 -1
- package/node_modules/node-gyp/test/fixtures/VS_2017_Express.txt +0 -1
- package/node_modules/node-gyp/test/fixtures/VS_2017_Unusable.txt +0 -1
- package/node_modules/node-gyp/test/fixtures/VS_2019_BuildTools_minimal.txt +0 -1
- package/node_modules/node-gyp/test/fixtures/VS_2019_Community_workload.txt +0 -1
- package/node_modules/node-gyp/test/fixtures/VS_2019_Preview.txt +0 -1
- package/node_modules/node-gyp/test/fixtures/ca-bundle.crt +0 -40
- package/node_modules/node-gyp/test/fixtures/ca.crt +0 -21
- package/node_modules/node-gyp/test/fixtures/server.crt +0 -21
- package/node_modules/node-gyp/test/fixtures/server.key +0 -27
- package/node_modules/node-gyp/test/fixtures/test-charmap.py +0 -30
- package/node_modules/node-gyp/test/process-exec-sync.js +0 -140
- package/node_modules/node-gyp/test/simple-proxy.js +0 -27
- package/node_modules/node-gyp/test/test-addon.js +0 -150
- package/node_modules/node-gyp/test/test-configure-python.js +0 -74
- package/node_modules/node-gyp/test/test-download.js +0 -105
- package/node_modules/node-gyp/test/test-find-accessible-sync.js +0 -84
- package/node_modules/node-gyp/test/test-find-node-directory.js +0 -119
- package/node_modules/node-gyp/test/test-find-python.js +0 -231
- package/node_modules/node-gyp/test/test-find-visualstudio.js +0 -676
- package/node_modules/node-gyp/test/test-install.js +0 -38
- package/node_modules/node-gyp/test/test-options.js +0 -25
- package/node_modules/node-gyp/test/test-process-release.js +0 -434
- package/node_modules/nopt/.npmignore +0 -1
- package/node_modules/nopt/.travis.yml +0 -8
- package/node_modules/nopt/CHANGELOG.md +0 -58
- package/node_modules/nopt/examples/my-program.js +0 -30
- package/node_modules/nopt/test/basic.js +0 -303
- package/node_modules/normalize-url/index.d.ts +0 -216
- package/node_modules/normalize-url/index.js +0 -221
- package/node_modules/normalize-url/license +0 -9
- package/node_modules/normalize-url/package.json +0 -76
- package/node_modules/normalize-url/readme.md +0 -232
- package/node_modules/npm-package-arg/CHANGELOG.md +0 -41
- package/node_modules/npm-package-arg/node_modules/semver/CHANGELOG.md +0 -39
- package/node_modules/npm-package-arg/node_modules/semver/LICENSE +0 -15
- package/node_modules/npm-package-arg/node_modules/semver/README.md +0 -412
- package/node_modules/npm-package-arg/node_modules/semver/bin/semver +0 -160
- package/node_modules/npm-package-arg/node_modules/semver/package.json +0 -60
- package/node_modules/npm-package-arg/node_modules/semver/range.bnf +0 -16
- package/node_modules/npm-package-arg/node_modules/semver/semver.js +0 -1483
- package/node_modules/npm-package-arg/npa.js +0 -301
- package/node_modules/npm-run-path/index.js +0 -39
- package/node_modules/npm-run-path/license +0 -21
- package/node_modules/npm-run-path/package.json +0 -77
- package/node_modules/npm-run-path/readme.md +0 -81
- package/node_modules/npmlog/CHANGELOG.md +0 -49
- package/node_modules/npmlog/LICENSE +0 -15
- package/node_modules/npmlog/README.md +0 -216
- package/node_modules/npmlog/log.js +0 -309
- package/node_modules/npmlog/package.json +0 -61
- package/node_modules/number-is-nan/index.js +0 -4
- package/node_modules/number-is-nan/license +0 -21
- package/node_modules/number-is-nan/package.json +0 -70
- package/node_modules/number-is-nan/readme.md +0 -28
- package/node_modules/object-assign/index.js +0 -90
- package/node_modules/object-assign/license +0 -21
- package/node_modules/object-assign/package.json +0 -78
- package/node_modules/object-assign/readme.md +0 -61
- package/node_modules/os-homedir/index.js +0 -24
- package/node_modules/os-homedir/license +0 -21
- package/node_modules/os-homedir/package.json +0 -74
- package/node_modules/os-homedir/readme.md +0 -31
- package/node_modules/os-tmpdir/index.js +0 -25
- package/node_modules/os-tmpdir/license +0 -21
- package/node_modules/os-tmpdir/package.json +0 -74
- package/node_modules/os-tmpdir/readme.md +0 -32
- package/node_modules/osenv/LICENSE +0 -15
- package/node_modules/osenv/README.md +0 -63
- package/node_modules/osenv/osenv.js +0 -72
- package/node_modules/osenv/package.json +0 -74
- package/node_modules/p-cancelable/index.d.ts +0 -168
- package/node_modules/p-cancelable/index.js +0 -103
- package/node_modules/p-cancelable/license +0 -9
- package/node_modules/p-cancelable/package.json +0 -81
- package/node_modules/p-cancelable/readme.md +0 -155
- package/node_modules/p-finally/index.js +0 -15
- package/node_modules/p-finally/license +0 -21
- package/node_modules/p-finally/package.json +0 -74
- package/node_modules/p-finally/readme.md +0 -47
- package/node_modules/p-limit/index.d.ts +0 -29
- package/node_modules/p-limit/index.js +0 -52
- package/node_modules/p-limit/license +0 -9
- package/node_modules/p-limit/package.json +0 -89
- package/node_modules/p-limit/readme.md +0 -99
- package/node_modules/p-locate/index.d.ts +0 -64
- package/node_modules/p-locate/index.js +0 -52
- package/node_modules/p-locate/license +0 -9
- package/node_modules/p-locate/package.json +0 -85
- package/node_modules/p-locate/readme.md +0 -90
- package/node_modules/p-try/index.d.ts +0 -39
- package/node_modules/p-try/index.js +0 -9
- package/node_modules/p-try/license +0 -9
- package/node_modules/p-try/package.json +0 -74
- package/node_modules/p-try/readme.md +0 -58
- package/node_modules/path-exists/index.d.ts +0 -28
- package/node_modules/path-exists/index.js +0 -23
- package/node_modules/path-exists/license +0 -9
- package/node_modules/path-exists/package.json +0 -71
- package/node_modules/path-exists/readme.md +0 -52
- package/node_modules/path-is-absolute/index.js +0 -20
- package/node_modules/path-is-absolute/license +0 -21
- package/node_modules/path-is-absolute/package.json +0 -75
- package/node_modules/path-is-absolute/readme.md +0 -59
- package/node_modules/path-is-inside/LICENSE.txt +0 -47
- package/node_modules/path-is-inside/lib/path-is-inside.js +0 -28
- package/node_modules/path-is-inside/package.json +0 -63
- package/node_modules/path-key/index.js +0 -13
- package/node_modules/path-key/license +0 -21
- package/node_modules/path-key/package.json +0 -73
- package/node_modules/path-key/readme.md +0 -51
- package/node_modules/pify/index.js +0 -84
- package/node_modules/pify/license +0 -9
- package/node_modules/pify/package.json +0 -95
- package/node_modules/pify/readme.md +0 -131
- package/node_modules/prepend-http/index.js +0 -15
- package/node_modules/prepend-http/license +0 -9
- package/node_modules/prepend-http/package.json +0 -67
- package/node_modules/prepend-http/readme.md +0 -56
- package/node_modules/pseudomap/LICENSE +0 -15
- package/node_modules/pseudomap/README.md +0 -60
- package/node_modules/pseudomap/map.js +0 -9
- package/node_modules/pseudomap/package.json +0 -55
- package/node_modules/pseudomap/pseudomap.js +0 -113
- package/node_modules/pseudomap/test/basic.js +0 -86
- package/node_modules/psl/data/rules.json +0 -8807
- package/node_modules/psl/dist/psl.js +0 -9618
- package/node_modules/psl/dist/psl.min.js +0 -1
- package/node_modules/qs/.eslintignore +0 -1
- package/node_modules/qs/LICENSE +0 -28
- package/node_modules/qs/test/.eslintrc +0 -15
- package/node_modules/rc/node_modules/minimist/.travis.yml +0 -8
- package/node_modules/rc/node_modules/minimist/LICENSE +0 -18
- package/node_modules/rc/node_modules/minimist/example/parse.js +0 -2
- package/node_modules/rc/node_modules/minimist/index.js +0 -236
- package/node_modules/rc/node_modules/minimist/package.json +0 -73
- package/node_modules/rc/node_modules/minimist/readme.markdown +0 -91
- package/node_modules/rc/node_modules/minimist/test/all_bool.js +0 -32
- package/node_modules/rc/node_modules/minimist/test/bool.js +0 -166
- package/node_modules/rc/node_modules/minimist/test/dash.js +0 -31
- package/node_modules/rc/node_modules/minimist/test/default_bool.js +0 -35
- package/node_modules/rc/node_modules/minimist/test/dotted.js +0 -22
- package/node_modules/rc/node_modules/minimist/test/kv_short.js +0 -16
- package/node_modules/rc/node_modules/minimist/test/long.js +0 -31
- package/node_modules/rc/node_modules/minimist/test/num.js +0 -36
- package/node_modules/rc/node_modules/minimist/test/parse.js +0 -197
- package/node_modules/rc/node_modules/minimist/test/parse_modified.js +0 -9
- package/node_modules/rc/node_modules/minimist/test/short.js +0 -67
- package/node_modules/rc/node_modules/minimist/test/stop_early.js +0 -15
- package/node_modules/rc/node_modules/minimist/test/unknown.js +0 -102
- package/node_modules/rc/node_modules/minimist/test/whitespace.js +0 -8
- package/node_modules/registry-auth-token/.npmignore +0 -6
- package/node_modules/registry-auth-token/base64.js +0 -14
- package/node_modules/registry-auth-token/package-lock.json +0 -2624
- package/node_modules/registry-auth-token/test/auth-token.test.js +0 -455
- package/node_modules/registry-auth-token/test/registry-url.test.js +0 -64
- package/node_modules/require-directory/.jshintrc +0 -67
- package/node_modules/require-directory/.npmignore +0 -1
- package/node_modules/require-directory/.travis.yml +0 -3
- package/node_modules/require-directory/LICENSE +0 -22
- package/node_modules/require-directory/README.markdown +0 -184
- package/node_modules/require-directory/index.js +0 -86
- package/node_modules/require-directory/package.json +0 -71
- package/node_modules/require-main-filename/CHANGELOG.md +0 -26
- package/node_modules/require-main-filename/README.md +0 -26
- package/node_modules/require-main-filename/index.js +0 -18
- package/node_modules/require-main-filename/package.json +0 -66
- package/node_modules/responselike/LICENSE +0 -19
- package/node_modules/responselike/README.md +0 -77
- package/node_modules/responselike/package.json +0 -69
- package/node_modules/responselike/src/index.js +0 -34
- package/node_modules/rimraf/LICENSE +0 -15
- package/node_modules/rimraf/README.md +0 -101
- package/node_modules/rimraf/bin.js +0 -50
- package/node_modules/rimraf/package.json +0 -72
- package/node_modules/rimraf/rimraf.js +0 -372
- package/node_modules/semver/CHANGELOG.md +0 -70
- package/node_modules/semver/semver.js +0 -1596
- package/node_modules/semver-diff/index.js +0 -27
- package/node_modules/semver-diff/license +0 -21
- package/node_modules/semver-diff/node_modules/semver/CHANGELOG.md +0 -39
- package/node_modules/semver-diff/node_modules/semver/LICENSE +0 -15
- package/node_modules/semver-diff/node_modules/semver/README.md +0 -412
- package/node_modules/semver-diff/node_modules/semver/bin/semver +0 -160
- package/node_modules/semver-diff/node_modules/semver/package.json +0 -60
- package/node_modules/semver-diff/node_modules/semver/range.bnf +0 -16
- package/node_modules/semver-diff/node_modules/semver/semver.js +0 -1483
- package/node_modules/semver-diff/package.json +0 -66
- package/node_modules/semver-diff/readme.md +0 -52
- package/node_modules/set-blocking/CHANGELOG.md +0 -26
- package/node_modules/set-blocking/LICENSE.txt +0 -14
- package/node_modules/set-blocking/README.md +0 -31
- package/node_modules/set-blocking/index.js +0 -7
- package/node_modules/set-blocking/package.json +0 -73
- package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/shebang-command/license +0 -21
- package/node_modules/shebang-command/package.json +0 -73
- package/node_modules/shebang-command/readme.md +0 -39
- package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/shebang-regex/license +0 -21
- package/node_modules/shebang-regex/package.json +0 -64
- package/node_modules/shebang-regex/readme.md +0 -29
- package/node_modules/signal-exit/CHANGELOG.md +0 -27
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -40
- package/node_modules/signal-exit/index.js +0 -157
- package/node_modules/signal-exit/package.json +0 -73
- package/node_modules/signal-exit/signals.js +0 -53
- package/node_modules/sshpk/.npmignore +0 -9
- package/node_modules/stream-shift/.npmignore +0 -1
- package/node_modules/stream-shift/.travis.yml +0 -6
- package/node_modules/strip-eof/index.js +0 -15
- package/node_modules/strip-eof/license +0 -21
- package/node_modules/strip-eof/package.json +0 -71
- package/node_modules/strip-eof/readme.md +0 -28
- package/node_modules/strip-json-comments/license +0 -21
- package/node_modules/strip-json-comments/package.json +0 -74
- package/node_modules/tar/LICENSE +0 -15
- package/node_modules/tar/index.js +0 -18
- package/node_modules/tar/lib/buffer.js +0 -11
- package/node_modules/tar/lib/create.js +0 -105
- package/node_modules/tar/lib/extract.js +0 -112
- package/node_modules/tar/lib/header.js +0 -289
- package/node_modules/tar/lib/high-level-opt.js +0 -29
- package/node_modules/tar/lib/large-numbers.js +0 -97
- package/node_modules/tar/lib/list.js +0 -130
- package/node_modules/tar/lib/mkdir.js +0 -206
- package/node_modules/tar/lib/mode-fix.js +0 -14
- package/node_modules/tar/lib/pack.js +0 -404
- package/node_modules/tar/lib/parse.js +0 -428
- package/node_modules/tar/lib/pax.js +0 -146
- package/node_modules/tar/lib/read-entry.js +0 -98
- package/node_modules/tar/lib/replace.js +0 -220
- package/node_modules/tar/lib/types.js +0 -44
- package/node_modules/tar/lib/unpack.js +0 -621
- package/node_modules/tar/lib/update.js +0 -36
- package/node_modules/tar/lib/warn-mixin.js +0 -14
- package/node_modules/tar/lib/winchars.js +0 -23
- package/node_modules/tar/lib/write-entry.js +0 -422
- package/node_modules/tar-fs/.travis.yml +0 -5
- package/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
- package/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
- package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/node_modules/tar-fs/test/index.js +0 -346
- package/node_modules/tar-stream/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/tar-stream/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/tar-stream/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/tar-stream/node_modules/readable-stream/README.md +0 -111
- package/node_modules/tar-stream/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/tar-stream/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/tar-stream/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js +0 -1087
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_transform.js +0 -201
- package/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js +0 -683
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -189
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -85
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/tar-stream/node_modules/readable-stream/package.json +0 -95
- package/node_modules/tar-stream/node_modules/readable-stream/readable-browser.js +0 -9
- package/node_modules/tar-stream/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/term-size/index.js +0 -70
- package/node_modules/term-size/license +0 -21
- package/node_modules/term-size/package.json +0 -75
- package/node_modules/term-size/readme.md +0 -41
- package/node_modules/term-size/vendor/macos/term-size +0 -0
- package/node_modules/term-size/vendor/windows/term-size.exe +0 -0
- package/node_modules/to-readable-stream/index.js +0 -11
- package/node_modules/to-readable-stream/license +0 -9
- package/node_modules/to-readable-stream/package.json +0 -72
- package/node_modules/to-readable-stream/readme.md +0 -42
- package/node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt +0 -20
- package/node_modules/tough-cookie/node_modules/punycode/README.md +0 -176
- package/node_modules/tough-cookie/node_modules/punycode/package.json +0 -87
- package/node_modules/tough-cookie/node_modules/punycode/punycode.js +0 -533
- package/node_modules/type-fest/index.d.ts +0 -206
- package/node_modules/type-fest/license +0 -9
- package/node_modules/type-fest/package.json +0 -82
- package/node_modules/type-fest/readme.md +0 -112
- package/node_modules/type-fest/source/package-json.d.ts +0 -494
- package/node_modules/unique-string/index.js +0 -4
- package/node_modules/unique-string/license +0 -21
- package/node_modules/unique-string/package.json +0 -76
- package/node_modules/unique-string/readme.md +0 -32
- package/node_modules/update-notifier/node_modules/ansi-styles/index.js +0 -165
- package/node_modules/update-notifier/node_modules/ansi-styles/license +0 -9
- package/node_modules/update-notifier/node_modules/ansi-styles/package.json +0 -88
- package/node_modules/update-notifier/node_modules/ansi-styles/readme.md +0 -147
- package/node_modules/update-notifier/node_modules/chalk/index.js +0 -228
- package/node_modules/update-notifier/node_modules/chalk/index.js.flow +0 -93
- package/node_modules/update-notifier/node_modules/chalk/templates.js +0 -128
- package/node_modules/update-notifier/node_modules/chalk/types/index.d.ts +0 -97
- package/node_modules/update-notifier/node_modules/supports-color/browser.js +0 -5
- package/node_modules/update-notifier/node_modules/supports-color/index.js +0 -131
- package/node_modules/update-notifier/node_modules/supports-color/license +0 -9
- package/node_modules/update-notifier/node_modules/supports-color/package.json +0 -85
- package/node_modules/update-notifier/node_modules/supports-color/readme.md +0 -66
- package/node_modules/uri-js/bower.json +0 -47
- package/node_modules/uri-js/rollup.config.js +0 -32
- package/node_modules/uri-js/src/index.ts +0 -18
- package/node_modules/uri-js/src/punycode.d.ts +0 -24
- package/node_modules/uri-js/src/regexps-iri.ts +0 -4
- package/node_modules/uri-js/src/regexps-uri.ts +0 -89
- package/node_modules/uri-js/src/schemes/http.ts +0 -36
- package/node_modules/uri-js/src/schemes/https.ts +0 -11
- package/node_modules/uri-js/src/schemes/mailto.ts +0 -182
- package/node_modules/uri-js/src/schemes/urn-uuid.ts +0 -36
- package/node_modules/uri-js/src/schemes/urn.ts +0 -69
- package/node_modules/uri-js/src/uri.ts +0 -556
- package/node_modules/uri-js/src/util.ts +0 -40
- package/node_modules/uri-js/tests/qunit.css +0 -118
- package/node_modules/uri-js/tests/qunit.js +0 -1042
- package/node_modules/uri-js/tests/test-es5-min.html +0 -17
- package/node_modules/uri-js/tests/test-es5.html +0 -17
- package/node_modules/uri-js/tests/tests.js +0 -774
- package/node_modules/uri-js/tsconfig.json +0 -20
- package/node_modules/uri-js/yarn.lock +0 -1902
- package/node_modules/url-parse-lax/index.js +0 -12
- package/node_modules/url-parse-lax/license +0 -9
- package/node_modules/url-parse-lax/package.json +0 -74
- package/node_modules/url-parse-lax/readme.md +0 -127
- package/node_modules/validate-npm-package-name/.npmignore +0 -1
- package/node_modules/validate-npm-package-name/.nyc_output/aa4ee25ac41a9c3c7ee37ce965e6d1ac.json +0 -1
- package/node_modules/validate-npm-package-name/.nyc_output/bb918173e62b9517f55b630902d07ef4.json +0 -1
- package/node_modules/validate-npm-package-name/.travis.yml +0 -6
- package/node_modules/validate-npm-package-name/index.js +0 -105
- package/node_modules/validate-npm-package-name/test/index.js +0 -109
- package/node_modules/which/CHANGELOG.md +0 -166
- package/node_modules/which/bin/node-which +0 -52
- package/node_modules/which/which.js +0 -125
- package/node_modules/which-module/CHANGELOG.md +0 -26
- package/node_modules/which-module/LICENSE +0 -13
- package/node_modules/which-module/README.md +0 -55
- package/node_modules/which-module/index.js +0 -9
- package/node_modules/which-module/package.json +0 -70
- package/node_modules/wide-align/LICENSE +0 -14
- package/node_modules/wide-align/README.md +0 -47
- package/node_modules/wide-align/align.js +0 -65
- package/node_modules/wide-align/package.json +0 -66
- package/node_modules/widest-line/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/widest-line/node_modules/ansi-regex/license +0 -9
- package/node_modules/widest-line/node_modules/ansi-regex/package.json +0 -85
- package/node_modules/widest-line/node_modules/ansi-regex/readme.md +0 -46
- package/node_modules/widest-line/node_modules/is-fullwidth-code-point/index.js +0 -46
- package/node_modules/widest-line/node_modules/is-fullwidth-code-point/license +0 -21
- package/node_modules/widest-line/node_modules/is-fullwidth-code-point/package.json +0 -77
- package/node_modules/widest-line/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/widest-line/node_modules/string-width/index.js +0 -36
- package/node_modules/widest-line/node_modules/string-width/license +0 -9
- package/node_modules/widest-line/node_modules/string-width/package.json +0 -87
- package/node_modules/widest-line/node_modules/string-width/readme.md +0 -42
- package/node_modules/widest-line/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/widest-line/node_modules/strip-ansi/license +0 -9
- package/node_modules/widest-line/node_modules/strip-ansi/package.json +0 -84
- package/node_modules/widest-line/node_modules/strip-ansi/readme.md +0 -39
- package/node_modules/wrap-ansi/node_modules/color-convert/CHANGELOG.md +0 -54
- package/node_modules/wrap-ansi/node_modules/color-convert/LICENSE +0 -21
- package/node_modules/wrap-ansi/node_modules/color-convert/README.md +0 -68
- package/node_modules/wrap-ansi/node_modules/color-convert/conversions.js +0 -839
- package/node_modules/wrap-ansi/node_modules/color-convert/index.js +0 -81
- package/node_modules/wrap-ansi/node_modules/color-convert/package.json +0 -83
- package/node_modules/wrap-ansi/node_modules/color-convert/route.js +0 -97
- package/node_modules/wrap-ansi/node_modules/color-name/LICENSE +0 -8
- package/node_modules/wrap-ansi/node_modules/color-name/README.md +0 -11
- package/node_modules/wrap-ansi/node_modules/color-name/index.js +0 -152
- package/node_modules/wrap-ansi/node_modules/color-name/package.json +0 -56
- package/node_modules/wrap-ansi/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/node_modules/wrap-ansi/node_modules/emoji-regex/README.md +0 -73
- package/node_modules/wrap-ansi/node_modules/emoji-regex/es2015/index.js +0 -6
- package/node_modules/wrap-ansi/node_modules/emoji-regex/es2015/text.js +0 -6
- package/node_modules/wrap-ansi/node_modules/emoji-regex/index.d.ts +0 -23
- package/node_modules/wrap-ansi/node_modules/emoji-regex/index.js +0 -6
- package/node_modules/wrap-ansi/node_modules/emoji-regex/package.json +0 -77
- package/node_modules/wrap-ansi/node_modules/emoji-regex/text.js +0 -6
- package/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/package.json +0 -74
- package/node_modules/wrap-ansi/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/wrap-ansi/node_modules/string-width/index.d.ts +0 -29
- package/node_modules/wrap-ansi/node_modules/string-width/index.js +0 -43
- package/node_modules/wrap-ansi/node_modules/string-width/license +0 -9
- package/node_modules/wrap-ansi/node_modules/string-width/package.json +0 -88
- package/node_modules/wrap-ansi/node_modules/string-width/readme.md +0 -50
- package/node_modules/write-file-atomic/CHANGELOG.md +0 -25
- package/node_modules/write-file-atomic/LICENSE +0 -6
- package/node_modules/write-file-atomic/README.md +0 -56
- package/node_modules/write-file-atomic/index.js +0 -238
- package/node_modules/write-file-atomic/package.json +0 -71
- package/node_modules/xdg-basedir/index.js +0 -28
- package/node_modules/xdg-basedir/license +0 -21
- package/node_modules/xdg-basedir/package.json +0 -73
- package/node_modules/xdg-basedir/readme.md +0 -60
- package/node_modules/y18n/index.js +0 -188
- package/node_modules/yallist/LICENSE +0 -15
- package/node_modules/yallist/iterator.js +0 -8
- package/node_modules/yallist/yallist.js +0 -426
- package/node_modules/yargs/CHANGELOG.md +0 -1440
- package/node_modules/yargs/index.js +0 -39
- package/node_modules/yargs/lib/apply-extends.js +0 -67
- package/node_modules/yargs/lib/argsert.js +0 -68
- package/node_modules/yargs/lib/command.js +0 -447
- package/node_modules/yargs/lib/completion-templates.js +0 -49
- package/node_modules/yargs/lib/completion.js +0 -116
- package/node_modules/yargs/lib/is-promise.js +0 -3
- package/node_modules/yargs/lib/levenshtein.js +0 -58
- package/node_modules/yargs/lib/middleware.js +0 -64
- package/node_modules/yargs/lib/obj-filter.js +0 -11
- package/node_modules/yargs/lib/usage.js +0 -549
- package/node_modules/yargs/lib/validation.js +0 -350
- package/node_modules/yargs/lib/yerror.js +0 -11
- package/node_modules/yargs/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/yargs/node_modules/ansi-regex/license +0 -9
- package/node_modules/yargs/node_modules/ansi-regex/package.json +0 -87
- package/node_modules/yargs/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/yargs/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/node_modules/yargs/node_modules/emoji-regex/README.md +0 -73
- package/node_modules/yargs/node_modules/emoji-regex/es2015/index.js +0 -6
- package/node_modules/yargs/node_modules/emoji-regex/es2015/text.js +0 -6
- package/node_modules/yargs/node_modules/emoji-regex/index.d.ts +0 -23
- package/node_modules/yargs/node_modules/emoji-regex/index.js +0 -6
- package/node_modules/yargs/node_modules/emoji-regex/package.json +0 -77
- package/node_modules/yargs/node_modules/emoji-regex/text.js +0 -6
- package/node_modules/yargs/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/node_modules/yargs/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/node_modules/yargs/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/yargs/node_modules/is-fullwidth-code-point/package.json +0 -74
- package/node_modules/yargs/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/yargs/node_modules/string-width/index.d.ts +0 -29
- package/node_modules/yargs/node_modules/string-width/index.js +0 -43
- package/node_modules/yargs/node_modules/string-width/license +0 -9
- package/node_modules/yargs/node_modules/string-width/package.json +0 -88
- package/node_modules/yargs/node_modules/string-width/readme.md +0 -50
- package/node_modules/yargs/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/yargs/node_modules/strip-ansi/license +0 -9
- package/node_modules/yargs/node_modules/strip-ansi/package.json +0 -86
- package/node_modules/yargs/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/yargs/yargs.js +0 -1238
- package/node_modules/yargs-parser/CHANGELOG.md +0 -524
- package/node_modules/yargs-parser/LICENSE.txt +0 -14
- package/node_modules/yargs-parser/README.md +0 -422
- package/node_modules/yargs-parser/index.js +0 -971
- package/node_modules/yargs-parser/lib/tokenize-arg-string.js +0 -40
- package/node_modules/yargs-parser/package.json +0 -79
- /package/node_modules/{chownr → @isaacs/fs-minipass}/LICENSE +0 -0
- /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/LICENSE-MIT.txt +0 -0
- /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/README.md +0 -0
- /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/es2015/index.js +0 -0
- /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/es2015/text.js +0 -0
- /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/index.d.ts +0 -0
- /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/index.js +0 -0
- /package/node_modules/{cliui → ansi-align}/node_modules/emoji-regex/text.js +0 -0
- /package/node_modules/{cliui → ansi-align}/node_modules/is-fullwidth-code-point/index.d.ts +0 -0
- /package/node_modules/{cliui → ansi-align}/node_modules/string-width/index.d.ts +0 -0
- /package/node_modules/{yargs/node_modules/ansi-regex → ansi-regex}/index.d.ts +0 -0
- /package/node_modules/{minipass → cmd-shim}/LICENSE +0 -0
- /package/node_modules/{cross-spawn/node_modules/lru-cache → global-directory/node_modules/ini}/LICENSE +0 -0
- /package/node_modules/{tar-fs/test/fixtures/d/file1 → node-gyp/gyp/pylib/packaging/py.typed} +0 -0
- /package/node_modules/{isexe → npm-path/node_modules/isexe}/.npmignore +0 -0
- /package/node_modules/{cross-spawn/node_modules/which → npm-path/node_modules/isexe}/LICENSE +0 -0
- /package/node_modules/{isexe → npm-path/node_modules/isexe}/index.js +0 -0
- /package/node_modules/{isexe → npm-path/node_modules/isexe}/mode.js +0 -0
- /package/node_modules/{isexe → npm-path/node_modules/isexe}/test/basic.js +0 -0
- /package/node_modules/{isexe → npm-path/node_modules/isexe}/windows.js +0 -0
- /package/node_modules/{cross-spawn/node_modules/yallist → proto-list}/LICENSE +0 -0
- /package/node_modules/{strip-json-comments → rc/node_modules/strip-json-comments}/index.js +0 -0
- /package/node_modules/{boxen/node_modules/is-fullwidth-code-point → rc/node_modules/strip-json-comments}/license +0 -0
- /package/node_modules/{strip-json-comments → rc/node_modules/strip-json-comments}/readme.md +0 -0
- /package/node_modules/{ansi-align → string-width}/node_modules/strip-ansi/index.d.ts +0 -0
- /package/node_modules/{yargs/node_modules/strip-ansi → strip-ansi}/index.d.ts +0 -0
- /package/node_modules/{tar-fs/test/fixtures/d/file2 → undici/lib/llhttp/.gitkeep} +0 -0
- /package/node_modules/{core-util-is → verror/node_modules/core-util-is}/float.patch +0 -0
- /package/node_modules/{core-util-is → verror/node_modules/core-util-is}/test.js +0 -0
- /package/node_modules/{require-main-filename → yargs/node_modules/yargs-parser}/LICENSE.txt +0 -0
|
@@ -21,39 +21,37 @@
|
|
|
21
21
|
# toplevel Makefile. It may make sense to generate some .mk files on
|
|
22
22
|
# the side to keep the files readable.
|
|
23
23
|
|
|
24
|
-
from __future__ import print_function
|
|
25
24
|
|
|
25
|
+
import hashlib
|
|
26
26
|
import os
|
|
27
27
|
import re
|
|
28
|
-
import sys
|
|
29
28
|
import subprocess
|
|
29
|
+
import sys
|
|
30
|
+
|
|
30
31
|
import gyp
|
|
31
32
|
import gyp.common
|
|
32
33
|
import gyp.xcode_emulation
|
|
33
34
|
from gyp.common import GetEnvironFallback
|
|
34
|
-
from gyp.common import GypError
|
|
35
|
-
|
|
36
|
-
import hashlib
|
|
37
35
|
|
|
38
36
|
generator_default_variables = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
37
|
+
"EXECUTABLE_PREFIX": "",
|
|
38
|
+
"EXECUTABLE_SUFFIX": "",
|
|
39
|
+
"STATIC_LIB_PREFIX": "lib",
|
|
40
|
+
"SHARED_LIB_PREFIX": "lib",
|
|
41
|
+
"STATIC_LIB_SUFFIX": ".a",
|
|
42
|
+
"INTERMEDIATE_DIR": "$(obj).$(TOOLSET)/$(TARGET)/geni",
|
|
43
|
+
"SHARED_INTERMEDIATE_DIR": "$(obj)/gen",
|
|
44
|
+
"PRODUCT_DIR": "$(builddir)",
|
|
45
|
+
"RULE_INPUT_ROOT": "%(INPUT_ROOT)s", # This gets expanded by Python.
|
|
46
|
+
"RULE_INPUT_DIRNAME": "%(INPUT_DIRNAME)s", # This gets expanded by Python.
|
|
47
|
+
"RULE_INPUT_PATH": "$(abspath $<)",
|
|
48
|
+
"RULE_INPUT_EXT": "$(suffix $<)",
|
|
49
|
+
"RULE_INPUT_NAME": "$(notdir $<)",
|
|
50
|
+
"CONFIGURATION_NAME": "$(BUILDTYPE)",
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
# Make supports multiple toolsets
|
|
56
|
-
generator_supports_multiple_toolsets =
|
|
54
|
+
generator_supports_multiple_toolsets = gyp.common.CrossCompileRequested()
|
|
57
55
|
|
|
58
56
|
# Request sorted dependencies in the order from dependents to dependencies.
|
|
59
57
|
generator_wants_sorted_dependencies = False
|
|
@@ -66,63 +64,72 @@ generator_filelist_paths = None
|
|
|
66
64
|
|
|
67
65
|
|
|
68
66
|
def CalculateVariables(default_variables, params):
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
default_variables.setdefault('SHARED_LIB_SUFFIX', '.a')
|
|
67
|
+
"""Calculate additional variables for use in the build (called by gyp)."""
|
|
68
|
+
flavor = gyp.common.GetFlavor(params)
|
|
69
|
+
if flavor == "mac":
|
|
70
|
+
default_variables.setdefault("OS", "mac")
|
|
71
|
+
default_variables.setdefault("SHARED_LIB_SUFFIX", ".dylib")
|
|
72
|
+
default_variables.setdefault(
|
|
73
|
+
"SHARED_LIB_DIR", generator_default_variables["PRODUCT_DIR"]
|
|
74
|
+
)
|
|
75
|
+
default_variables.setdefault(
|
|
76
|
+
"LIB_DIR", generator_default_variables["PRODUCT_DIR"]
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
# Copy additional generator configuration data from Xcode, which is shared
|
|
80
|
+
# by the Mac Make generator.
|
|
81
|
+
import gyp.generator.xcode as xcode_generator # noqa: PLC0415
|
|
82
|
+
|
|
83
|
+
global generator_additional_non_configuration_keys
|
|
84
|
+
generator_additional_non_configuration_keys = getattr(
|
|
85
|
+
xcode_generator, "generator_additional_non_configuration_keys", []
|
|
86
|
+
)
|
|
87
|
+
global generator_additional_path_sections
|
|
88
|
+
generator_additional_path_sections = getattr(
|
|
89
|
+
xcode_generator, "generator_additional_path_sections", []
|
|
90
|
+
)
|
|
91
|
+
global generator_extra_sources_for_rules
|
|
92
|
+
generator_extra_sources_for_rules = getattr(
|
|
93
|
+
xcode_generator, "generator_extra_sources_for_rules", []
|
|
94
|
+
)
|
|
95
|
+
COMPILABLE_EXTENSIONS.update({".m": "objc", ".mm": "objcxx"})
|
|
99
96
|
else:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
operating_system = flavor
|
|
98
|
+
if flavor == "android":
|
|
99
|
+
operating_system = "linux" # Keep this legacy behavior for now.
|
|
100
|
+
default_variables.setdefault("OS", operating_system)
|
|
101
|
+
if flavor == "aix":
|
|
102
|
+
default_variables.setdefault("SHARED_LIB_SUFFIX", ".a")
|
|
103
|
+
elif flavor == "zos":
|
|
104
|
+
default_variables.setdefault("SHARED_LIB_SUFFIX", ".x")
|
|
105
|
+
COMPILABLE_EXTENSIONS.update({".pli": "pli"})
|
|
106
|
+
else:
|
|
107
|
+
default_variables.setdefault("SHARED_LIB_SUFFIX", ".so")
|
|
108
|
+
default_variables.setdefault("SHARED_LIB_DIR", "$(builddir)/lib.$(TOOLSET)")
|
|
109
|
+
default_variables.setdefault("LIB_DIR", "$(obj).$(TOOLSET)")
|
|
103
110
|
|
|
104
111
|
|
|
105
112
|
def CalculateGeneratorInputInfo(params):
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
113
|
+
"""Calculate the generator specific info that gets fed to input (called by
|
|
114
|
+
gyp)."""
|
|
115
|
+
generator_flags = params.get("generator_flags", {})
|
|
116
|
+
android_ndk_version = generator_flags.get("android_ndk_version", None)
|
|
117
|
+
# Android NDK requires a strict link order.
|
|
118
|
+
if android_ndk_version:
|
|
119
|
+
global generator_wants_sorted_dependencies
|
|
120
|
+
generator_wants_sorted_dependencies = True
|
|
121
|
+
|
|
122
|
+
output_dir = params["options"].generator_output or params["options"].toplevel_dir
|
|
123
|
+
builddir_name = generator_flags.get("output_dir", "out")
|
|
124
|
+
qualified_out_dir = os.path.normpath(
|
|
125
|
+
os.path.join(output_dir, builddir_name, "gypfiles")
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
global generator_filelist_paths
|
|
129
|
+
generator_filelist_paths = {
|
|
130
|
+
"toplevel": params["options"].toplevel_dir,
|
|
131
|
+
"qualified_out_dir": qualified_out_dir,
|
|
132
|
+
}
|
|
126
133
|
|
|
127
134
|
|
|
128
135
|
# The .d checking code below uses these functions:
|
|
@@ -135,7 +142,7 @@ def CalculateGeneratorInputInfo(params):
|
|
|
135
142
|
# is for example
|
|
136
143
|
# out/Release/.deps/out/Release/Chromium?Framework.framework/foo
|
|
137
144
|
# This is the replacement character.
|
|
138
|
-
SPACE_REPLACEMENT =
|
|
145
|
+
SPACE_REPLACEMENT = "?"
|
|
139
146
|
|
|
140
147
|
|
|
141
148
|
LINK_COMMANDS_LINUX = """\
|
|
@@ -149,7 +156,32 @@ cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
|
|
|
149
156
|
# special "figure out circular dependencies" flags around the entire
|
|
150
157
|
# input list during linking.
|
|
151
158
|
quiet_cmd_link = LINK($(TOOLSET)) $@
|
|
152
|
-
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -
|
|
159
|
+
cmd_link = $(LINK.$(TOOLSET)) -o $@ $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
|
|
160
|
+
|
|
161
|
+
# Note: this does not handle spaces in paths
|
|
162
|
+
define xargs
|
|
163
|
+
$(1) $(word 1,$(2))
|
|
164
|
+
$(if $(word 2,$(2)),$(call xargs,$(1),$(wordlist 2,$(words $(2)),$(2))))
|
|
165
|
+
endef
|
|
166
|
+
|
|
167
|
+
define write-to-file
|
|
168
|
+
@: >$(1)
|
|
169
|
+
$(call xargs,@printf "%s\\n" >>$(1),$(2))
|
|
170
|
+
endef
|
|
171
|
+
|
|
172
|
+
OBJ_FILE_LIST := ar-file-list
|
|
173
|
+
|
|
174
|
+
define create_archive
|
|
175
|
+
rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
|
|
176
|
+
$(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
|
|
177
|
+
$(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
|
|
178
|
+
endef
|
|
179
|
+
|
|
180
|
+
define create_thin_archive
|
|
181
|
+
rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
|
|
182
|
+
$(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
|
|
183
|
+
$(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
|
|
184
|
+
endef
|
|
153
185
|
|
|
154
186
|
# We support two kinds of shared objects (.so):
|
|
155
187
|
# 1) shared_library, which is just bundling together many dependent libraries
|
|
@@ -168,15 +200,15 @@ cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--s
|
|
|
168
200
|
# - Set SONAME to the library filename so our binaries don't reference
|
|
169
201
|
# the local, absolute paths used on the link command-line.
|
|
170
202
|
quiet_cmd_solink = SOLINK($(TOOLSET)) $@
|
|
171
|
-
cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -
|
|
203
|
+
cmd_solink = $(LINK.$(TOOLSET)) -o $@ -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
|
|
172
204
|
|
|
173
205
|
quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
|
|
174
|
-
cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -
|
|
175
|
-
"""
|
|
206
|
+
cmd_solink_module = $(LINK.$(TOOLSET)) -o $@ -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
|
|
207
|
+
""" # noqa: E501
|
|
176
208
|
|
|
177
209
|
LINK_COMMANDS_MAC = """\
|
|
178
210
|
quiet_cmd_alink = LIBTOOL-STATIC $@
|
|
179
|
-
cmd_alink = rm -f $@ &&
|
|
211
|
+
cmd_alink = rm -f $@ && %(python)s gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %%.o,$^)
|
|
180
212
|
|
|
181
213
|
quiet_cmd_link = LINK($(TOOLSET)) $@
|
|
182
214
|
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
|
|
@@ -186,7 +218,7 @@ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o
|
|
|
186
218
|
|
|
187
219
|
quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
|
|
188
220
|
cmd_solink_module = $(LINK.$(TOOLSET)) -bundle $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
|
|
189
|
-
"""
|
|
221
|
+
""" % {"python": sys.executable} # noqa: E501
|
|
190
222
|
|
|
191
223
|
LINK_COMMANDS_ANDROID = """\
|
|
192
224
|
quiet_cmd_alink = AR($(TOOLSET)) $@
|
|
@@ -195,13 +227,38 @@ cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^)
|
|
|
195
227
|
quiet_cmd_alink_thin = AR($(TOOLSET)) $@
|
|
196
228
|
cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
|
|
197
229
|
|
|
230
|
+
# Note: this does not handle spaces in paths
|
|
231
|
+
define xargs
|
|
232
|
+
$(1) $(word 1,$(2))
|
|
233
|
+
$(if $(word 2,$(2)),$(call xargs,$(1),$(wordlist 2,$(words $(2)),$(2))))
|
|
234
|
+
endef
|
|
235
|
+
|
|
236
|
+
define write-to-file
|
|
237
|
+
@: >$(1)
|
|
238
|
+
$(call xargs,@printf "%s\\n" >>$(1),$(2))
|
|
239
|
+
endef
|
|
240
|
+
|
|
241
|
+
OBJ_FILE_LIST := ar-file-list
|
|
242
|
+
|
|
243
|
+
define create_archive
|
|
244
|
+
rm -f $(1) $(1).$(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
|
|
245
|
+
$(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
|
|
246
|
+
$(AR.$(TOOLSET)) crs $(1) @$(1).$(OBJ_FILE_LIST)
|
|
247
|
+
endef
|
|
248
|
+
|
|
249
|
+
define create_thin_archive
|
|
250
|
+
rm -f $(1) $(OBJ_FILE_LIST); mkdir -p `dirname $(1)`
|
|
251
|
+
$(call write-to-file,$(1).$(OBJ_FILE_LIST),$(filter %.o,$(2)))
|
|
252
|
+
$(AR.$(TOOLSET)) crsT $(1) @$(1).$(OBJ_FILE_LIST)
|
|
253
|
+
endef
|
|
254
|
+
|
|
198
255
|
# Due to circular dependencies between libraries :(, we wrap the
|
|
199
256
|
# special "figure out circular dependencies" flags around the entire
|
|
200
257
|
# input list during linking.
|
|
201
258
|
quiet_cmd_link = LINK($(TOOLSET)) $@
|
|
202
259
|
quiet_cmd_link_host = LINK($(TOOLSET)) $@
|
|
203
260
|
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
|
|
204
|
-
cmd_link_host = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
|
|
261
|
+
cmd_link_host = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) -Wl,--end-group $(LIBS)
|
|
205
262
|
|
|
206
263
|
# Other shared-object link notes:
|
|
207
264
|
# - Set SONAME to the library filename so our binaries don't reference
|
|
@@ -213,7 +270,7 @@ quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
|
|
|
213
270
|
cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
|
|
214
271
|
quiet_cmd_solink_module_host = SOLINK_MODULE($(TOOLSET)) $@
|
|
215
272
|
cmd_solink_module_host = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
|
|
216
|
-
"""
|
|
273
|
+
""" # noqa: E501
|
|
217
274
|
|
|
218
275
|
|
|
219
276
|
LINK_COMMANDS_AIX = """\
|
|
@@ -231,7 +288,25 @@ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o
|
|
|
231
288
|
|
|
232
289
|
quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
|
|
233
290
|
cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
|
|
234
|
-
"""
|
|
291
|
+
""" # noqa: E501
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
LINK_COMMANDS_OS400 = """\
|
|
295
|
+
quiet_cmd_alink = AR($(TOOLSET)) $@
|
|
296
|
+
cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) -X64 crs $@ $(filter %.o,$^)
|
|
297
|
+
|
|
298
|
+
quiet_cmd_alink_thin = AR($(TOOLSET)) $@
|
|
299
|
+
cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) -X64 crs $@ $(filter %.o,$^)
|
|
300
|
+
|
|
301
|
+
quiet_cmd_link = LINK($(TOOLSET)) $@
|
|
302
|
+
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
|
|
303
|
+
|
|
304
|
+
quiet_cmd_solink = SOLINK($(TOOLSET)) $@
|
|
305
|
+
cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
|
|
306
|
+
|
|
307
|
+
quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
|
|
308
|
+
cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
|
|
309
|
+
""" # noqa: E501
|
|
235
310
|
|
|
236
311
|
|
|
237
312
|
LINK_COMMANDS_OS390 = """\
|
|
@@ -245,17 +320,17 @@ quiet_cmd_link = LINK($(TOOLSET)) $@
|
|
|
245
320
|
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
|
|
246
321
|
|
|
247
322
|
quiet_cmd_solink = SOLINK($(TOOLSET)) $@
|
|
248
|
-
cmd_solink = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
|
|
323
|
+
cmd_solink = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(LD_INPUTS) $(LIBS)
|
|
249
324
|
|
|
250
325
|
quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
|
|
251
|
-
cmd_solink_module = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
|
|
252
|
-
|
|
253
|
-
"""
|
|
326
|
+
cmd_solink_module = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
|
|
327
|
+
""" # noqa: E501
|
|
254
328
|
|
|
255
329
|
|
|
256
330
|
# Header of toplevel Makefile.
|
|
257
331
|
# This should go into the build tree, but it's easier to keep it here for now.
|
|
258
|
-
SHARED_HEADER = (
|
|
332
|
+
SHARED_HEADER = (
|
|
333
|
+
"""\
|
|
259
334
|
# We borrow heavily from the kernel build setup, though we are simpler since
|
|
260
335
|
# we don't have Kconfig tweaking settings on us.
|
|
261
336
|
|
|
@@ -304,7 +379,8 @@ CXX.target ?= %(CXX.target)s
|
|
|
304
379
|
CXXFLAGS.target ?= $(CPPFLAGS) $(CXXFLAGS)
|
|
305
380
|
LINK.target ?= %(LINK.target)s
|
|
306
381
|
LDFLAGS.target ?= $(LDFLAGS)
|
|
307
|
-
AR.target ?=
|
|
382
|
+
AR.target ?= %(AR.target)s
|
|
383
|
+
PLI.target ?= %(PLI.target)s
|
|
308
384
|
|
|
309
385
|
# C++ apps need to be linked with g++.
|
|
310
386
|
LINK ?= $(CXX.target)
|
|
@@ -316,8 +392,9 @@ CFLAGS.host ?= $(CPPFLAGS_host) $(CFLAGS_host)
|
|
|
316
392
|
CXX.host ?= %(CXX.host)s
|
|
317
393
|
CXXFLAGS.host ?= $(CPPFLAGS_host) $(CXXFLAGS_host)
|
|
318
394
|
LINK.host ?= %(LINK.host)s
|
|
319
|
-
LDFLAGS.host ?=
|
|
395
|
+
LDFLAGS.host ?= $(LDFLAGS_host)
|
|
320
396
|
AR.host ?= %(AR.host)s
|
|
397
|
+
PLI.host ?= %(PLI.host)s
|
|
321
398
|
|
|
322
399
|
# Define a dir function that can handle spaces.
|
|
323
400
|
# http://www.gnu.org/software/make/manual/make.html#Syntax-of-Functions
|
|
@@ -327,8 +404,12 @@ empty :=
|
|
|
327
404
|
space := $(empty) $(empty)
|
|
328
405
|
|
|
329
406
|
# http://stackoverflow.com/questions/1189781/using-make-dir-or-notdir-on-a-path-with-spaces
|
|
330
|
-
replace_spaces = $(subst $(space),"""
|
|
331
|
-
|
|
407
|
+
replace_spaces = $(subst $(space),"""
|
|
408
|
+
+ SPACE_REPLACEMENT
|
|
409
|
+
+ """,$1)
|
|
410
|
+
unreplace_spaces = $(subst """
|
|
411
|
+
+ SPACE_REPLACEMENT
|
|
412
|
+
+ """,$(space),$1)
|
|
332
413
|
dirx = $(call unreplace_spaces,$(dir $(call replace_spaces,$1)))
|
|
333
414
|
|
|
334
415
|
# Flags to make gcc output dependency info. Note that you need to be
|
|
@@ -358,45 +439,61 @@ DEPFLAGS = %(makedep_args)s -MF $(depfile).raw
|
|
|
358
439
|
# and dollar signs past make, the shell, and sed at the same time.
|
|
359
440
|
# Doesn't work with spaces, but that's fine: .d files have spaces in
|
|
360
441
|
# their names replaced with other characters."""
|
|
361
|
-
r"""
|
|
442
|
+
r"""
|
|
362
443
|
define fixup_dep
|
|
363
444
|
# The depfile may not exist if the input file didn't have any #includes.
|
|
364
445
|
touch $(depfile).raw
|
|
365
|
-
# Fixup path as in (1).
|
|
366
|
-
|
|
446
|
+
# Fixup path as in (1)."""
|
|
447
|
+
+ (
|
|
448
|
+
r"""
|
|
449
|
+
sed -e "s|^$(notdir $@)|$@|" -re 's/\\\\([^$$])/\/\1/g' $(depfile).raw >> $(depfile)"""
|
|
450
|
+
if sys.platform == "win32"
|
|
451
|
+
else r"""
|
|
452
|
+
sed -e "s|^$(notdir $@)|$@|" $(depfile).raw >> $(depfile)"""
|
|
453
|
+
)
|
|
454
|
+
+ r"""
|
|
367
455
|
# Add extra rules as in (2).
|
|
368
456
|
# We remove slashes and replace spaces with new lines;
|
|
369
457
|
# remove blank lines;
|
|
370
|
-
# delete the first line and append a colon to the remaining lines.
|
|
371
|
-
|
|
458
|
+
# delete the first line and append a colon to the remaining lines."""
|
|
459
|
+
+ (
|
|
460
|
+
"""
|
|
461
|
+
sed -e 's/\\\\\\\\$$//' -e 's/\\\\\\\\/\\//g' -e 'y| |\\n|' $(depfile).raw |\\"""
|
|
462
|
+
if sys.platform == "win32"
|
|
463
|
+
else """
|
|
464
|
+
sed -e 's|\\\\||' -e 'y| |\\n|' $(depfile).raw |\\"""
|
|
465
|
+
)
|
|
466
|
+
+ r"""
|
|
372
467
|
grep -v '^$$' |\
|
|
373
468
|
sed -e 1d -e 's|$$|:|' \
|
|
374
469
|
>> $(depfile)
|
|
375
470
|
rm $(depfile).raw
|
|
376
471
|
endef
|
|
377
472
|
"""
|
|
378
|
-
"""
|
|
473
|
+
"""
|
|
379
474
|
# Command definitions:
|
|
380
475
|
# - cmd_foo is the actual command to run;
|
|
381
476
|
# - quiet_cmd_foo is the brief-output summary of the command.
|
|
382
477
|
|
|
383
478
|
quiet_cmd_cc = CC($(TOOLSET)) $@
|
|
384
|
-
cmd_cc = $(CC.$(TOOLSET)) $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c
|
|
479
|
+
cmd_cc = $(CC.$(TOOLSET)) -o $@ $< $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c
|
|
385
480
|
|
|
386
481
|
quiet_cmd_cxx = CXX($(TOOLSET)) $@
|
|
387
|
-
cmd_cxx = $(CXX.$(TOOLSET)) $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c
|
|
482
|
+
cmd_cxx = $(CXX.$(TOOLSET)) -o $@ $< $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c
|
|
388
483
|
%(extra_commands)s
|
|
389
484
|
quiet_cmd_touch = TOUCH $@
|
|
390
485
|
cmd_touch = touch $@
|
|
391
486
|
|
|
392
487
|
quiet_cmd_copy = COPY $@
|
|
393
488
|
# send stderr to /dev/null to ignore messages when linking directories.
|
|
394
|
-
cmd_copy = rm -rf "$@" && cp %(copy_archive_args)s "$<" "$@"
|
|
489
|
+
cmd_copy = ln -f "$<" "$@" 2>/dev/null || (rm -rf "$@" && cp %(copy_archive_args)s "$<" "$@")
|
|
395
490
|
|
|
396
|
-
|
|
397
|
-
"""
|
|
491
|
+
quiet_cmd_symlink = SYMLINK $@
|
|
492
|
+
cmd_symlink = ln -sf "$<" "$@"
|
|
398
493
|
|
|
399
|
-
|
|
494
|
+
%(link_commands)s
|
|
495
|
+
""" # noqa: E501
|
|
496
|
+
r"""
|
|
400
497
|
# Define an escape_quotes function to escape single quotes.
|
|
401
498
|
# This allows us to handle quotes properly as long as we always use
|
|
402
499
|
# use single quotes and escape_quotes.
|
|
@@ -412,7 +509,7 @@ escape_vars = $(subst $$,$$$$,$(1))
|
|
|
412
509
|
# (e.g., dash, bash).
|
|
413
510
|
exact_echo = printf '%%s\n' '$(call escape_quotes,$(1))'
|
|
414
511
|
"""
|
|
415
|
-
"""
|
|
512
|
+
"""
|
|
416
513
|
# Helper to compare the command we're about to run against the command
|
|
417
514
|
# we logged the last time we ran the command. Produces an empty
|
|
418
515
|
# string (false) when the commands match.
|
|
@@ -423,8 +520,9 @@ exact_echo = printf '%%s\n' '$(call escape_quotes,$(1))'
|
|
|
423
520
|
# $(filter-out $(cmd_$@), $(cmd_$(1))))
|
|
424
521
|
# We instead substitute each for the empty string into the other, and
|
|
425
522
|
# say they're equal if both substitutions produce the empty string.
|
|
426
|
-
# .d files contain """
|
|
427
|
-
|
|
523
|
+
# .d files contain """
|
|
524
|
+
+ SPACE_REPLACEMENT
|
|
525
|
+
+ """ instead of spaces, take that into account.
|
|
428
526
|
command_changed = $(or $(subst $(cmd_$(1)),,$(cmd_$(call replace_spaces,$@))),\\
|
|
429
527
|
$(subst $(cmd_$(call replace_spaces,$@)),,$(cmd_$(1))))
|
|
430
528
|
|
|
@@ -455,10 +553,12 @@ endef
|
|
|
455
553
|
# Should always run for a given target to handle command-line changes.
|
|
456
554
|
# Second argument, if non-zero, makes it do asm/C/C++ dependency munging.
|
|
457
555
|
# Third argument, if non-zero, makes it do POSTBUILDS processing.
|
|
458
|
-
# Note: We intentionally do NOT call dirx for depfile, since it contains """
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
556
|
+
# Note: We intentionally do NOT call dirx for depfile, since it contains """
|
|
557
|
+
+ SPACE_REPLACEMENT
|
|
558
|
+
+ """ for
|
|
559
|
+
# spaces already and dirx strips the """
|
|
560
|
+
+ SPACE_REPLACEMENT
|
|
561
|
+
+ """ characters.
|
|
462
562
|
define do_cmd
|
|
463
563
|
$(if $(or $(command_changed),$(prereq_changed)),
|
|
464
564
|
@$(call exact_echo, $($(quiet)cmd_$(1)))
|
|
@@ -491,7 +591,8 @@ endef
|
|
|
491
591
|
.PHONY: FORCE_DO_CMD
|
|
492
592
|
FORCE_DO_CMD:
|
|
493
593
|
|
|
494
|
-
"""
|
|
594
|
+
""" # noqa: E501
|
|
595
|
+
)
|
|
495
596
|
|
|
496
597
|
SHARED_HEADER_MAC_COMMANDS = """
|
|
497
598
|
quiet_cmd_objc = CXX($(TOOLSET)) $@
|
|
@@ -514,44 +615,54 @@ cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
|
|
|
514
615
|
# Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd
|
|
515
616
|
# already.
|
|
516
617
|
quiet_cmd_mac_tool = MACTOOL $(4) $<
|
|
517
|
-
cmd_mac_tool =
|
|
618
|
+
cmd_mac_tool = %(python)s gyp-mac-tool $(4) $< "$@"
|
|
518
619
|
|
|
519
620
|
quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@
|
|
520
|
-
cmd_mac_package_framework =
|
|
621
|
+
cmd_mac_package_framework = %(python)s gyp-mac-tool package-framework "$@" $(4)
|
|
521
622
|
|
|
522
623
|
quiet_cmd_infoplist = INFOPLIST $@
|
|
523
624
|
cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -o "$@"
|
|
524
|
-
"""
|
|
625
|
+
""" % {"python": sys.executable} # noqa: E501
|
|
525
626
|
|
|
526
627
|
|
|
527
628
|
def WriteRootHeaderSuffixRules(writer):
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
629
|
+
extensions = sorted(COMPILABLE_EXTENSIONS.keys(), key=str.lower)
|
|
630
|
+
|
|
631
|
+
writer.write("# Suffix rules, putting all outputs into $(obj).\n")
|
|
632
|
+
for ext in extensions:
|
|
633
|
+
writer.write("$(obj).$(TOOLSET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD\n" % ext)
|
|
634
|
+
writer.write("\t@$(call do_cmd,%s,1)\n" % COMPILABLE_EXTENSIONS[ext])
|
|
635
|
+
|
|
636
|
+
writer.write("\n# Try building from generated source, too.\n")
|
|
637
|
+
for ext in extensions:
|
|
638
|
+
writer.write(
|
|
639
|
+
"$(obj).$(TOOLSET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD\n" % ext
|
|
640
|
+
)
|
|
641
|
+
writer.write("\t@$(call do_cmd,%s,1)\n" % COMPILABLE_EXTENSIONS[ext])
|
|
642
|
+
writer.write("\n")
|
|
643
|
+
for ext in extensions:
|
|
644
|
+
writer.write("$(obj).$(TOOLSET)/%%.o: $(obj)/%%%s FORCE_DO_CMD\n" % ext)
|
|
645
|
+
writer.write("\t@$(call do_cmd,%s,1)\n" % COMPILABLE_EXTENSIONS[ext])
|
|
646
|
+
writer.write("\n")
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
SHARED_HEADER_OS390_COMMANDS = """
|
|
650
|
+
PLIFLAGS.target ?= -qlp=64 -qlimits=extname=31 $(PLIFLAGS)
|
|
651
|
+
PLIFLAGS.host ?= -qlp=64 -qlimits=extname=31 $(PLIFLAGS)
|
|
652
|
+
|
|
653
|
+
quiet_cmd_pli = PLI($(TOOLSET)) $@
|
|
654
|
+
cmd_pli = $(PLI.$(TOOLSET)) $(GYP_PLIFLAGS) $(PLIFLAGS.$(TOOLSET)) -c $< && \
|
|
655
|
+
if [ -f $(notdir $@) ]; then /bin/cp $(notdir $@) $@; else true; fi
|
|
656
|
+
"""
|
|
657
|
+
|
|
658
|
+
SHARED_HEADER_SUFFIX_RULES_COMMENT1 = """\
|
|
548
659
|
# Suffix rules, putting all outputs into $(obj).
|
|
549
|
-
"""
|
|
660
|
+
"""
|
|
550
661
|
|
|
551
662
|
|
|
552
|
-
SHARED_HEADER_SUFFIX_RULES_COMMENT2 =
|
|
663
|
+
SHARED_HEADER_SUFFIX_RULES_COMMENT2 = """\
|
|
553
664
|
# Try building from generated source, too.
|
|
554
|
-
"""
|
|
665
|
+
"""
|
|
555
666
|
|
|
556
667
|
|
|
557
668
|
SHARED_FOOTER = """\
|
|
@@ -574,114 +685,91 @@ header = """\
|
|
|
574
685
|
|
|
575
686
|
# Maps every compilable file extension to the do_cmd that compiles it.
|
|
576
687
|
COMPILABLE_EXTENSIONS = {
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
688
|
+
".c": "cc",
|
|
689
|
+
".cc": "cxx",
|
|
690
|
+
".cpp": "cxx",
|
|
691
|
+
".cxx": "cxx",
|
|
692
|
+
".s": "cc",
|
|
693
|
+
".S": "cc",
|
|
583
694
|
}
|
|
584
695
|
|
|
696
|
+
|
|
585
697
|
def Compilable(filename):
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
if res:
|
|
589
|
-
return True
|
|
590
|
-
return False
|
|
698
|
+
"""Return true if the file is compilable (should be in OBJS)."""
|
|
699
|
+
return any(res for res in (filename.endswith(e) for e in COMPILABLE_EXTENSIONS))
|
|
591
700
|
|
|
592
701
|
|
|
593
702
|
def Linkable(filename):
|
|
594
|
-
|
|
595
|
-
|
|
703
|
+
"""Return true if the file is linkable (should be on the link line)."""
|
|
704
|
+
return filename.endswith(".o")
|
|
596
705
|
|
|
597
706
|
|
|
598
707
|
def Target(filename):
|
|
599
|
-
|
|
600
|
-
|
|
708
|
+
"""Translate a compilable filename to its .o target."""
|
|
709
|
+
return os.path.splitext(filename)[0] + ".o"
|
|
601
710
|
|
|
602
711
|
|
|
603
712
|
def EscapeShellArgument(s):
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
713
|
+
"""Quotes an argument so that it will be interpreted literally by a POSIX
|
|
714
|
+
shell. Taken from
|
|
715
|
+
http://stackoverflow.com/questions/35817/whats-the-best-way-to-escape-ossystem-calls-in-python
|
|
716
|
+
"""
|
|
717
|
+
return "'" + s.replace("'", "'\\''") + "'"
|
|
609
718
|
|
|
610
719
|
|
|
611
720
|
def EscapeMakeVariableExpansion(s):
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
721
|
+
"""Make has its own variable expansion syntax using $. We must escape it for
|
|
722
|
+
string to be interpreted literally."""
|
|
723
|
+
return s.replace("$", "$$")
|
|
615
724
|
|
|
616
725
|
|
|
617
726
|
def EscapeCppDefine(s):
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
727
|
+
"""Escapes a CPP define so that it will reach the compiler unaltered."""
|
|
728
|
+
s = EscapeShellArgument(s)
|
|
729
|
+
s = EscapeMakeVariableExpansion(s)
|
|
730
|
+
# '#' characters must be escaped even embedded in a string, else Make will
|
|
731
|
+
# treat it as the start of a comment.
|
|
732
|
+
return s.replace("#", r"\#")
|
|
624
733
|
|
|
625
734
|
|
|
626
735
|
def QuoteIfNecessary(string):
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
736
|
+
"""TODO: Should this ideally be replaced with one or more of the above
|
|
737
|
+
functions?"""
|
|
738
|
+
if '"' in string:
|
|
739
|
+
string = '"' + string.replace('"', '\\"') + '"'
|
|
740
|
+
return string
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
def replace_sep(string):
|
|
744
|
+
if sys.platform == "win32":
|
|
745
|
+
string = string.replace("\\\\", "/").replace("\\", "/")
|
|
746
|
+
return string
|
|
632
747
|
|
|
633
748
|
|
|
634
749
|
def StringToMakefileVariable(string):
|
|
635
|
-
|
|
636
|
-
|
|
750
|
+
"""Convert a string to a value that is acceptable as a make variable name."""
|
|
751
|
+
return re.sub("[^a-zA-Z0-9_]", "_", string)
|
|
752
|
+
|
|
753
|
+
|
|
754
|
+
srcdir_prefix = ""
|
|
637
755
|
|
|
638
756
|
|
|
639
|
-
srcdir_prefix = ''
|
|
640
757
|
def Sourceify(path):
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
758
|
+
"""Convert a path to its source directory form."""
|
|
759
|
+
if "$(" in path:
|
|
760
|
+
return path
|
|
761
|
+
if os.path.isabs(path):
|
|
762
|
+
return path
|
|
763
|
+
return srcdir_prefix + path
|
|
764
|
+
|
|
647
765
|
|
|
766
|
+
def QuoteSpaces(s, quote=r"\ "):
|
|
767
|
+
return s.replace(" ", quote)
|
|
648
768
|
|
|
649
|
-
def QuoteSpaces(s, quote=r'\ '):
|
|
650
|
-
return s.replace(' ', quote)
|
|
651
769
|
|
|
652
770
|
def SourceifyAndQuoteSpaces(path):
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
# TODO: Avoid code duplication with _ValidateSourcesForMSVSProject in msvs.py.
|
|
657
|
-
def _ValidateSourcesForOSX(spec, all_sources):
|
|
658
|
-
"""Makes sure if duplicate basenames are not specified in the source list.
|
|
659
|
-
|
|
660
|
-
Arguments:
|
|
661
|
-
spec: The target dictionary containing the properties of the target.
|
|
662
|
-
"""
|
|
663
|
-
if spec.get('type', None) != 'static_library':
|
|
664
|
-
return
|
|
665
|
-
|
|
666
|
-
basenames = {}
|
|
667
|
-
for source in all_sources:
|
|
668
|
-
name, ext = os.path.splitext(source)
|
|
669
|
-
is_compiled_file = ext in [
|
|
670
|
-
'.c', '.cc', '.cpp', '.cxx', '.m', '.mm', '.s', '.S']
|
|
671
|
-
if not is_compiled_file:
|
|
672
|
-
continue
|
|
673
|
-
basename = os.path.basename(name) # Don't include extension.
|
|
674
|
-
basenames.setdefault(basename, []).append(source)
|
|
675
|
-
|
|
676
|
-
error = ''
|
|
677
|
-
for basename, files in basenames.items():
|
|
678
|
-
if len(files) > 1:
|
|
679
|
-
error += ' %s: %s\n' % (basename, ' '.join(files))
|
|
680
|
-
|
|
681
|
-
if error:
|
|
682
|
-
print(('static library %s has several files with the same basename:\n' % spec['target_name'])
|
|
683
|
-
+ error + 'libtool on OS X will generate' + ' warnings for them.')
|
|
684
|
-
raise GypError('Duplicate basenames in sources section, see list above')
|
|
771
|
+
"""Convert a path to its source directory form and quote spaces."""
|
|
772
|
+
return QuoteSpaces(Sourceify(path))
|
|
685
773
|
|
|
686
774
|
|
|
687
775
|
# Map from qualified target to path to output.
|
|
@@ -693,1573 +781,1975 @@ target_outputs = {}
|
|
|
693
781
|
target_link_deps = {}
|
|
694
782
|
|
|
695
783
|
|
|
696
|
-
class MakefileWriter
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
Its only real entry point is Write(), and is mostly used for namespacing.
|
|
700
|
-
"""
|
|
701
|
-
|
|
702
|
-
def __init__(self, generator_flags, flavor):
|
|
703
|
-
self.generator_flags = generator_flags
|
|
704
|
-
self.flavor = flavor
|
|
784
|
+
class MakefileWriter:
|
|
785
|
+
"""MakefileWriter packages up the writing of one target-specific foobar.mk.
|
|
705
786
|
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
self.suffix_rules_objdir2 = {}
|
|
787
|
+
Its only real entry point is Write(), and is mostly used for namespacing.
|
|
788
|
+
"""
|
|
709
789
|
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
790
|
+
def __init__(self, generator_flags, flavor):
|
|
791
|
+
self.generator_flags = generator_flags
|
|
792
|
+
self.flavor = flavor
|
|
793
|
+
|
|
794
|
+
self.suffix_rules_srcdir = {}
|
|
795
|
+
self.suffix_rules_objdir1 = {}
|
|
796
|
+
self.suffix_rules_objdir2 = {}
|
|
797
|
+
|
|
798
|
+
# Generate suffix rules for all compilable extensions.
|
|
799
|
+
for ext, value in COMPILABLE_EXTENSIONS.items():
|
|
800
|
+
# Suffix rules for source folder.
|
|
801
|
+
self.suffix_rules_srcdir.update(
|
|
802
|
+
{
|
|
803
|
+
ext: (
|
|
804
|
+
"""\
|
|
714
805
|
$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD
|
|
715
|
-
|
|
716
|
-
"""
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
806
|
+
\t@$(call do_cmd,%s,1)
|
|
807
|
+
"""
|
|
808
|
+
% (ext, value)
|
|
809
|
+
)
|
|
810
|
+
}
|
|
811
|
+
)
|
|
812
|
+
|
|
813
|
+
# Suffix rules for generated source files.
|
|
814
|
+
self.suffix_rules_objdir1.update(
|
|
815
|
+
{
|
|
816
|
+
ext: (
|
|
817
|
+
"""\
|
|
720
818
|
$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD
|
|
721
|
-
|
|
722
|
-
"""
|
|
723
|
-
|
|
819
|
+
\t@$(call do_cmd,%s,1)
|
|
820
|
+
"""
|
|
821
|
+
% (ext, value)
|
|
822
|
+
)
|
|
823
|
+
}
|
|
824
|
+
)
|
|
825
|
+
self.suffix_rules_objdir2.update(
|
|
826
|
+
{
|
|
827
|
+
ext: (
|
|
828
|
+
"""\
|
|
724
829
|
$(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
|
|
725
|
-
|
|
726
|
-
"""
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
830
|
+
\t@$(call do_cmd,%s,1)
|
|
831
|
+
"""
|
|
832
|
+
% (ext, value)
|
|
833
|
+
)
|
|
834
|
+
}
|
|
835
|
+
)
|
|
836
|
+
|
|
837
|
+
def Write(
|
|
838
|
+
self, qualified_target, base_path, output_filename, spec, configs, part_of_all
|
|
839
|
+
):
|
|
840
|
+
"""The main entry point: writes a .mk file for a single target.
|
|
841
|
+
|
|
842
|
+
Arguments:
|
|
843
|
+
qualified_target: target we're generating
|
|
844
|
+
base_path: path relative to source root we're building in, used to resolve
|
|
845
|
+
target-relative paths
|
|
846
|
+
output_filename: output .mk file name to write
|
|
847
|
+
spec, configs: gyp info
|
|
848
|
+
part_of_all: flag indicating this target is part of 'all'
|
|
849
|
+
"""
|
|
850
|
+
gyp.common.EnsureDirExists(output_filename)
|
|
851
|
+
|
|
852
|
+
self.fp = open(output_filename, "w")
|
|
853
|
+
|
|
854
|
+
self.fp.write(header)
|
|
855
|
+
|
|
856
|
+
self.qualified_target = qualified_target
|
|
857
|
+
self.path = base_path
|
|
858
|
+
self.target = spec["target_name"]
|
|
859
|
+
self.type = spec["type"]
|
|
860
|
+
self.toolset = spec["toolset"]
|
|
861
|
+
|
|
862
|
+
self.is_mac_bundle = gyp.xcode_emulation.IsMacBundle(self.flavor, spec)
|
|
863
|
+
if self.flavor == "mac":
|
|
864
|
+
self.xcode_settings = gyp.xcode_emulation.XcodeSettings(spec)
|
|
865
|
+
else:
|
|
866
|
+
self.xcode_settings = None
|
|
744
867
|
|
|
745
|
-
|
|
868
|
+
deps, link_deps = self.ComputeDeps(spec)
|
|
746
869
|
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
870
|
+
# Some of the generation below can add extra output, sources, or
|
|
871
|
+
# link dependencies. All of the out params of the functions that
|
|
872
|
+
# follow use names like extra_foo.
|
|
873
|
+
extra_outputs = []
|
|
874
|
+
extra_sources = []
|
|
875
|
+
extra_link_deps = []
|
|
876
|
+
extra_mac_bundle_resources = []
|
|
877
|
+
mac_bundle_deps = []
|
|
752
878
|
|
|
753
|
-
self.is_mac_bundle = gyp.xcode_emulation.IsMacBundle(self.flavor, spec)
|
|
754
|
-
if self.flavor == 'mac':
|
|
755
|
-
self.xcode_settings = gyp.xcode_emulation.XcodeSettings(spec)
|
|
756
|
-
else:
|
|
757
|
-
self.xcode_settings = None
|
|
758
|
-
|
|
759
|
-
deps, link_deps = self.ComputeDeps(spec)
|
|
760
|
-
|
|
761
|
-
# Some of the generation below can add extra output, sources, or
|
|
762
|
-
# link dependencies. All of the out params of the functions that
|
|
763
|
-
# follow use names like extra_foo.
|
|
764
|
-
extra_outputs = []
|
|
765
|
-
extra_sources = []
|
|
766
|
-
extra_link_deps = []
|
|
767
|
-
extra_mac_bundle_resources = []
|
|
768
|
-
mac_bundle_deps = []
|
|
769
|
-
|
|
770
|
-
if self.is_mac_bundle:
|
|
771
|
-
self.output = self.ComputeMacBundleOutput(spec)
|
|
772
|
-
self.output_binary = self.ComputeMacBundleBinaryOutput(spec)
|
|
773
|
-
else:
|
|
774
|
-
self.output = self.output_binary = self.ComputeOutput(spec)
|
|
775
|
-
|
|
776
|
-
self.is_standalone_static_library = bool(
|
|
777
|
-
spec.get('standalone_static_library', 0))
|
|
778
|
-
self._INSTALLABLE_TARGETS = ('executable', 'loadable_module',
|
|
779
|
-
'shared_library')
|
|
780
|
-
if (self.is_standalone_static_library or
|
|
781
|
-
self.type in self._INSTALLABLE_TARGETS):
|
|
782
|
-
self.alias = os.path.basename(self.output)
|
|
783
|
-
install_path = self._InstallableTargetInstallPath()
|
|
784
|
-
else:
|
|
785
|
-
self.alias = self.output
|
|
786
|
-
install_path = self.output
|
|
787
|
-
|
|
788
|
-
self.WriteLn("TOOLSET := " + self.toolset)
|
|
789
|
-
self.WriteLn("TARGET := " + self.target)
|
|
790
|
-
|
|
791
|
-
# Actions must come first, since they can generate more OBJs for use below.
|
|
792
|
-
if 'actions' in spec:
|
|
793
|
-
self.WriteActions(spec['actions'], extra_sources, extra_outputs,
|
|
794
|
-
extra_mac_bundle_resources, part_of_all)
|
|
795
|
-
|
|
796
|
-
# Rules must be early like actions.
|
|
797
|
-
if 'rules' in spec:
|
|
798
|
-
self.WriteRules(spec['rules'], extra_sources, extra_outputs,
|
|
799
|
-
extra_mac_bundle_resources, part_of_all)
|
|
800
|
-
|
|
801
|
-
if 'copies' in spec:
|
|
802
|
-
self.WriteCopies(spec['copies'], extra_outputs, part_of_all)
|
|
803
|
-
|
|
804
|
-
# Bundle resources.
|
|
805
|
-
if self.is_mac_bundle:
|
|
806
|
-
all_mac_bundle_resources = (
|
|
807
|
-
spec.get('mac_bundle_resources', []) + extra_mac_bundle_resources)
|
|
808
|
-
self.WriteMacBundleResources(all_mac_bundle_resources, mac_bundle_deps)
|
|
809
|
-
self.WriteMacInfoPlist(mac_bundle_deps)
|
|
810
|
-
|
|
811
|
-
# Sources.
|
|
812
|
-
all_sources = spec.get('sources', []) + extra_sources
|
|
813
|
-
if all_sources:
|
|
814
|
-
if self.flavor == 'mac':
|
|
815
|
-
# libtool on OS X generates warnings for duplicate basenames in the same
|
|
816
|
-
# target.
|
|
817
|
-
_ValidateSourcesForOSX(spec, all_sources)
|
|
818
|
-
self.WriteSources(
|
|
819
|
-
configs, deps, all_sources, extra_outputs,
|
|
820
|
-
extra_link_deps, part_of_all,
|
|
821
|
-
gyp.xcode_emulation.MacPrefixHeader(
|
|
822
|
-
self.xcode_settings, lambda p: Sourceify(self.Absolutify(p)),
|
|
823
|
-
self.Pchify))
|
|
824
|
-
sources = list(filter(Compilable, all_sources))
|
|
825
|
-
if sources:
|
|
826
|
-
self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT1)
|
|
827
|
-
extensions = set([os.path.splitext(s)[1] for s in sources])
|
|
828
|
-
for ext in extensions:
|
|
829
|
-
if ext in self.suffix_rules_srcdir:
|
|
830
|
-
self.WriteLn(self.suffix_rules_srcdir[ext])
|
|
831
|
-
self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT2)
|
|
832
|
-
for ext in extensions:
|
|
833
|
-
if ext in self.suffix_rules_objdir1:
|
|
834
|
-
self.WriteLn(self.suffix_rules_objdir1[ext])
|
|
835
|
-
for ext in extensions:
|
|
836
|
-
if ext in self.suffix_rules_objdir2:
|
|
837
|
-
self.WriteLn(self.suffix_rules_objdir2[ext])
|
|
838
|
-
self.WriteLn('# End of this set of suffix rules')
|
|
839
|
-
|
|
840
|
-
# Add dependency from bundle to bundle binary.
|
|
841
879
|
if self.is_mac_bundle:
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
880
|
+
self.output = self.ComputeMacBundleOutput(spec)
|
|
881
|
+
self.output_binary = self.ComputeMacBundleBinaryOutput(spec)
|
|
882
|
+
else:
|
|
883
|
+
self.output = self.output_binary = replace_sep(self.ComputeOutput(spec))
|
|
884
|
+
|
|
885
|
+
self.is_standalone_static_library = bool(
|
|
886
|
+
spec.get("standalone_static_library", 0)
|
|
887
|
+
)
|
|
888
|
+
self._INSTALLABLE_TARGETS = ("executable", "loadable_module", "shared_library")
|
|
889
|
+
if self.is_standalone_static_library or self.type in self._INSTALLABLE_TARGETS:
|
|
890
|
+
self.alias = os.path.basename(self.output)
|
|
891
|
+
install_path = self._InstallableTargetInstallPath()
|
|
892
|
+
else:
|
|
893
|
+
self.alias = self.output
|
|
894
|
+
install_path = self.output
|
|
895
|
+
|
|
896
|
+
self.WriteLn("TOOLSET := " + self.toolset)
|
|
897
|
+
self.WriteLn("TARGET := " + self.target)
|
|
898
|
+
|
|
899
|
+
# Actions must come first, since they can generate more OBJs for use below.
|
|
900
|
+
if "actions" in spec:
|
|
901
|
+
self.WriteActions(
|
|
902
|
+
spec["actions"],
|
|
903
|
+
extra_sources,
|
|
904
|
+
extra_outputs,
|
|
905
|
+
extra_mac_bundle_resources,
|
|
906
|
+
part_of_all,
|
|
907
|
+
)
|
|
908
|
+
|
|
909
|
+
# Rules must be early like actions.
|
|
910
|
+
if "rules" in spec:
|
|
911
|
+
self.WriteRules(
|
|
912
|
+
spec["rules"],
|
|
913
|
+
extra_sources,
|
|
914
|
+
extra_outputs,
|
|
915
|
+
extra_mac_bundle_resources,
|
|
916
|
+
part_of_all,
|
|
917
|
+
)
|
|
918
|
+
|
|
919
|
+
if "copies" in spec:
|
|
920
|
+
self.WriteCopies(spec["copies"], extra_outputs, part_of_all)
|
|
921
|
+
|
|
922
|
+
# Bundle resources.
|
|
923
|
+
if self.is_mac_bundle:
|
|
924
|
+
all_mac_bundle_resources = (
|
|
925
|
+
spec.get("mac_bundle_resources", []) + extra_mac_bundle_resources
|
|
926
|
+
)
|
|
927
|
+
self.WriteMacBundleResources(all_mac_bundle_resources, mac_bundle_deps)
|
|
928
|
+
self.WriteMacInfoPlist(mac_bundle_deps)
|
|
929
|
+
|
|
930
|
+
# Sources.
|
|
931
|
+
all_sources = spec.get("sources", []) + extra_sources
|
|
932
|
+
if all_sources:
|
|
933
|
+
self.WriteSources(
|
|
934
|
+
configs,
|
|
935
|
+
deps,
|
|
936
|
+
all_sources,
|
|
937
|
+
extra_outputs,
|
|
938
|
+
extra_link_deps,
|
|
939
|
+
part_of_all,
|
|
940
|
+
gyp.xcode_emulation.MacPrefixHeader(
|
|
941
|
+
self.xcode_settings,
|
|
942
|
+
lambda p: Sourceify(self.Absolutify(p)),
|
|
943
|
+
self.Pchify,
|
|
944
|
+
),
|
|
945
|
+
)
|
|
946
|
+
sources = [x for x in all_sources if Compilable(x)]
|
|
947
|
+
if sources:
|
|
948
|
+
self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT1)
|
|
949
|
+
extensions = {os.path.splitext(s)[1] for s in sources}
|
|
950
|
+
for ext in extensions:
|
|
951
|
+
if ext in self.suffix_rules_srcdir:
|
|
952
|
+
self.WriteLn(self.suffix_rules_srcdir[ext])
|
|
953
|
+
self.WriteLn(SHARED_HEADER_SUFFIX_RULES_COMMENT2)
|
|
954
|
+
for ext in extensions:
|
|
955
|
+
if ext in self.suffix_rules_objdir1:
|
|
956
|
+
self.WriteLn(self.suffix_rules_objdir1[ext])
|
|
957
|
+
for ext in extensions:
|
|
958
|
+
if ext in self.suffix_rules_objdir2:
|
|
959
|
+
self.WriteLn(self.suffix_rules_objdir2[ext])
|
|
960
|
+
self.WriteLn("# End of this set of suffix rules")
|
|
961
|
+
|
|
962
|
+
# Add dependency from bundle to bundle binary.
|
|
963
|
+
if self.is_mac_bundle:
|
|
964
|
+
mac_bundle_deps.append(self.output_binary)
|
|
965
|
+
|
|
966
|
+
self.WriteTarget(
|
|
967
|
+
spec,
|
|
968
|
+
configs,
|
|
969
|
+
deps,
|
|
970
|
+
extra_link_deps + link_deps,
|
|
971
|
+
mac_bundle_deps,
|
|
972
|
+
extra_outputs,
|
|
973
|
+
part_of_all,
|
|
974
|
+
)
|
|
975
|
+
|
|
976
|
+
# Update global list of target outputs, used in dependency tracking.
|
|
977
|
+
target_outputs[qualified_target] = install_path
|
|
978
|
+
|
|
979
|
+
# Update global list of link dependencies.
|
|
980
|
+
if self.type in ("static_library", "shared_library"):
|
|
981
|
+
target_link_deps[qualified_target] = self.output_binary
|
|
982
|
+
|
|
983
|
+
# Currently any versions have the same effect, but in future the behavior
|
|
984
|
+
# could be different.
|
|
985
|
+
if self.generator_flags.get("android_ndk_version", None):
|
|
986
|
+
self.WriteAndroidNdkModuleRule(self.target, all_sources, link_deps)
|
|
987
|
+
|
|
988
|
+
self.fp.close()
|
|
989
|
+
|
|
990
|
+
def WriteSubMake(self, output_filename, makefile_path, targets, build_dir):
|
|
991
|
+
"""Write a "sub-project" Makefile.
|
|
992
|
+
|
|
993
|
+
This is a small, wrapper Makefile that calls the top-level Makefile to build
|
|
994
|
+
the targets from a single gyp file (i.e. a sub-project).
|
|
995
|
+
|
|
996
|
+
Arguments:
|
|
997
|
+
output_filename: sub-project Makefile name to write
|
|
998
|
+
makefile_path: path to the top-level Makefile
|
|
999
|
+
targets: list of "all" targets for this sub-project
|
|
1000
|
+
build_dir: build output directory, relative to the sub-project
|
|
1001
|
+
"""
|
|
1002
|
+
gyp.common.EnsureDirExists(output_filename)
|
|
1003
|
+
self.fp = open(output_filename, "w")
|
|
1004
|
+
self.fp.write(header)
|
|
1005
|
+
# For consistency with other builders, put sub-project build output in the
|
|
1006
|
+
# sub-project dir (see test/subdirectory/gyptest-subdir-all.py).
|
|
1007
|
+
self.WriteLn(
|
|
1008
|
+
"export builddir_name ?= %s"
|
|
1009
|
+
% replace_sep(os.path.join(os.path.dirname(output_filename), build_dir))
|
|
1010
|
+
)
|
|
1011
|
+
self.WriteLn(".PHONY: all")
|
|
1012
|
+
self.WriteLn("all:")
|
|
1013
|
+
if makefile_path:
|
|
1014
|
+
makefile_path = " -C " + makefile_path
|
|
1015
|
+
self.WriteLn("\t$(MAKE){} {}".format(makefile_path, " ".join(targets)))
|
|
1016
|
+
self.fp.close()
|
|
1017
|
+
|
|
1018
|
+
def WriteActions(
|
|
1019
|
+
self,
|
|
1020
|
+
actions,
|
|
1021
|
+
extra_sources,
|
|
1022
|
+
extra_outputs,
|
|
1023
|
+
extra_mac_bundle_resources,
|
|
1024
|
+
part_of_all,
|
|
1025
|
+
):
|
|
1026
|
+
"""Write Makefile code for any 'actions' from the gyp input.
|
|
1027
|
+
|
|
1028
|
+
extra_sources: a list that will be filled in with newly generated source
|
|
1029
|
+
files, if any
|
|
1030
|
+
extra_outputs: a list that will be filled in with any outputs of these
|
|
1031
|
+
actions (used to make other pieces dependent on these
|
|
1032
|
+
actions)
|
|
1033
|
+
part_of_all: flag indicating this target is part of 'all'
|
|
1034
|
+
"""
|
|
1035
|
+
env = self.GetSortedXcodeEnv()
|
|
1036
|
+
for action in actions:
|
|
1037
|
+
name = StringToMakefileVariable(
|
|
1038
|
+
"{}_{}".format(self.qualified_target, action["action_name"])
|
|
1039
|
+
)
|
|
1040
|
+
self.WriteLn('### Rules for action "%s":' % action["action_name"])
|
|
1041
|
+
inputs = action["inputs"]
|
|
1042
|
+
outputs = action["outputs"]
|
|
1043
|
+
|
|
1044
|
+
# Build up a list of outputs.
|
|
1045
|
+
# Collect the output dirs we'll need.
|
|
1046
|
+
dirs = set()
|
|
1047
|
+
for out in outputs:
|
|
1048
|
+
dir = os.path.split(out)[0]
|
|
1049
|
+
if dir:
|
|
1050
|
+
dirs.add(dir)
|
|
1051
|
+
if int(action.get("process_outputs_as_sources", False)):
|
|
1052
|
+
extra_sources += outputs
|
|
1053
|
+
if int(action.get("process_outputs_as_mac_bundle_resources", False)):
|
|
1054
|
+
extra_mac_bundle_resources += outputs
|
|
1055
|
+
|
|
1056
|
+
# Write the actual command.
|
|
1057
|
+
action_commands = action["action"]
|
|
1058
|
+
if self.flavor == "mac":
|
|
1059
|
+
action_commands = [
|
|
1060
|
+
gyp.xcode_emulation.ExpandEnvVars(command, env)
|
|
1061
|
+
for command in action_commands
|
|
1062
|
+
]
|
|
1063
|
+
command = gyp.common.EncodePOSIXShellList(action_commands)
|
|
1064
|
+
if "message" in action:
|
|
1065
|
+
self.WriteLn(
|
|
1066
|
+
"quiet_cmd_{} = ACTION {} $@".format(name, action["message"])
|
|
1067
|
+
)
|
|
1068
|
+
else:
|
|
1069
|
+
self.WriteLn(f"quiet_cmd_{name} = ACTION {name} $@")
|
|
1070
|
+
if len(dirs) > 0:
|
|
1071
|
+
command = "mkdir -p %s" % " ".join(dirs) + "; " + command
|
|
1072
|
+
|
|
1073
|
+
cd_action = "cd %s; " % Sourceify(self.path or ".")
|
|
1074
|
+
|
|
1075
|
+
# command and cd_action get written to a toplevel variable called
|
|
1076
|
+
# cmd_foo. Toplevel variables can't handle things that change per
|
|
1077
|
+
# makefile like $(TARGET), so hardcode the target.
|
|
1078
|
+
command = command.replace("$(TARGET)", self.target)
|
|
1079
|
+
cd_action = cd_action.replace("$(TARGET)", self.target)
|
|
1080
|
+
|
|
1081
|
+
# Set LD_LIBRARY_PATH in case the action runs an executable from this
|
|
1082
|
+
# build which links to shared libs from this build.
|
|
1083
|
+
# actions run on the host, so they should in theory only use host
|
|
1084
|
+
# libraries, but until everything is made cross-compile safe, also use
|
|
1085
|
+
# target libraries.
|
|
1086
|
+
# TODO(piman): when everything is cross-compile safe, remove lib.target
|
|
1087
|
+
if self.flavor in {"zos", "aix"}:
|
|
1088
|
+
self.WriteLn(
|
|
1089
|
+
"cmd_%s = LIBPATH=$(builddir)/lib.host:"
|
|
1090
|
+
"$(builddir)/lib.target:$$LIBPATH; "
|
|
1091
|
+
"export LIBPATH; "
|
|
1092
|
+
"%s%s" % (name, cd_action, command)
|
|
1093
|
+
)
|
|
1094
|
+
else:
|
|
1095
|
+
self.WriteLn(
|
|
1096
|
+
"cmd_%s = LD_LIBRARY_PATH=$(builddir)/lib.host:"
|
|
1097
|
+
"$(builddir)/lib.target:$$LD_LIBRARY_PATH; "
|
|
1098
|
+
"export LD_LIBRARY_PATH; "
|
|
1099
|
+
"%s%s" % (name, cd_action, command)
|
|
1100
|
+
)
|
|
1101
|
+
self.WriteLn()
|
|
1102
|
+
outputs = [self.Absolutify(o) for o in outputs]
|
|
1103
|
+
# The makefile rules are all relative to the top dir, but the gyp actions
|
|
1104
|
+
# are defined relative to their containing dir. This replaces the obj
|
|
1105
|
+
# variable for the action rule with an absolute version so that the output
|
|
1106
|
+
# goes in the right place.
|
|
1107
|
+
# Only write the 'obj' and 'builddir' rules for the "primary" output (:1);
|
|
1108
|
+
# it's superfluous for the "extra outputs", and this avoids accidentally
|
|
1109
|
+
# writing duplicate dummy rules for those outputs.
|
|
1110
|
+
# Same for environment.
|
|
1111
|
+
self.WriteLn("%s: obj := $(abs_obj)" % QuoteSpaces(outputs[0]))
|
|
1112
|
+
self.WriteLn("%s: builddir := $(abs_builddir)" % QuoteSpaces(outputs[0]))
|
|
1113
|
+
self.WriteSortedXcodeEnv(outputs[0], self.GetSortedXcodeEnv())
|
|
1114
|
+
|
|
1115
|
+
for input in inputs:
|
|
1116
|
+
assert " " not in input, (
|
|
1117
|
+
"Spaces in action input filenames not supported (%s)" % input
|
|
1118
|
+
)
|
|
1119
|
+
for output in outputs:
|
|
1120
|
+
assert " " not in output, (
|
|
1121
|
+
"Spaces in action output filenames not supported (%s)" % output
|
|
1122
|
+
)
|
|
1123
|
+
|
|
1124
|
+
# See the comment in WriteCopies about expanding env vars.
|
|
1125
|
+
outputs = [gyp.xcode_emulation.ExpandEnvVars(o, env) for o in outputs]
|
|
1126
|
+
inputs = [gyp.xcode_emulation.ExpandEnvVars(i, env) for i in inputs]
|
|
1127
|
+
|
|
1128
|
+
self.WriteDoCmd(
|
|
1129
|
+
outputs,
|
|
1130
|
+
[Sourceify(self.Absolutify(i)) for i in inputs],
|
|
1131
|
+
part_of_all=part_of_all,
|
|
1132
|
+
command=name,
|
|
1133
|
+
)
|
|
1134
|
+
|
|
1135
|
+
# Stuff the outputs in a variable so we can refer to them later.
|
|
1136
|
+
outputs_variable = "action_%s_outputs" % name
|
|
1137
|
+
self.WriteLn("{} := {}".format(outputs_variable, " ".join(outputs)))
|
|
1138
|
+
extra_outputs.append("$(%s)" % outputs_variable)
|
|
1139
|
+
self.WriteLn()
|
|
864
1140
|
|
|
865
|
-
|
|
866
|
-
the targets from a single gyp file (i.e. a sub-project).
|
|
1141
|
+
self.WriteLn()
|
|
867
1142
|
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
# (:1); it's superfluous for the "extra outputs", and this avoids
|
|
1047
|
-
# accidentally writing duplicate dummy rules for those outputs.
|
|
1048
|
-
self.WriteLn('%s: obj := $(abs_obj)' % outputs[0])
|
|
1049
|
-
self.WriteLn('%s: builddir := $(abs_builddir)' % outputs[0])
|
|
1050
|
-
self.WriteMakeRule(outputs, inputs, actions,
|
|
1051
|
-
command="%s_%d" % (name, count))
|
|
1052
|
-
# Spaces in rule filenames are not supported, but rule variables have
|
|
1053
|
-
# spaces in them (e.g. RULE_INPUT_PATH expands to '$(abspath $<)').
|
|
1054
|
-
# The spaces within the variables are valid, so remove the variables
|
|
1055
|
-
# before checking.
|
|
1056
|
-
variables_with_spaces = re.compile(r'\$\([^ ]* \$<\)')
|
|
1057
|
-
for output in outputs:
|
|
1058
|
-
output = re.sub(variables_with_spaces, '', output)
|
|
1059
|
-
assert ' ' not in output, (
|
|
1060
|
-
"Spaces in rule filenames not yet supported (%s)" % output)
|
|
1061
|
-
self.WriteLn('all_deps += %s' % ' '.join(outputs))
|
|
1062
|
-
|
|
1063
|
-
action = [self.ExpandInputRoot(ac, rule_source_root,
|
|
1064
|
-
rule_source_dirname)
|
|
1065
|
-
for ac in rule['action']]
|
|
1066
|
-
mkdirs = ''
|
|
1067
|
-
if len(dirs) > 0:
|
|
1068
|
-
mkdirs = 'mkdir -p %s; ' % ' '.join(dirs)
|
|
1069
|
-
cd_action = 'cd %s; ' % Sourceify(self.path or '.')
|
|
1070
|
-
|
|
1071
|
-
# action, cd_action, and mkdirs get written to a toplevel variable
|
|
1072
|
-
# called cmd_foo. Toplevel variables can't handle things that change
|
|
1073
|
-
# per makefile like $(TARGET), so hardcode the target.
|
|
1074
|
-
if self.flavor == 'mac':
|
|
1075
|
-
action = [gyp.xcode_emulation.ExpandEnvVars(command, env)
|
|
1076
|
-
for command in action]
|
|
1077
|
-
action = gyp.common.EncodePOSIXShellList(action)
|
|
1078
|
-
action = action.replace('$(TARGET)', self.target)
|
|
1079
|
-
cd_action = cd_action.replace('$(TARGET)', self.target)
|
|
1080
|
-
mkdirs = mkdirs.replace('$(TARGET)', self.target)
|
|
1081
|
-
|
|
1082
|
-
# Set LD_LIBRARY_PATH in case the rule runs an executable from this
|
|
1083
|
-
# build which links to shared libs from this build.
|
|
1084
|
-
# rules run on the host, so they should in theory only use host
|
|
1085
|
-
# libraries, but until everything is made cross-compile safe, also use
|
|
1086
|
-
# target libraries.
|
|
1087
|
-
# TODO(piman): when everything is cross-compile safe, remove lib.target
|
|
1088
|
-
self.WriteLn(
|
|
1089
|
-
"cmd_%(name)s_%(count)d = LD_LIBRARY_PATH="
|
|
1090
|
-
"$(builddir)/lib.host:$(builddir)/lib.target:$$LD_LIBRARY_PATH; "
|
|
1091
|
-
"export LD_LIBRARY_PATH; "
|
|
1092
|
-
"%(cd_action)s%(mkdirs)s%(action)s" % {
|
|
1093
|
-
'action': action,
|
|
1094
|
-
'cd_action': cd_action,
|
|
1095
|
-
'count': count,
|
|
1096
|
-
'mkdirs': mkdirs,
|
|
1097
|
-
'name': name,
|
|
1098
|
-
})
|
|
1143
|
+
def WriteRules(
|
|
1144
|
+
self,
|
|
1145
|
+
rules,
|
|
1146
|
+
extra_sources,
|
|
1147
|
+
extra_outputs,
|
|
1148
|
+
extra_mac_bundle_resources,
|
|
1149
|
+
part_of_all,
|
|
1150
|
+
):
|
|
1151
|
+
"""Write Makefile code for any 'rules' from the gyp input.
|
|
1152
|
+
|
|
1153
|
+
extra_sources: a list that will be filled in with newly generated source
|
|
1154
|
+
files, if any
|
|
1155
|
+
extra_outputs: a list that will be filled in with any outputs of these
|
|
1156
|
+
rules (used to make other pieces dependent on these rules)
|
|
1157
|
+
part_of_all: flag indicating this target is part of 'all'
|
|
1158
|
+
"""
|
|
1159
|
+
env = self.GetSortedXcodeEnv()
|
|
1160
|
+
for rule in rules:
|
|
1161
|
+
name = StringToMakefileVariable(
|
|
1162
|
+
"{}_{}".format(self.qualified_target, rule["rule_name"])
|
|
1163
|
+
)
|
|
1164
|
+
count = 0
|
|
1165
|
+
self.WriteLn("### Generated for rule %s:" % name)
|
|
1166
|
+
|
|
1167
|
+
all_outputs = []
|
|
1168
|
+
|
|
1169
|
+
for rule_source in rule.get("rule_sources", []):
|
|
1170
|
+
dirs = set()
|
|
1171
|
+
(rule_source_dirname, rule_source_basename) = os.path.split(rule_source)
|
|
1172
|
+
(rule_source_root, _rule_source_ext) = os.path.splitext(
|
|
1173
|
+
rule_source_basename
|
|
1174
|
+
)
|
|
1175
|
+
|
|
1176
|
+
outputs = [
|
|
1177
|
+
self.ExpandInputRoot(out, rule_source_root, rule_source_dirname)
|
|
1178
|
+
for out in rule["outputs"]
|
|
1179
|
+
]
|
|
1180
|
+
|
|
1181
|
+
for out in outputs:
|
|
1182
|
+
dir = os.path.dirname(out)
|
|
1183
|
+
if dir:
|
|
1184
|
+
dirs.add(dir)
|
|
1185
|
+
if int(rule.get("process_outputs_as_sources", False)):
|
|
1186
|
+
extra_sources += outputs
|
|
1187
|
+
if int(rule.get("process_outputs_as_mac_bundle_resources", False)):
|
|
1188
|
+
extra_mac_bundle_resources += outputs
|
|
1189
|
+
inputs = [
|
|
1190
|
+
Sourceify(self.Absolutify(i))
|
|
1191
|
+
for i in [rule_source] + rule.get("inputs", [])
|
|
1192
|
+
]
|
|
1193
|
+
actions = ["$(call do_cmd,%s_%d)" % (name, count)]
|
|
1194
|
+
|
|
1195
|
+
if name == "resources_grit":
|
|
1196
|
+
# HACK: This is ugly. Grit intentionally doesn't touch the
|
|
1197
|
+
# timestamp of its output file when the file doesn't change,
|
|
1198
|
+
# which is fine in hash-based dependency systems like scons
|
|
1199
|
+
# and forge, but not kosher in the make world. After some
|
|
1200
|
+
# discussion, hacking around it here seems like the least
|
|
1201
|
+
# amount of pain.
|
|
1202
|
+
actions += ["@touch --no-create $@"]
|
|
1203
|
+
|
|
1204
|
+
# See the comment in WriteCopies about expanding env vars.
|
|
1205
|
+
outputs = [gyp.xcode_emulation.ExpandEnvVars(o, env) for o in outputs]
|
|
1206
|
+
inputs = [gyp.xcode_emulation.ExpandEnvVars(i, env) for i in inputs]
|
|
1207
|
+
|
|
1208
|
+
outputs = [self.Absolutify(o) for o in outputs]
|
|
1209
|
+
all_outputs += outputs
|
|
1210
|
+
# Only write the 'obj' and 'builddir' rules for the "primary" output
|
|
1211
|
+
# (:1); it's superfluous for the "extra outputs", and this avoids
|
|
1212
|
+
# accidentally writing duplicate dummy rules for those outputs.
|
|
1213
|
+
self.WriteLn("%s: obj := $(abs_obj)" % outputs[0])
|
|
1214
|
+
self.WriteLn("%s: builddir := $(abs_builddir)" % outputs[0])
|
|
1215
|
+
self.WriteMakeRule(
|
|
1216
|
+
outputs, inputs, actions, command="%s_%d" % (name, count)
|
|
1217
|
+
)
|
|
1218
|
+
# Spaces in rule filenames are not supported, but rule variables have
|
|
1219
|
+
# spaces in them (e.g. RULE_INPUT_PATH expands to '$(abspath $<)').
|
|
1220
|
+
# The spaces within the variables are valid, so remove the variables
|
|
1221
|
+
# before checking.
|
|
1222
|
+
variables_with_spaces = re.compile(r"\$\([^ ]* \$<\)")
|
|
1223
|
+
for output in outputs:
|
|
1224
|
+
output = re.sub(variables_with_spaces, "", output)
|
|
1225
|
+
assert " " not in output, (
|
|
1226
|
+
"Spaces in rule filenames not yet supported (%s)" % output
|
|
1227
|
+
)
|
|
1228
|
+
self.WriteLn("all_deps += %s" % " ".join(outputs))
|
|
1229
|
+
|
|
1230
|
+
action = [
|
|
1231
|
+
self.ExpandInputRoot(ac, rule_source_root, rule_source_dirname)
|
|
1232
|
+
for ac in rule["action"]
|
|
1233
|
+
]
|
|
1234
|
+
mkdirs = ""
|
|
1235
|
+
if len(dirs) > 0:
|
|
1236
|
+
mkdirs = "mkdir -p %s; " % " ".join(dirs)
|
|
1237
|
+
cd_action = "cd %s; " % Sourceify(self.path or ".")
|
|
1238
|
+
|
|
1239
|
+
# action, cd_action, and mkdirs get written to a toplevel variable
|
|
1240
|
+
# called cmd_foo. Toplevel variables can't handle things that change
|
|
1241
|
+
# per makefile like $(TARGET), so hardcode the target.
|
|
1242
|
+
if self.flavor == "mac":
|
|
1243
|
+
action = [
|
|
1244
|
+
gyp.xcode_emulation.ExpandEnvVars(command, env)
|
|
1245
|
+
for command in action
|
|
1246
|
+
]
|
|
1247
|
+
action = gyp.common.EncodePOSIXShellList(action)
|
|
1248
|
+
action = action.replace("$(TARGET)", self.target)
|
|
1249
|
+
cd_action = cd_action.replace("$(TARGET)", self.target)
|
|
1250
|
+
mkdirs = mkdirs.replace("$(TARGET)", self.target)
|
|
1251
|
+
|
|
1252
|
+
# Set LD_LIBRARY_PATH in case the rule runs an executable from this
|
|
1253
|
+
# build which links to shared libs from this build.
|
|
1254
|
+
# rules run on the host, so they should in theory only use host
|
|
1255
|
+
# libraries, but until everything is made cross-compile safe, also use
|
|
1256
|
+
# target libraries.
|
|
1257
|
+
# TODO(piman): when everything is cross-compile safe, remove lib.target
|
|
1258
|
+
self.WriteLn(
|
|
1259
|
+
"cmd_%(name)s_%(count)d = LD_LIBRARY_PATH="
|
|
1260
|
+
"$(builddir)/lib.host:$(builddir)/lib.target:$$LD_LIBRARY_PATH; "
|
|
1261
|
+
"export LD_LIBRARY_PATH; "
|
|
1262
|
+
"%(cd_action)s%(mkdirs)s%(action)s"
|
|
1263
|
+
% {
|
|
1264
|
+
"action": action,
|
|
1265
|
+
"cd_action": cd_action,
|
|
1266
|
+
"count": count,
|
|
1267
|
+
"mkdirs": mkdirs,
|
|
1268
|
+
"name": name,
|
|
1269
|
+
}
|
|
1270
|
+
)
|
|
1271
|
+
self.WriteLn(
|
|
1272
|
+
"quiet_cmd_%(name)s_%(count)d = RULE %(name)s_%(count)d $@"
|
|
1273
|
+
% {"count": count, "name": name}
|
|
1274
|
+
)
|
|
1275
|
+
self.WriteLn()
|
|
1276
|
+
count += 1
|
|
1277
|
+
|
|
1278
|
+
outputs_variable = "rule_%s_outputs" % name
|
|
1279
|
+
self.WriteList(all_outputs, outputs_variable)
|
|
1280
|
+
extra_outputs.append("$(%s)" % outputs_variable)
|
|
1281
|
+
|
|
1282
|
+
self.WriteLn("### Finished generating for rule: %s" % name)
|
|
1283
|
+
self.WriteLn()
|
|
1284
|
+
self.WriteLn("### Finished generating for all rules")
|
|
1285
|
+
self.WriteLn("")
|
|
1286
|
+
|
|
1287
|
+
def WriteCopies(self, copies, extra_outputs, part_of_all):
|
|
1288
|
+
"""Write Makefile code for any 'copies' from the gyp input.
|
|
1289
|
+
|
|
1290
|
+
extra_outputs: a list that will be filled in with any outputs of this action
|
|
1291
|
+
(used to make other pieces dependent on this action)
|
|
1292
|
+
part_of_all: flag indicating this target is part of 'all'
|
|
1293
|
+
"""
|
|
1294
|
+
self.WriteLn("### Generated for copy rule.")
|
|
1295
|
+
|
|
1296
|
+
variable = StringToMakefileVariable(self.qualified_target + "_copies")
|
|
1297
|
+
outputs = []
|
|
1298
|
+
for copy in copies:
|
|
1299
|
+
for path in copy["files"]:
|
|
1300
|
+
# Absolutify() may call normpath, and will strip trailing slashes.
|
|
1301
|
+
path = Sourceify(self.Absolutify(path))
|
|
1302
|
+
filename = os.path.split(path)[1]
|
|
1303
|
+
output = Sourceify(
|
|
1304
|
+
self.Absolutify(os.path.join(copy["destination"], filename))
|
|
1305
|
+
)
|
|
1306
|
+
|
|
1307
|
+
# If the output path has variables in it, which happens in practice for
|
|
1308
|
+
# 'copies', writing the environment as target-local doesn't work,
|
|
1309
|
+
# because the variables are already needed for the target name.
|
|
1310
|
+
# Copying the environment variables into global make variables doesn't
|
|
1311
|
+
# work either, because then the .d files will potentially contain spaces
|
|
1312
|
+
# after variable expansion, and .d file handling cannot handle spaces.
|
|
1313
|
+
# As a workaround, manually expand variables at gyp time. Since 'copies'
|
|
1314
|
+
# can't run scripts, there's no need to write the env then.
|
|
1315
|
+
# WriteDoCmd() will escape spaces for .d files.
|
|
1316
|
+
env = self.GetSortedXcodeEnv()
|
|
1317
|
+
output = gyp.xcode_emulation.ExpandEnvVars(output, env)
|
|
1318
|
+
path = gyp.xcode_emulation.ExpandEnvVars(path, env)
|
|
1319
|
+
self.WriteDoCmd([output], [path], "copy", part_of_all)
|
|
1320
|
+
outputs.append(output)
|
|
1099
1321
|
self.WriteLn(
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
})
|
|
1322
|
+
"{} = {}".format(variable, " ".join(QuoteSpaces(o) for o in outputs))
|
|
1323
|
+
)
|
|
1324
|
+
extra_outputs.append("$(%s)" % variable)
|
|
1104
1325
|
self.WriteLn()
|
|
1105
|
-
count += 1
|
|
1106
|
-
|
|
1107
|
-
outputs_variable = 'rule_%s_outputs' % name
|
|
1108
|
-
self.WriteList(all_outputs, outputs_variable)
|
|
1109
|
-
extra_outputs.append('$(%s)' % outputs_variable)
|
|
1110
|
-
|
|
1111
|
-
self.WriteLn('### Finished generating for rule: %s' % name)
|
|
1112
|
-
self.WriteLn()
|
|
1113
|
-
self.WriteLn('### Finished generating for all rules')
|
|
1114
|
-
self.WriteLn('')
|
|
1115
|
-
|
|
1116
1326
|
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1327
|
+
def WriteMacBundleResources(self, resources, bundle_deps):
|
|
1328
|
+
"""Writes Makefile code for 'mac_bundle_resources'."""
|
|
1329
|
+
self.WriteLn("### Generated for mac_bundle_resources")
|
|
1330
|
+
|
|
1331
|
+
for output, res in gyp.xcode_emulation.GetMacBundleResources(
|
|
1332
|
+
generator_default_variables["PRODUCT_DIR"],
|
|
1333
|
+
self.xcode_settings,
|
|
1334
|
+
[Sourceify(self.Absolutify(r)) for r in resources],
|
|
1335
|
+
):
|
|
1336
|
+
_, ext = os.path.splitext(output)
|
|
1337
|
+
if ext != ".xcassets":
|
|
1338
|
+
# Make does not supports '.xcassets' emulation.
|
|
1339
|
+
self.WriteDoCmd(
|
|
1340
|
+
[output], [res], "mac_tool,,,copy-bundle-resource", part_of_all=True
|
|
1341
|
+
)
|
|
1342
|
+
bundle_deps.append(output)
|
|
1343
|
+
|
|
1344
|
+
def WriteMacInfoPlist(self, bundle_deps):
|
|
1345
|
+
"""Write Makefile code for bundle Info.plist files."""
|
|
1346
|
+
info_plist, out, defines, extra_env = gyp.xcode_emulation.GetMacInfoPlist(
|
|
1347
|
+
generator_default_variables["PRODUCT_DIR"],
|
|
1348
|
+
self.xcode_settings,
|
|
1349
|
+
lambda p: Sourceify(self.Absolutify(p)),
|
|
1350
|
+
)
|
|
1351
|
+
if not info_plist:
|
|
1352
|
+
return
|
|
1353
|
+
if defines:
|
|
1354
|
+
# Create an intermediate file to store preprocessed results.
|
|
1355
|
+
intermediate_plist = "$(obj).$(TOOLSET)/$(TARGET)/" + os.path.basename(
|
|
1356
|
+
info_plist
|
|
1357
|
+
)
|
|
1358
|
+
self.WriteList(
|
|
1359
|
+
defines,
|
|
1360
|
+
intermediate_plist + ": INFOPLIST_DEFINES",
|
|
1361
|
+
"-D",
|
|
1362
|
+
quoter=EscapeCppDefine,
|
|
1363
|
+
)
|
|
1364
|
+
self.WriteMakeRule(
|
|
1365
|
+
[intermediate_plist],
|
|
1366
|
+
[info_plist],
|
|
1367
|
+
[
|
|
1368
|
+
"$(call do_cmd,infoplist)",
|
|
1369
|
+
# "Convert" the plist so that any weird whitespace changes from the
|
|
1370
|
+
# preprocessor do not affect the XML parser in mac_tool.
|
|
1371
|
+
"@plutil -convert xml1 $@ $@",
|
|
1372
|
+
],
|
|
1373
|
+
)
|
|
1374
|
+
info_plist = intermediate_plist
|
|
1375
|
+
# plists can contain envvars and substitute them into the file.
|
|
1376
|
+
self.WriteSortedXcodeEnv(
|
|
1377
|
+
out, self.GetSortedXcodeEnv(additional_settings=extra_env)
|
|
1378
|
+
)
|
|
1379
|
+
self.WriteDoCmd(
|
|
1380
|
+
[out], [info_plist], "mac_tool,,,copy-info-plist", part_of_all=True
|
|
1381
|
+
)
|
|
1382
|
+
bundle_deps.append(out)
|
|
1383
|
+
|
|
1384
|
+
def WriteSources(
|
|
1385
|
+
self,
|
|
1386
|
+
configs,
|
|
1387
|
+
deps,
|
|
1388
|
+
sources,
|
|
1389
|
+
extra_outputs,
|
|
1390
|
+
extra_link_deps,
|
|
1391
|
+
part_of_all,
|
|
1392
|
+
precompiled_header,
|
|
1393
|
+
):
|
|
1394
|
+
"""Write Makefile code for any 'sources' from the gyp input.
|
|
1395
|
+
These are source files necessary to build the current target.
|
|
1396
|
+
|
|
1397
|
+
configs, deps, sources: input from gyp.
|
|
1398
|
+
extra_outputs: a list of extra outputs this action should be dependent on;
|
|
1399
|
+
used to serialize action/rules before compilation
|
|
1400
|
+
extra_link_deps: a list that will be filled in with any outputs of
|
|
1401
|
+
compilation (to be used in link lines)
|
|
1402
|
+
part_of_all: flag indicating this target is part of 'all'
|
|
1403
|
+
"""
|
|
1404
|
+
|
|
1405
|
+
# Write configuration-specific variables for CFLAGS, etc.
|
|
1406
|
+
for configname in sorted(configs.keys()):
|
|
1407
|
+
config = configs[configname]
|
|
1408
|
+
self.WriteList(
|
|
1409
|
+
config.get("defines"),
|
|
1410
|
+
"DEFS_%s" % configname,
|
|
1411
|
+
prefix="-D",
|
|
1412
|
+
quoter=EscapeCppDefine,
|
|
1413
|
+
)
|
|
1414
|
+
|
|
1415
|
+
if self.flavor == "mac":
|
|
1416
|
+
cflags = self.xcode_settings.GetCflags(
|
|
1417
|
+
configname, arch=config.get("xcode_configuration_platform")
|
|
1418
|
+
)
|
|
1419
|
+
cflags_c = self.xcode_settings.GetCflagsC(configname)
|
|
1420
|
+
cflags_cc = self.xcode_settings.GetCflagsCC(configname)
|
|
1421
|
+
cflags_objc = self.xcode_settings.GetCflagsObjC(configname)
|
|
1422
|
+
cflags_objcc = self.xcode_settings.GetCflagsObjCC(configname)
|
|
1423
|
+
else:
|
|
1424
|
+
cflags = config.get("cflags")
|
|
1425
|
+
cflags_c = config.get("cflags_c")
|
|
1426
|
+
cflags_cc = config.get("cflags_cc")
|
|
1427
|
+
|
|
1428
|
+
self.WriteLn("# Flags passed to all source files.")
|
|
1429
|
+
self.WriteList(cflags, "CFLAGS_%s" % configname)
|
|
1430
|
+
self.WriteLn("# Flags passed to only C files.")
|
|
1431
|
+
self.WriteList(cflags_c, "CFLAGS_C_%s" % configname)
|
|
1432
|
+
self.WriteLn("# Flags passed to only C++ files.")
|
|
1433
|
+
self.WriteList(cflags_cc, "CFLAGS_CC_%s" % configname)
|
|
1434
|
+
if self.flavor == "mac":
|
|
1435
|
+
self.WriteLn("# Flags passed to only ObjC files.")
|
|
1436
|
+
self.WriteList(cflags_objc, "CFLAGS_OBJC_%s" % configname)
|
|
1437
|
+
self.WriteLn("# Flags passed to only ObjC++ files.")
|
|
1438
|
+
self.WriteList(cflags_objcc, "CFLAGS_OBJCC_%s" % configname)
|
|
1439
|
+
includes = config.get("include_dirs")
|
|
1440
|
+
if includes:
|
|
1441
|
+
includes = [Sourceify(self.Absolutify(i)) for i in includes]
|
|
1442
|
+
self.WriteList(includes, "INCS_%s" % configname, prefix="-I")
|
|
1443
|
+
|
|
1444
|
+
compilable = list(filter(Compilable, sources))
|
|
1445
|
+
objs = [self.Objectify(self.Absolutify(Target(c))) for c in compilable]
|
|
1446
|
+
self.WriteList(objs, "OBJS")
|
|
1447
|
+
|
|
1448
|
+
for obj in objs:
|
|
1449
|
+
assert " " not in obj, "Spaces in object filenames not supported (%s)" % obj
|
|
1450
|
+
self.WriteLn("# Add to the list of files we specially track dependencies for.")
|
|
1451
|
+
self.WriteLn("all_deps += $(OBJS)")
|
|
1452
|
+
self.WriteLn()
|
|
1210
1453
|
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
includes = [Sourceify(self.Absolutify(i)) for i in includes]
|
|
1242
|
-
self.WriteList(includes, 'INCS_%s' % configname, prefix='-I')
|
|
1243
|
-
|
|
1244
|
-
compilable = list(filter(Compilable, sources))
|
|
1245
|
-
objs = [self.Objectify(self.Absolutify(Target(c))) for c in compilable]
|
|
1246
|
-
self.WriteList(objs, 'OBJS')
|
|
1247
|
-
|
|
1248
|
-
for obj in objs:
|
|
1249
|
-
assert ' ' not in obj, (
|
|
1250
|
-
"Spaces in object filenames not supported (%s)" % obj)
|
|
1251
|
-
self.WriteLn('# Add to the list of files we specially track '
|
|
1252
|
-
'dependencies for.')
|
|
1253
|
-
self.WriteLn('all_deps += $(OBJS)')
|
|
1254
|
-
self.WriteLn()
|
|
1255
|
-
|
|
1256
|
-
# Make sure our dependencies are built first.
|
|
1257
|
-
if deps:
|
|
1258
|
-
self.WriteMakeRule(['$(OBJS)'], deps,
|
|
1259
|
-
comment = 'Make sure our dependencies are built '
|
|
1260
|
-
'before any of us.',
|
|
1261
|
-
order_only = True)
|
|
1262
|
-
|
|
1263
|
-
# Make sure the actions and rules run first.
|
|
1264
|
-
# If they generate any extra headers etc., the per-.o file dep tracking
|
|
1265
|
-
# will catch the proper rebuilds, so order only is still ok here.
|
|
1266
|
-
if extra_outputs:
|
|
1267
|
-
self.WriteMakeRule(['$(OBJS)'], extra_outputs,
|
|
1268
|
-
comment = 'Make sure our actions/rules run '
|
|
1269
|
-
'before any of us.',
|
|
1270
|
-
order_only = True)
|
|
1271
|
-
|
|
1272
|
-
pchdeps = precompiled_header.GetObjDependencies(compilable, objs )
|
|
1273
|
-
if pchdeps:
|
|
1274
|
-
self.WriteLn('# Dependencies from obj files to their precompiled headers')
|
|
1275
|
-
for source, obj, gch in pchdeps:
|
|
1276
|
-
self.WriteLn('%s: %s' % (obj, gch))
|
|
1277
|
-
self.WriteLn('# End precompiled header dependencies')
|
|
1278
|
-
|
|
1279
|
-
if objs:
|
|
1280
|
-
extra_link_deps.append('$(OBJS)')
|
|
1281
|
-
self.WriteLn("""\
|
|
1454
|
+
# Make sure our dependencies are built first.
|
|
1455
|
+
if deps:
|
|
1456
|
+
self.WriteMakeRule(
|
|
1457
|
+
["$(OBJS)"],
|
|
1458
|
+
deps,
|
|
1459
|
+
comment="Make sure our dependencies are built before any of us.",
|
|
1460
|
+
order_only=True,
|
|
1461
|
+
)
|
|
1462
|
+
|
|
1463
|
+
# Make sure the actions and rules run first.
|
|
1464
|
+
# If they generate any extra headers etc., the per-.o file dep tracking
|
|
1465
|
+
# will catch the proper rebuilds, so order only is still ok here.
|
|
1466
|
+
if extra_outputs:
|
|
1467
|
+
self.WriteMakeRule(
|
|
1468
|
+
["$(OBJS)"],
|
|
1469
|
+
extra_outputs,
|
|
1470
|
+
comment="Make sure our actions/rules run before any of us.",
|
|
1471
|
+
order_only=True,
|
|
1472
|
+
)
|
|
1473
|
+
|
|
1474
|
+
if pchdeps := precompiled_header.GetObjDependencies(compilable, objs):
|
|
1475
|
+
self.WriteLn("# Dependencies from obj files to their precompiled headers")
|
|
1476
|
+
for source, obj, gch in pchdeps:
|
|
1477
|
+
self.WriteLn(f"{obj}: {gch}")
|
|
1478
|
+
self.WriteLn("# End precompiled header dependencies")
|
|
1479
|
+
|
|
1480
|
+
if objs:
|
|
1481
|
+
extra_link_deps.append("$(OBJS)")
|
|
1482
|
+
self.WriteLn(
|
|
1483
|
+
"""\
|
|
1282
1484
|
# CFLAGS et al overrides must be target-local.
|
|
1283
|
-
# See "Target-specific Variable Values" in the GNU Make manual."""
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
extra_flags = {
|
|
1328
|
-
'c': '$(CFLAGS_C_$(BUILDTYPE))',
|
|
1329
|
-
'cc': '$(CFLAGS_CC_$(BUILDTYPE))',
|
|
1330
|
-
'm': '$(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))',
|
|
1331
|
-
'mm': '$(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))',
|
|
1332
|
-
}[lang]
|
|
1333
|
-
var_name = {
|
|
1334
|
-
'c': 'GYP_PCH_CFLAGS',
|
|
1335
|
-
'cc': 'GYP_PCH_CXXFLAGS',
|
|
1336
|
-
'm': 'GYP_PCH_OBJCFLAGS',
|
|
1337
|
-
'mm': 'GYP_PCH_OBJCXXFLAGS',
|
|
1338
|
-
}[lang]
|
|
1339
|
-
self.WriteLn("%s: %s := %s " % (gch, var_name, lang_flag) +
|
|
1340
|
-
"$(DEFS_$(BUILDTYPE)) "
|
|
1341
|
-
"$(INCS_$(BUILDTYPE)) "
|
|
1342
|
-
"$(CFLAGS_$(BUILDTYPE)) " +
|
|
1343
|
-
extra_flags)
|
|
1344
|
-
|
|
1345
|
-
self.WriteLn('%s: %s FORCE_DO_CMD' % (gch, input))
|
|
1346
|
-
self.WriteLn('\t@$(call do_cmd,pch_%s,1)' % lang)
|
|
1347
|
-
self.WriteLn('')
|
|
1348
|
-
assert ' ' not in gch, (
|
|
1349
|
-
"Spaces in gch filenames not supported (%s)" % gch)
|
|
1350
|
-
self.WriteLn('all_deps += %s' % gch)
|
|
1351
|
-
self.WriteLn('')
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
def ComputeOutputBasename(self, spec):
|
|
1355
|
-
"""Return the 'output basename' of a gyp spec.
|
|
1356
|
-
|
|
1357
|
-
E.g., the loadable module 'foobar' in directory 'baz' will produce
|
|
1358
|
-
'libfoobar.so'
|
|
1359
|
-
"""
|
|
1360
|
-
assert not self.is_mac_bundle
|
|
1361
|
-
|
|
1362
|
-
if self.flavor == 'mac' and self.type in (
|
|
1363
|
-
'static_library', 'executable', 'shared_library', 'loadable_module'):
|
|
1364
|
-
return self.xcode_settings.GetExecutablePath()
|
|
1365
|
-
|
|
1366
|
-
target = spec['target_name']
|
|
1367
|
-
target_prefix = ''
|
|
1368
|
-
target_ext = ''
|
|
1369
|
-
if self.type == 'static_library':
|
|
1370
|
-
if target[:3] == 'lib':
|
|
1371
|
-
target = target[3:]
|
|
1372
|
-
target_prefix = 'lib'
|
|
1373
|
-
target_ext = '.a'
|
|
1374
|
-
elif self.type in ('loadable_module', 'shared_library'):
|
|
1375
|
-
if target[:3] == 'lib':
|
|
1376
|
-
target = target[3:]
|
|
1377
|
-
target_prefix = 'lib'
|
|
1378
|
-
if self.flavor == 'aix':
|
|
1379
|
-
target_ext = '.a'
|
|
1380
|
-
else:
|
|
1381
|
-
target_ext = '.so'
|
|
1382
|
-
elif self.type == 'none':
|
|
1383
|
-
target = '%s.stamp' % target
|
|
1384
|
-
elif self.type != 'executable':
|
|
1385
|
-
print("ERROR: What output file should be generated?",
|
|
1386
|
-
"type", self.type, "target", target)
|
|
1387
|
-
|
|
1388
|
-
target_prefix = spec.get('product_prefix', target_prefix)
|
|
1389
|
-
target = spec.get('product_name', target)
|
|
1390
|
-
product_ext = spec.get('product_extension')
|
|
1391
|
-
if product_ext:
|
|
1392
|
-
target_ext = '.' + product_ext
|
|
1393
|
-
|
|
1394
|
-
return target_prefix + target + target_ext
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
def _InstallImmediately(self):
|
|
1398
|
-
return self.toolset == 'target' and self.flavor == 'mac' and self.type in (
|
|
1399
|
-
'static_library', 'executable', 'shared_library', 'loadable_module')
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
def ComputeOutput(self, spec):
|
|
1403
|
-
"""Return the 'output' (full output path) of a gyp spec.
|
|
1404
|
-
|
|
1405
|
-
E.g., the loadable module 'foobar' in directory 'baz' will produce
|
|
1406
|
-
'$(obj)/baz/libfoobar.so'
|
|
1407
|
-
"""
|
|
1408
|
-
assert not self.is_mac_bundle
|
|
1409
|
-
|
|
1410
|
-
path = os.path.join('$(obj).' + self.toolset, self.path)
|
|
1411
|
-
if self.type == 'executable' or self._InstallImmediately():
|
|
1412
|
-
path = '$(builddir)'
|
|
1413
|
-
path = spec.get('product_dir', path)
|
|
1414
|
-
return os.path.join(path, self.ComputeOutputBasename(spec))
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
def ComputeMacBundleOutput(self, spec):
|
|
1418
|
-
"""Return the 'output' (full output path) to a bundle output directory."""
|
|
1419
|
-
assert self.is_mac_bundle
|
|
1420
|
-
path = generator_default_variables['PRODUCT_DIR']
|
|
1421
|
-
return os.path.join(path, self.xcode_settings.GetWrapperName())
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
def ComputeMacBundleBinaryOutput(self, spec):
|
|
1425
|
-
"""Return the 'output' (full output path) to the binary in a bundle."""
|
|
1426
|
-
path = generator_default_variables['PRODUCT_DIR']
|
|
1427
|
-
return os.path.join(path, self.xcode_settings.GetExecutablePath())
|
|
1485
|
+
# See "Target-specific Variable Values" in the GNU Make manual."""
|
|
1486
|
+
)
|
|
1487
|
+
self.WriteLn("$(OBJS): TOOLSET := $(TOOLSET)")
|
|
1488
|
+
self.WriteLn(
|
|
1489
|
+
"$(OBJS): GYP_CFLAGS := "
|
|
1490
|
+
"$(DEFS_$(BUILDTYPE)) "
|
|
1491
|
+
"$(INCS_$(BUILDTYPE)) "
|
|
1492
|
+
"%s " % precompiled_header.GetInclude("c") + "$(CFLAGS_$(BUILDTYPE)) "
|
|
1493
|
+
"$(CFLAGS_C_$(BUILDTYPE))"
|
|
1494
|
+
)
|
|
1495
|
+
self.WriteLn(
|
|
1496
|
+
"$(OBJS): GYP_CXXFLAGS := "
|
|
1497
|
+
"$(DEFS_$(BUILDTYPE)) "
|
|
1498
|
+
"$(INCS_$(BUILDTYPE)) "
|
|
1499
|
+
"%s " % precompiled_header.GetInclude("cc") + "$(CFLAGS_$(BUILDTYPE)) "
|
|
1500
|
+
"$(CFLAGS_CC_$(BUILDTYPE))"
|
|
1501
|
+
)
|
|
1502
|
+
if self.flavor == "mac":
|
|
1503
|
+
self.WriteLn(
|
|
1504
|
+
"$(OBJS): GYP_OBJCFLAGS := "
|
|
1505
|
+
"$(DEFS_$(BUILDTYPE)) "
|
|
1506
|
+
"$(INCS_$(BUILDTYPE)) "
|
|
1507
|
+
"%s "
|
|
1508
|
+
% precompiled_header.GetInclude("m")
|
|
1509
|
+
+ "$(CFLAGS_$(BUILDTYPE)) "
|
|
1510
|
+
"$(CFLAGS_C_$(BUILDTYPE)) "
|
|
1511
|
+
"$(CFLAGS_OBJC_$(BUILDTYPE))"
|
|
1512
|
+
)
|
|
1513
|
+
self.WriteLn(
|
|
1514
|
+
"$(OBJS): GYP_OBJCXXFLAGS := "
|
|
1515
|
+
"$(DEFS_$(BUILDTYPE)) "
|
|
1516
|
+
"$(INCS_$(BUILDTYPE)) "
|
|
1517
|
+
"%s "
|
|
1518
|
+
% precompiled_header.GetInclude("mm")
|
|
1519
|
+
+ "$(CFLAGS_$(BUILDTYPE)) "
|
|
1520
|
+
"$(CFLAGS_CC_$(BUILDTYPE)) "
|
|
1521
|
+
"$(CFLAGS_OBJCC_$(BUILDTYPE))"
|
|
1522
|
+
)
|
|
1523
|
+
|
|
1524
|
+
self.WritePchTargets(precompiled_header.GetPchBuildCommands())
|
|
1525
|
+
|
|
1526
|
+
# If there are any object files in our input file list, link them into our
|
|
1527
|
+
# output.
|
|
1528
|
+
extra_link_deps += [source for source in sources if Linkable(source)]
|
|
1428
1529
|
|
|
1530
|
+
self.WriteLn()
|
|
1429
1531
|
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1532
|
+
def WritePchTargets(self, pch_commands):
|
|
1533
|
+
"""Writes make rules to compile prefix headers."""
|
|
1534
|
+
if not pch_commands:
|
|
1535
|
+
return
|
|
1536
|
+
|
|
1537
|
+
for gch, lang_flag, lang, input in pch_commands:
|
|
1538
|
+
extra_flags = {
|
|
1539
|
+
"c": "$(CFLAGS_C_$(BUILDTYPE))",
|
|
1540
|
+
"cc": "$(CFLAGS_CC_$(BUILDTYPE))",
|
|
1541
|
+
"m": "$(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))",
|
|
1542
|
+
"mm": "$(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))",
|
|
1543
|
+
}[lang]
|
|
1544
|
+
var_name = {
|
|
1545
|
+
"c": "GYP_PCH_CFLAGS",
|
|
1546
|
+
"cc": "GYP_PCH_CXXFLAGS",
|
|
1547
|
+
"m": "GYP_PCH_OBJCFLAGS",
|
|
1548
|
+
"mm": "GYP_PCH_OBJCXXFLAGS",
|
|
1549
|
+
}[lang]
|
|
1550
|
+
self.WriteLn(
|
|
1551
|
+
f"{gch}: {var_name} := {lang_flag} " + "$(DEFS_$(BUILDTYPE)) "
|
|
1552
|
+
"$(INCS_$(BUILDTYPE)) "
|
|
1553
|
+
"$(CFLAGS_$(BUILDTYPE)) " + extra_flags
|
|
1554
|
+
)
|
|
1555
|
+
|
|
1556
|
+
self.WriteLn(f"{gch}: {input} FORCE_DO_CMD")
|
|
1557
|
+
self.WriteLn("\t@$(call do_cmd,pch_%s,1)" % lang)
|
|
1558
|
+
self.WriteLn("")
|
|
1559
|
+
assert " " not in gch, "Spaces in gch filenames not supported (%s)" % gch
|
|
1560
|
+
self.WriteLn("all_deps += %s" % gch)
|
|
1561
|
+
self.WriteLn("")
|
|
1562
|
+
|
|
1563
|
+
def ComputeOutputBasename(self, spec):
|
|
1564
|
+
"""Return the 'output basename' of a gyp spec.
|
|
1565
|
+
|
|
1566
|
+
E.g., the loadable module 'foobar' in directory 'baz' will produce
|
|
1567
|
+
'libfoobar.so'
|
|
1568
|
+
"""
|
|
1569
|
+
assert not self.is_mac_bundle
|
|
1570
|
+
|
|
1571
|
+
if self.flavor == "mac" and self.type in (
|
|
1572
|
+
"static_library",
|
|
1573
|
+
"executable",
|
|
1574
|
+
"shared_library",
|
|
1575
|
+
"loadable_module",
|
|
1576
|
+
):
|
|
1577
|
+
return self.xcode_settings.GetExecutablePath()
|
|
1578
|
+
|
|
1579
|
+
target = spec["target_name"]
|
|
1580
|
+
target_prefix = ""
|
|
1581
|
+
target_ext = ""
|
|
1582
|
+
if self.type == "static_library":
|
|
1583
|
+
if target[:3] == "lib":
|
|
1584
|
+
target = target[3:]
|
|
1585
|
+
target_prefix = "lib"
|
|
1586
|
+
target_ext = ".a"
|
|
1587
|
+
elif self.type in ("loadable_module", "shared_library"):
|
|
1588
|
+
if target[:3] == "lib":
|
|
1589
|
+
target = target[3:]
|
|
1590
|
+
target_prefix = "lib"
|
|
1591
|
+
if self.flavor == "aix":
|
|
1592
|
+
target_ext = ".a"
|
|
1593
|
+
elif self.flavor == "zos":
|
|
1594
|
+
target_ext = ".x"
|
|
1595
|
+
else:
|
|
1596
|
+
target_ext = ".so"
|
|
1597
|
+
elif self.type == "none":
|
|
1598
|
+
target = "%s.stamp" % target
|
|
1599
|
+
elif self.type != "executable":
|
|
1600
|
+
print(
|
|
1601
|
+
"ERROR: What output file should be generated?",
|
|
1602
|
+
"type",
|
|
1603
|
+
self.type,
|
|
1604
|
+
"target",
|
|
1605
|
+
target,
|
|
1606
|
+
)
|
|
1607
|
+
|
|
1608
|
+
target_prefix = spec.get("product_prefix", target_prefix)
|
|
1609
|
+
target = spec.get("product_name", target)
|
|
1610
|
+
if product_ext := spec.get("product_extension"):
|
|
1611
|
+
target_ext = "." + product_ext
|
|
1612
|
+
|
|
1613
|
+
return target_prefix + target + target_ext
|
|
1614
|
+
|
|
1615
|
+
def _InstallImmediately(self):
|
|
1616
|
+
return (
|
|
1617
|
+
self.toolset == "target"
|
|
1618
|
+
and self.flavor == "mac"
|
|
1619
|
+
and self.type
|
|
1620
|
+
in ("static_library", "executable", "shared_library", "loadable_module")
|
|
1621
|
+
)
|
|
1622
|
+
|
|
1623
|
+
def ComputeOutput(self, spec):
|
|
1624
|
+
"""Return the 'output' (full output path) of a gyp spec.
|
|
1625
|
+
|
|
1626
|
+
E.g., the loadable module 'foobar' in directory 'baz' will produce
|
|
1627
|
+
'$(obj)/baz/libfoobar.so'
|
|
1628
|
+
"""
|
|
1629
|
+
assert not self.is_mac_bundle
|
|
1630
|
+
|
|
1631
|
+
path = os.path.join("$(obj)." + self.toolset, self.path)
|
|
1632
|
+
if self.type == "executable" or self._InstallImmediately():
|
|
1633
|
+
path = "$(builddir)"
|
|
1634
|
+
path = spec.get("product_dir", path)
|
|
1635
|
+
return os.path.join(path, self.ComputeOutputBasename(spec))
|
|
1636
|
+
|
|
1637
|
+
def ComputeMacBundleOutput(self, spec):
|
|
1638
|
+
"""Return the 'output' (full output path) to a bundle output directory."""
|
|
1639
|
+
assert self.is_mac_bundle
|
|
1640
|
+
path = generator_default_variables["PRODUCT_DIR"]
|
|
1641
|
+
return os.path.join(path, self.xcode_settings.GetWrapperName())
|
|
1642
|
+
|
|
1643
|
+
def ComputeMacBundleBinaryOutput(self, spec):
|
|
1644
|
+
"""Return the 'output' (full output path) to the binary in a bundle."""
|
|
1645
|
+
path = generator_default_variables["PRODUCT_DIR"]
|
|
1646
|
+
return os.path.join(path, self.xcode_settings.GetExecutablePath())
|
|
1647
|
+
|
|
1648
|
+
def ComputeDeps(self, spec):
|
|
1649
|
+
"""Compute the dependencies of a gyp spec.
|
|
1650
|
+
|
|
1651
|
+
Returns a tuple (deps, link_deps), where each is a list of
|
|
1652
|
+
filenames that will need to be put in front of make for either
|
|
1653
|
+
building (deps) or linking (link_deps).
|
|
1654
|
+
"""
|
|
1655
|
+
deps = []
|
|
1656
|
+
link_deps = []
|
|
1657
|
+
if "dependencies" in spec:
|
|
1658
|
+
deps.extend(
|
|
1659
|
+
[
|
|
1660
|
+
target_outputs[dep]
|
|
1661
|
+
for dep in spec["dependencies"]
|
|
1662
|
+
if target_outputs[dep]
|
|
1663
|
+
]
|
|
1664
|
+
)
|
|
1665
|
+
for dep in spec["dependencies"]:
|
|
1666
|
+
if dep in target_link_deps:
|
|
1667
|
+
link_deps.append(target_link_deps[dep])
|
|
1668
|
+
deps.extend(link_deps)
|
|
1669
|
+
# TODO: It seems we need to transitively link in libraries (e.g. -lfoo)?
|
|
1670
|
+
# This hack makes it work:
|
|
1671
|
+
# link_deps.extend(spec.get('libraries', []))
|
|
1672
|
+
return (gyp.common.uniquer(deps), gyp.common.uniquer(link_deps))
|
|
1673
|
+
|
|
1674
|
+
def GetSharedObjectFromSidedeck(self, sidedeck):
|
|
1675
|
+
"""Return the shared object files based on sidedeck"""
|
|
1676
|
+
return re.sub(r"\.x$", ".so", sidedeck)
|
|
1677
|
+
|
|
1678
|
+
def GetUnversionedSidedeckFromSidedeck(self, sidedeck):
|
|
1679
|
+
"""Return the shared object files based on sidedeck"""
|
|
1680
|
+
return re.sub(r"\.\d+\.x$", ".x", sidedeck)
|
|
1681
|
+
|
|
1682
|
+
def WriteDependencyOnExtraOutputs(self, target, extra_outputs):
|
|
1683
|
+
self.WriteMakeRule(
|
|
1684
|
+
[self.output_binary],
|
|
1685
|
+
extra_outputs,
|
|
1686
|
+
comment="Build our special outputs first.",
|
|
1687
|
+
order_only=True,
|
|
1688
|
+
)
|
|
1689
|
+
|
|
1690
|
+
def WriteTarget(
|
|
1691
|
+
self, spec, configs, deps, link_deps, bundle_deps, extra_outputs, part_of_all
|
|
1692
|
+
):
|
|
1693
|
+
"""Write Makefile code to produce the final target of the gyp spec.
|
|
1694
|
+
|
|
1695
|
+
spec, configs: input from gyp.
|
|
1696
|
+
deps, link_deps: dependency lists; see ComputeDeps()
|
|
1697
|
+
extra_outputs: any extra outputs that our target should depend on
|
|
1698
|
+
part_of_all: flag indicating this target is part of 'all'
|
|
1699
|
+
"""
|
|
1700
|
+
|
|
1701
|
+
self.WriteLn("### Rules for final target.")
|
|
1702
|
+
|
|
1703
|
+
if extra_outputs:
|
|
1704
|
+
self.WriteDependencyOnExtraOutputs(self.output_binary, extra_outputs)
|
|
1705
|
+
self.WriteMakeRule(
|
|
1706
|
+
extra_outputs,
|
|
1707
|
+
deps,
|
|
1708
|
+
comment=("Preserve order dependency of special output on deps."),
|
|
1709
|
+
order_only=True,
|
|
1710
|
+
)
|
|
1711
|
+
|
|
1712
|
+
target_postbuilds = {}
|
|
1713
|
+
if self.type != "none":
|
|
1714
|
+
for configname in sorted(configs.keys()):
|
|
1715
|
+
config = configs[configname]
|
|
1716
|
+
if self.flavor == "mac":
|
|
1717
|
+
ldflags = self.xcode_settings.GetLdflags(
|
|
1718
|
+
configname,
|
|
1719
|
+
generator_default_variables["PRODUCT_DIR"],
|
|
1720
|
+
lambda p: Sourceify(self.Absolutify(p)),
|
|
1721
|
+
arch=config.get("xcode_configuration_platform"),
|
|
1722
|
+
)
|
|
1723
|
+
|
|
1724
|
+
# TARGET_POSTBUILDS_$(BUILDTYPE) is added to postbuilds later on.
|
|
1725
|
+
gyp_to_build = gyp.common.InvertRelativePath(self.path)
|
|
1726
|
+
target_postbuild = self.xcode_settings.AddImplicitPostbuilds(
|
|
1727
|
+
configname,
|
|
1728
|
+
QuoteSpaces(
|
|
1729
|
+
os.path.normpath(os.path.join(gyp_to_build, self.output))
|
|
1730
|
+
),
|
|
1731
|
+
QuoteSpaces(
|
|
1732
|
+
os.path.normpath(
|
|
1733
|
+
os.path.join(gyp_to_build, self.output_binary)
|
|
1734
|
+
)
|
|
1735
|
+
),
|
|
1736
|
+
)
|
|
1737
|
+
if target_postbuild:
|
|
1738
|
+
target_postbuilds[configname] = target_postbuild
|
|
1739
|
+
else:
|
|
1740
|
+
ldflags = config.get("ldflags", [])
|
|
1741
|
+
# Compute an rpath for this output if needed.
|
|
1742
|
+
if any(dep.endswith(".so") or ".so." in dep for dep in deps):
|
|
1743
|
+
# We want to get the literal string "$ORIGIN"
|
|
1744
|
+
# into the link command, so we need lots of escaping.
|
|
1745
|
+
ldflags.append(r"-Wl,-rpath=\$$ORIGIN/")
|
|
1746
|
+
ldflags.append(r"-Wl,-rpath-link=\$(builddir)/")
|
|
1747
|
+
if library_dirs := config.get("library_dirs", []):
|
|
1748
|
+
library_dirs = [Sourceify(self.Absolutify(i)) for i in library_dirs]
|
|
1749
|
+
ldflags += [("-L%s" % library_dir) for library_dir in library_dirs]
|
|
1750
|
+
self.WriteList(ldflags, "LDFLAGS_%s" % configname)
|
|
1751
|
+
if self.flavor == "mac":
|
|
1752
|
+
self.WriteList(
|
|
1753
|
+
self.xcode_settings.GetLibtoolflags(configname),
|
|
1754
|
+
"LIBTOOLFLAGS_%s" % configname,
|
|
1755
|
+
)
|
|
1756
|
+
libraries = spec.get("libraries")
|
|
1757
|
+
if libraries:
|
|
1758
|
+
# Remove duplicate entries
|
|
1759
|
+
libraries = gyp.common.uniquer(libraries)
|
|
1760
|
+
if self.flavor == "mac":
|
|
1761
|
+
libraries = self.xcode_settings.AdjustLibraries(libraries)
|
|
1762
|
+
self.WriteList(libraries, "LIBS")
|
|
1763
|
+
self.WriteLn(
|
|
1764
|
+
"%s: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))"
|
|
1765
|
+
% QuoteSpaces(self.output_binary)
|
|
1766
|
+
)
|
|
1767
|
+
self.WriteLn("%s: LIBS := $(LIBS)" % QuoteSpaces(self.output_binary))
|
|
1768
|
+
|
|
1769
|
+
if self.flavor == "mac":
|
|
1770
|
+
self.WriteLn(
|
|
1771
|
+
"%s: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))"
|
|
1772
|
+
% QuoteSpaces(self.output_binary)
|
|
1773
|
+
)
|
|
1774
|
+
|
|
1775
|
+
# Postbuild actions. Like actions, but implicitly depend on the target's
|
|
1776
|
+
# output.
|
|
1777
|
+
postbuilds = []
|
|
1778
|
+
if self.flavor == "mac":
|
|
1779
|
+
if target_postbuilds:
|
|
1780
|
+
postbuilds.append("$(TARGET_POSTBUILDS_$(BUILDTYPE))")
|
|
1781
|
+
postbuilds.extend(gyp.xcode_emulation.GetSpecPostbuildCommands(spec))
|
|
1782
|
+
|
|
1783
|
+
if postbuilds:
|
|
1784
|
+
# Envvars may be referenced by TARGET_POSTBUILDS_$(BUILDTYPE),
|
|
1785
|
+
# so we must output its definition first, since we declare variables
|
|
1786
|
+
# using ":=".
|
|
1787
|
+
self.WriteSortedXcodeEnv(self.output, self.GetSortedXcodePostbuildEnv())
|
|
1788
|
+
|
|
1789
|
+
for configname, value in target_postbuilds.items():
|
|
1790
|
+
self.WriteLn(
|
|
1791
|
+
"%s: TARGET_POSTBUILDS_%s := %s"
|
|
1792
|
+
% (
|
|
1793
|
+
QuoteSpaces(self.output),
|
|
1794
|
+
configname,
|
|
1795
|
+
gyp.common.EncodePOSIXShellList(value),
|
|
1796
|
+
)
|
|
1797
|
+
)
|
|
1798
|
+
|
|
1799
|
+
# Postbuilds expect to be run in the gyp file's directory, so insert an
|
|
1800
|
+
# implicit postbuild to cd to there.
|
|
1801
|
+
postbuilds.insert(0, gyp.common.EncodePOSIXShellList(["cd", self.path]))
|
|
1802
|
+
for i, postbuild in enumerate(postbuilds):
|
|
1803
|
+
if not postbuild.startswith("$"):
|
|
1804
|
+
postbuilds[i] = EscapeShellArgument(postbuild)
|
|
1805
|
+
self.WriteLn("%s: builddir := $(abs_builddir)" % QuoteSpaces(self.output))
|
|
1806
|
+
self.WriteLn(
|
|
1807
|
+
"%s: POSTBUILDS := %s"
|
|
1808
|
+
% (QuoteSpaces(self.output), " ".join(postbuilds))
|
|
1809
|
+
)
|
|
1810
|
+
|
|
1811
|
+
# A bundle directory depends on its dependencies such as bundle resources
|
|
1812
|
+
# and bundle binary. When all dependencies have been built, the bundle
|
|
1813
|
+
# needs to be packaged.
|
|
1814
|
+
if self.is_mac_bundle:
|
|
1815
|
+
# If the framework doesn't contain a binary, then nothing depends
|
|
1816
|
+
# on the actions -- make the framework depend on them directly too.
|
|
1817
|
+
self.WriteDependencyOnExtraOutputs(self.output, extra_outputs)
|
|
1818
|
+
|
|
1819
|
+
# Bundle dependencies. Note that the code below adds actions to this
|
|
1820
|
+
# target, so if you move these two lines, move the lines below as well.
|
|
1821
|
+
self.WriteList([QuoteSpaces(dep) for dep in bundle_deps], "BUNDLE_DEPS")
|
|
1822
|
+
self.WriteLn("%s: $(BUNDLE_DEPS)" % QuoteSpaces(self.output))
|
|
1823
|
+
|
|
1824
|
+
# After the framework is built, package it. Needs to happen before
|
|
1825
|
+
# postbuilds, since postbuilds depend on this.
|
|
1826
|
+
if self.type in ("shared_library", "loadable_module"):
|
|
1827
|
+
self.WriteLn(
|
|
1828
|
+
"\t@$(call do_cmd,mac_package_framework,,,%s)"
|
|
1829
|
+
% self.xcode_settings.GetFrameworkVersion()
|
|
1830
|
+
)
|
|
1831
|
+
|
|
1832
|
+
# Bundle postbuilds can depend on the whole bundle, so run them after
|
|
1833
|
+
# the bundle is packaged, not already after the bundle binary is done.
|
|
1834
|
+
if postbuilds:
|
|
1835
|
+
self.WriteLn("\t@$(call do_postbuilds)")
|
|
1836
|
+
postbuilds = [] # Don't write postbuilds for target's output.
|
|
1837
|
+
|
|
1838
|
+
# Needed by test/mac/gyptest-rebuild.py.
|
|
1839
|
+
self.WriteLn("\t@true # No-op, used by tests")
|
|
1840
|
+
|
|
1841
|
+
# Since this target depends on binary and resources which are in
|
|
1842
|
+
# nested subfolders, the framework directory will be older than
|
|
1843
|
+
# its dependencies usually. To prevent this rule from executing
|
|
1844
|
+
# on every build (expensive, especially with postbuilds), explicitly
|
|
1845
|
+
# update the time on the framework directory.
|
|
1846
|
+
self.WriteLn("\t@touch -c %s" % QuoteSpaces(self.output))
|
|
1847
|
+
|
|
1848
|
+
if postbuilds:
|
|
1849
|
+
assert not self.is_mac_bundle, (
|
|
1850
|
+
"Postbuilds for bundles should be done "
|
|
1851
|
+
"on the bundle, not the binary (target '%s')" % self.target
|
|
1852
|
+
)
|
|
1853
|
+
assert "product_dir" not in spec, (
|
|
1854
|
+
"Postbuilds do not work with custom product_dir"
|
|
1855
|
+
)
|
|
1856
|
+
|
|
1857
|
+
if self.type == "executable":
|
|
1858
|
+
self.WriteLn(
|
|
1859
|
+
"%s: LD_INPUTS := %s"
|
|
1860
|
+
% (
|
|
1861
|
+
QuoteSpaces(self.output_binary),
|
|
1862
|
+
" ".join(QuoteSpaces(dep) for dep in link_deps),
|
|
1863
|
+
)
|
|
1864
|
+
)
|
|
1865
|
+
if self.toolset == "host" and self.flavor == "android":
|
|
1866
|
+
self.WriteDoCmd(
|
|
1867
|
+
[self.output_binary],
|
|
1868
|
+
link_deps,
|
|
1869
|
+
"link_host",
|
|
1870
|
+
part_of_all,
|
|
1871
|
+
postbuilds=postbuilds,
|
|
1872
|
+
)
|
|
1873
|
+
else:
|
|
1874
|
+
self.WriteDoCmd(
|
|
1875
|
+
[self.output_binary],
|
|
1876
|
+
link_deps,
|
|
1877
|
+
"link",
|
|
1878
|
+
part_of_all,
|
|
1879
|
+
postbuilds=postbuilds,
|
|
1880
|
+
)
|
|
1881
|
+
|
|
1882
|
+
elif self.type == "static_library":
|
|
1883
|
+
for link_dep in link_deps:
|
|
1884
|
+
assert " " not in link_dep, (
|
|
1885
|
+
"Spaces in alink input filenames not supported (%s)" % link_dep
|
|
1886
|
+
)
|
|
1887
|
+
if (
|
|
1888
|
+
self.flavor not in ("mac", "openbsd", "netbsd", "win")
|
|
1889
|
+
and not self.is_standalone_static_library
|
|
1890
|
+
):
|
|
1891
|
+
if self.flavor in ("linux", "android", "openharmony"):
|
|
1892
|
+
self.WriteMakeRule(
|
|
1893
|
+
[self.output_binary],
|
|
1894
|
+
link_deps,
|
|
1895
|
+
actions=["$(call create_thin_archive,$@,$^)"],
|
|
1896
|
+
)
|
|
1897
|
+
else:
|
|
1898
|
+
self.WriteDoCmd(
|
|
1899
|
+
[self.output_binary],
|
|
1900
|
+
link_deps,
|
|
1901
|
+
"alink_thin",
|
|
1902
|
+
part_of_all,
|
|
1903
|
+
postbuilds=postbuilds,
|
|
1904
|
+
)
|
|
1905
|
+
elif self.flavor in ("linux", "android", "openharmony"):
|
|
1906
|
+
self.WriteMakeRule(
|
|
1907
|
+
[self.output_binary],
|
|
1908
|
+
link_deps,
|
|
1909
|
+
actions=["$(call create_archive,$@,$^)"],
|
|
1910
|
+
)
|
|
1911
|
+
else:
|
|
1912
|
+
self.WriteDoCmd(
|
|
1913
|
+
[self.output_binary],
|
|
1914
|
+
link_deps,
|
|
1915
|
+
"alink",
|
|
1916
|
+
part_of_all,
|
|
1917
|
+
postbuilds=postbuilds,
|
|
1918
|
+
)
|
|
1919
|
+
elif self.type == "shared_library":
|
|
1920
|
+
self.WriteLn(
|
|
1921
|
+
"%s: LD_INPUTS := %s"
|
|
1922
|
+
% (
|
|
1923
|
+
QuoteSpaces(self.output_binary),
|
|
1924
|
+
" ".join(QuoteSpaces(dep) for dep in link_deps),
|
|
1925
|
+
)
|
|
1926
|
+
)
|
|
1927
|
+
self.WriteDoCmd(
|
|
1928
|
+
[self.output_binary],
|
|
1929
|
+
link_deps,
|
|
1930
|
+
"solink",
|
|
1931
|
+
part_of_all,
|
|
1932
|
+
postbuilds=postbuilds,
|
|
1933
|
+
)
|
|
1934
|
+
# z/OS has a .so target as well as a sidedeck .x target
|
|
1935
|
+
if self.flavor == "zos":
|
|
1936
|
+
self.WriteLn(
|
|
1937
|
+
"%s: %s"
|
|
1938
|
+
% (
|
|
1939
|
+
QuoteSpaces(
|
|
1940
|
+
self.GetSharedObjectFromSidedeck(self.output_binary)
|
|
1941
|
+
),
|
|
1942
|
+
QuoteSpaces(self.output_binary),
|
|
1943
|
+
)
|
|
1944
|
+
)
|
|
1945
|
+
elif self.type == "loadable_module":
|
|
1946
|
+
for link_dep in link_deps:
|
|
1947
|
+
assert " " not in link_dep, (
|
|
1948
|
+
"Spaces in module input filenames not supported (%s)" % link_dep
|
|
1949
|
+
)
|
|
1950
|
+
if self.toolset == "host" and self.flavor == "android":
|
|
1951
|
+
self.WriteDoCmd(
|
|
1952
|
+
[self.output_binary],
|
|
1953
|
+
link_deps,
|
|
1954
|
+
"solink_module_host",
|
|
1955
|
+
part_of_all,
|
|
1956
|
+
postbuilds=postbuilds,
|
|
1957
|
+
)
|
|
1958
|
+
else:
|
|
1959
|
+
self.WriteDoCmd(
|
|
1960
|
+
[self.output_binary],
|
|
1961
|
+
link_deps,
|
|
1962
|
+
"solink_module",
|
|
1963
|
+
part_of_all,
|
|
1964
|
+
postbuilds=postbuilds,
|
|
1965
|
+
)
|
|
1966
|
+
elif self.type == "none":
|
|
1967
|
+
# Write a stamp line.
|
|
1968
|
+
self.WriteDoCmd(
|
|
1969
|
+
[self.output_binary], deps, "touch", part_of_all, postbuilds=postbuilds
|
|
1970
|
+
)
|
|
1496
1971
|
else:
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
self
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
"
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1972
|
+
print("WARNING: no output for", self.type, self.target)
|
|
1973
|
+
|
|
1974
|
+
# Add an alias for each target (if there are any outputs).
|
|
1975
|
+
# Installable target aliases are created below.
|
|
1976
|
+
if (self.output and self.output != self.target) and (
|
|
1977
|
+
self.type not in self._INSTALLABLE_TARGETS
|
|
1978
|
+
):
|
|
1979
|
+
self.WriteMakeRule(
|
|
1980
|
+
[self.target], [self.output], comment="Add target alias", phony=True
|
|
1981
|
+
)
|
|
1982
|
+
if part_of_all:
|
|
1983
|
+
self.WriteMakeRule(
|
|
1984
|
+
["all"],
|
|
1985
|
+
[self.target],
|
|
1986
|
+
comment='Add target alias to "all" target.',
|
|
1987
|
+
phony=True,
|
|
1988
|
+
)
|
|
1989
|
+
|
|
1990
|
+
# Add special-case rules for our installable targets.
|
|
1991
|
+
# 1) They need to install to the build dir or "product" dir.
|
|
1992
|
+
# 2) They get shortcuts for building (e.g. "make chrome").
|
|
1993
|
+
# 3) They are part of "make all".
|
|
1994
|
+
if self.type in self._INSTALLABLE_TARGETS or self.is_standalone_static_library:
|
|
1995
|
+
if self.type == "shared_library":
|
|
1996
|
+
file_desc = "shared library"
|
|
1997
|
+
elif self.type == "static_library":
|
|
1998
|
+
file_desc = "static library"
|
|
1999
|
+
else:
|
|
2000
|
+
file_desc = "executable"
|
|
2001
|
+
install_path = self._InstallableTargetInstallPath()
|
|
2002
|
+
installable_deps = []
|
|
2003
|
+
if self.flavor != "zos":
|
|
2004
|
+
installable_deps.append(self.output)
|
|
2005
|
+
if (
|
|
2006
|
+
self.flavor == "mac"
|
|
2007
|
+
and "product_dir" not in spec
|
|
2008
|
+
and self.toolset == "target"
|
|
2009
|
+
):
|
|
2010
|
+
# On mac, products are created in install_path immediately.
|
|
2011
|
+
assert install_path == self.output, f"{install_path} != {self.output}"
|
|
2012
|
+
|
|
2013
|
+
# Point the target alias to the final binary output.
|
|
2014
|
+
self.WriteMakeRule(
|
|
2015
|
+
[self.target], [install_path], comment="Add target alias", phony=True
|
|
2016
|
+
)
|
|
2017
|
+
if install_path != self.output:
|
|
2018
|
+
assert not self.is_mac_bundle # See comment a few lines above.
|
|
2019
|
+
self.WriteDoCmd(
|
|
2020
|
+
[install_path],
|
|
2021
|
+
[self.output],
|
|
2022
|
+
"copy",
|
|
2023
|
+
comment="Copy this to the %s output path." % file_desc,
|
|
2024
|
+
part_of_all=part_of_all,
|
|
2025
|
+
)
|
|
2026
|
+
if self.flavor != "zos":
|
|
2027
|
+
installable_deps.append(install_path)
|
|
2028
|
+
if self.flavor == "zos" and self.type == "shared_library":
|
|
2029
|
+
# lib.target/libnode.so has a dependency on $(obj).target/libnode.so
|
|
2030
|
+
self.WriteDoCmd(
|
|
2031
|
+
[self.GetSharedObjectFromSidedeck(install_path)],
|
|
2032
|
+
[self.GetSharedObjectFromSidedeck(self.output)],
|
|
2033
|
+
"copy",
|
|
2034
|
+
comment="Copy this to the %s output path." % file_desc,
|
|
2035
|
+
part_of_all=part_of_all,
|
|
2036
|
+
)
|
|
2037
|
+
# Create a symlink of libnode.x to libnode.version.x
|
|
2038
|
+
self.WriteDoCmd(
|
|
2039
|
+
[self.GetUnversionedSidedeckFromSidedeck(install_path)],
|
|
2040
|
+
[install_path],
|
|
2041
|
+
"symlink",
|
|
2042
|
+
comment="Symlnk this to the %s output path." % file_desc,
|
|
2043
|
+
part_of_all=part_of_all,
|
|
2044
|
+
)
|
|
2045
|
+
# Place libnode.version.so and libnode.x symlink in lib.target dir
|
|
2046
|
+
installable_deps.append(self.GetSharedObjectFromSidedeck(install_path))
|
|
2047
|
+
installable_deps.append(
|
|
2048
|
+
self.GetUnversionedSidedeckFromSidedeck(install_path)
|
|
2049
|
+
)
|
|
2050
|
+
if self.alias not in (self.output, self.target):
|
|
2051
|
+
self.WriteMakeRule(
|
|
2052
|
+
[self.alias],
|
|
2053
|
+
installable_deps,
|
|
2054
|
+
comment="Short alias for building this %s." % file_desc,
|
|
2055
|
+
phony=True,
|
|
2056
|
+
)
|
|
2057
|
+
if self.flavor == "zos" and self.type == "shared_library":
|
|
2058
|
+
# Make sure that .x symlink target is run
|
|
2059
|
+
self.WriteMakeRule(
|
|
2060
|
+
["all"],
|
|
2061
|
+
[
|
|
2062
|
+
self.GetUnversionedSidedeckFromSidedeck(install_path),
|
|
2063
|
+
self.GetSharedObjectFromSidedeck(install_path),
|
|
2064
|
+
],
|
|
2065
|
+
comment='Add %s to "all" target.' % file_desc,
|
|
2066
|
+
phony=True,
|
|
2067
|
+
)
|
|
2068
|
+
elif part_of_all:
|
|
2069
|
+
self.WriteMakeRule(
|
|
2070
|
+
["all"],
|
|
2071
|
+
[install_path],
|
|
2072
|
+
comment='Add %s to "all" target.' % file_desc,
|
|
2073
|
+
phony=True,
|
|
2074
|
+
)
|
|
2075
|
+
|
|
2076
|
+
def WriteList(self, value_list, variable=None, prefix="", quoter=QuoteIfNecessary):
|
|
2077
|
+
"""Write a variable definition that is a list of values.
|
|
2078
|
+
|
|
2079
|
+
E.g. WriteList(['a','b'], 'foo', prefix='blah') writes out
|
|
2080
|
+
foo = blaha blahb
|
|
2081
|
+
but in a pretty-printed style.
|
|
2082
|
+
"""
|
|
2083
|
+
values = ""
|
|
2084
|
+
if value_list:
|
|
2085
|
+
value_list = [replace_sep(quoter(prefix + value)) for value in value_list]
|
|
2086
|
+
values = " \\\n\t" + " \\\n\t".join(value_list)
|
|
2087
|
+
self.fp.write(f"{variable} :={values}\n\n")
|
|
2088
|
+
|
|
2089
|
+
def WriteDoCmd(
|
|
2090
|
+
self, outputs, inputs, command, part_of_all, comment=None, postbuilds=False
|
|
2091
|
+
):
|
|
2092
|
+
"""Write a Makefile rule that uses do_cmd.
|
|
2093
|
+
|
|
2094
|
+
This makes the outputs dependent on the command line that was run,
|
|
2095
|
+
as well as support the V= make command line flag.
|
|
2096
|
+
"""
|
|
2097
|
+
suffix = ""
|
|
2098
|
+
if postbuilds:
|
|
2099
|
+
assert "," not in command
|
|
2100
|
+
suffix = ",,1" # Tell do_cmd to honor $POSTBUILDS
|
|
2101
|
+
self.WriteMakeRule(
|
|
2102
|
+
outputs,
|
|
2103
|
+
inputs,
|
|
2104
|
+
actions=[f"$(call do_cmd,{command}{suffix})"],
|
|
2105
|
+
comment=comment,
|
|
2106
|
+
command=command,
|
|
2107
|
+
force=True,
|
|
2108
|
+
)
|
|
2109
|
+
# Add our outputs to the list of targets we read depfiles from.
|
|
2110
|
+
# all_deps is only used for deps file reading, and for deps files we replace
|
|
2111
|
+
# spaces with ? because escaping doesn't work with make's $(sort) and
|
|
2112
|
+
# other functions.
|
|
2113
|
+
outputs = [QuoteSpaces(o, SPACE_REPLACEMENT) for o in outputs]
|
|
2114
|
+
self.WriteLn("all_deps += %s" % " ".join(outputs))
|
|
2115
|
+
|
|
2116
|
+
def WriteMakeRule(
|
|
2117
|
+
self,
|
|
2118
|
+
outputs,
|
|
2119
|
+
inputs,
|
|
2120
|
+
actions=None,
|
|
2121
|
+
comment=None,
|
|
2122
|
+
order_only=False,
|
|
2123
|
+
force=False,
|
|
2124
|
+
phony=False,
|
|
2125
|
+
command=None,
|
|
2126
|
+
):
|
|
2127
|
+
"""Write a Makefile rule, with some extra tricks.
|
|
2128
|
+
|
|
2129
|
+
outputs: a list of outputs for the rule (note: this is not directly
|
|
2130
|
+
supported by make; see comments below)
|
|
2131
|
+
inputs: a list of inputs for the rule
|
|
2132
|
+
actions: a list of shell commands to run for the rule
|
|
2133
|
+
comment: a comment to put in the Makefile above the rule (also useful
|
|
2134
|
+
for making this Python script's code self-documenting)
|
|
2135
|
+
order_only: if true, makes the dependency order-only
|
|
2136
|
+
force: if true, include FORCE_DO_CMD as an order-only dep
|
|
2137
|
+
phony: if true, the rule does not actually generate the named output, the
|
|
2138
|
+
output is just a name to run the rule
|
|
2139
|
+
command: (optional) command name to generate unambiguous labels
|
|
2140
|
+
"""
|
|
2141
|
+
outputs = [QuoteSpaces(o) for o in outputs]
|
|
2142
|
+
inputs = [QuoteSpaces(i) for i in inputs]
|
|
2143
|
+
|
|
2144
|
+
if comment:
|
|
2145
|
+
self.WriteLn("# " + comment)
|
|
2146
|
+
if phony:
|
|
2147
|
+
self.WriteLn(".PHONY: " + " ".join(outputs))
|
|
2148
|
+
if actions:
|
|
2149
|
+
self.WriteLn("%s: TOOLSET := $(TOOLSET)" % outputs[0])
|
|
2150
|
+
force_append = " FORCE_DO_CMD" if force else ""
|
|
2151
|
+
|
|
2152
|
+
if order_only:
|
|
2153
|
+
# Order only rule: Just write a simple rule.
|
|
2154
|
+
# TODO(evanm): just make order_only a list of deps instead of this hack.
|
|
2155
|
+
self.WriteLn(
|
|
2156
|
+
"{}: | {}{}".format(" ".join(outputs), " ".join(inputs), force_append)
|
|
2157
|
+
)
|
|
2158
|
+
elif len(outputs) == 1:
|
|
2159
|
+
# Regular rule, one output: Just write a simple rule.
|
|
2160
|
+
self.WriteLn("{}: {}{}".format(outputs[0], " ".join(inputs), force_append))
|
|
2161
|
+
else:
|
|
2162
|
+
# Regular rule, more than one output: Multiple outputs are tricky in
|
|
2163
|
+
# make. We will write three rules:
|
|
2164
|
+
# - All outputs depend on an intermediate file.
|
|
2165
|
+
# - Make .INTERMEDIATE depend on the intermediate.
|
|
2166
|
+
# - The intermediate file depends on the inputs and executes the
|
|
2167
|
+
# actual command.
|
|
2168
|
+
# - The intermediate recipe will 'touch' the intermediate file.
|
|
2169
|
+
# - The multi-output rule will have an do-nothing recipe.
|
|
2170
|
+
|
|
2171
|
+
# Hash the target name to avoid generating overlong filenames.
|
|
2172
|
+
cmddigest = hashlib.sha256(
|
|
2173
|
+
(command or self.target).encode("utf-8")
|
|
2174
|
+
).hexdigest()
|
|
2175
|
+
intermediate = "%s.intermediate" % cmddigest
|
|
2176
|
+
self.WriteLn("{}: {}".format(" ".join(outputs), intermediate))
|
|
2177
|
+
self.WriteLn("\t%s" % "@:")
|
|
2178
|
+
self.WriteLn("{}: {}".format(".INTERMEDIATE", intermediate))
|
|
2179
|
+
self.WriteLn(
|
|
2180
|
+
"{}: {}{}".format(intermediate, " ".join(inputs), force_append)
|
|
2181
|
+
)
|
|
2182
|
+
actions.insert(0, "$(call do_cmd,touch)")
|
|
2183
|
+
|
|
2184
|
+
if actions:
|
|
2185
|
+
for action in actions:
|
|
2186
|
+
self.WriteLn("\t%s" % action)
|
|
2187
|
+
self.WriteLn()
|
|
1707
2188
|
|
|
2189
|
+
def WriteAndroidNdkModuleRule(self, module_name, all_sources, link_deps):
|
|
2190
|
+
"""Write a set of LOCAL_XXX definitions for Android NDK.
|
|
2191
|
+
|
|
2192
|
+
These variable definitions will be used by Android NDK but do nothing for
|
|
2193
|
+
non-Android applications.
|
|
2194
|
+
|
|
2195
|
+
Arguments:
|
|
2196
|
+
module_name: Android NDK module name, which must be unique among all
|
|
2197
|
+
module names.
|
|
2198
|
+
all_sources: A list of source files (will be filtered by Compilable).
|
|
2199
|
+
link_deps: A list of link dependencies, which must be sorted in
|
|
2200
|
+
the order from dependencies to dependents.
|
|
2201
|
+
"""
|
|
2202
|
+
if self.type not in ("executable", "shared_library", "static_library"):
|
|
2203
|
+
return
|
|
2204
|
+
|
|
2205
|
+
self.WriteLn("# Variable definitions for Android applications")
|
|
2206
|
+
self.WriteLn("include $(CLEAR_VARS)")
|
|
2207
|
+
self.WriteLn("LOCAL_MODULE := " + module_name)
|
|
2208
|
+
self.WriteLn(
|
|
2209
|
+
"LOCAL_CFLAGS := $(CFLAGS_$(BUILDTYPE)) "
|
|
2210
|
+
"$(DEFS_$(BUILDTYPE)) "
|
|
2211
|
+
# LOCAL_CFLAGS is applied to both of C and C++. There is
|
|
2212
|
+
# no way to specify $(CFLAGS_C_$(BUILDTYPE)) only for C
|
|
2213
|
+
# sources.
|
|
2214
|
+
"$(CFLAGS_C_$(BUILDTYPE)) "
|
|
2215
|
+
# $(INCS_$(BUILDTYPE)) includes the prefix '-I' while
|
|
2216
|
+
# LOCAL_C_INCLUDES does not expect it. So put it in
|
|
2217
|
+
# LOCAL_CFLAGS.
|
|
2218
|
+
"$(INCS_$(BUILDTYPE))"
|
|
2219
|
+
)
|
|
2220
|
+
# LOCAL_CXXFLAGS is obsolete and LOCAL_CPPFLAGS is preferred.
|
|
2221
|
+
self.WriteLn("LOCAL_CPPFLAGS := $(CFLAGS_CC_$(BUILDTYPE))")
|
|
2222
|
+
self.WriteLn("LOCAL_C_INCLUDES :=")
|
|
2223
|
+
self.WriteLn("LOCAL_LDLIBS := $(LDFLAGS_$(BUILDTYPE)) $(LIBS)")
|
|
2224
|
+
|
|
2225
|
+
# Detect the C++ extension.
|
|
2226
|
+
cpp_ext = {".cc": 0, ".cpp": 0, ".cxx": 0}
|
|
2227
|
+
default_cpp_ext = ".cpp"
|
|
2228
|
+
for filename in all_sources:
|
|
2229
|
+
ext = os.path.splitext(filename)[1]
|
|
2230
|
+
if ext in cpp_ext:
|
|
2231
|
+
cpp_ext[ext] += 1
|
|
2232
|
+
if cpp_ext[ext] > cpp_ext[default_cpp_ext]:
|
|
2233
|
+
default_cpp_ext = ext
|
|
2234
|
+
self.WriteLn("LOCAL_CPP_EXTENSION := " + default_cpp_ext)
|
|
2235
|
+
|
|
2236
|
+
self.WriteList(
|
|
2237
|
+
list(map(self.Absolutify, filter(Compilable, all_sources))),
|
|
2238
|
+
"LOCAL_SRC_FILES",
|
|
2239
|
+
)
|
|
2240
|
+
|
|
2241
|
+
# Filter out those which do not match prefix and suffix and produce
|
|
2242
|
+
# the resulting list without prefix and suffix.
|
|
2243
|
+
def DepsToModules(deps, prefix, suffix):
|
|
2244
|
+
modules = []
|
|
2245
|
+
for filepath in deps:
|
|
2246
|
+
filename = os.path.basename(filepath)
|
|
2247
|
+
if filename.startswith(prefix) and filename.endswith(suffix):
|
|
2248
|
+
modules.append(filename[len(prefix) : -len(suffix)])
|
|
2249
|
+
return modules
|
|
2250
|
+
|
|
2251
|
+
# Retrieve the default value of 'SHARED_LIB_SUFFIX'
|
|
2252
|
+
params = {"flavor": "linux"}
|
|
2253
|
+
default_variables = {}
|
|
2254
|
+
CalculateVariables(default_variables, params)
|
|
2255
|
+
|
|
2256
|
+
self.WriteList(
|
|
2257
|
+
DepsToModules(
|
|
2258
|
+
link_deps,
|
|
2259
|
+
generator_default_variables["SHARED_LIB_PREFIX"],
|
|
2260
|
+
default_variables["SHARED_LIB_SUFFIX"],
|
|
2261
|
+
),
|
|
2262
|
+
"LOCAL_SHARED_LIBRARIES",
|
|
2263
|
+
)
|
|
2264
|
+
self.WriteList(
|
|
2265
|
+
DepsToModules(
|
|
2266
|
+
link_deps,
|
|
2267
|
+
generator_default_variables["STATIC_LIB_PREFIX"],
|
|
2268
|
+
generator_default_variables["STATIC_LIB_SUFFIX"],
|
|
2269
|
+
),
|
|
2270
|
+
"LOCAL_STATIC_LIBRARIES",
|
|
2271
|
+
)
|
|
2272
|
+
|
|
2273
|
+
if self.type == "executable":
|
|
2274
|
+
self.WriteLn("include $(BUILD_EXECUTABLE)")
|
|
2275
|
+
elif self.type == "shared_library":
|
|
2276
|
+
self.WriteLn("include $(BUILD_SHARED_LIBRARY)")
|
|
2277
|
+
elif self.type == "static_library":
|
|
2278
|
+
self.WriteLn("include $(BUILD_STATIC_LIBRARY)")
|
|
2279
|
+
self.WriteLn()
|
|
1708
2280
|
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
2281
|
+
def WriteLn(self, text=""):
|
|
2282
|
+
self.fp.write(text + "\n")
|
|
2283
|
+
|
|
2284
|
+
def GetSortedXcodeEnv(self, additional_settings=None):
|
|
2285
|
+
return gyp.xcode_emulation.GetSortedXcodeEnv(
|
|
2286
|
+
self.xcode_settings,
|
|
2287
|
+
"$(abs_builddir)",
|
|
2288
|
+
os.path.join("$(abs_srcdir)", self.path),
|
|
2289
|
+
"$(BUILDTYPE)",
|
|
2290
|
+
additional_settings,
|
|
2291
|
+
)
|
|
2292
|
+
|
|
2293
|
+
def GetSortedXcodePostbuildEnv(self):
|
|
2294
|
+
# CHROMIUM_STRIP_SAVE_FILE is a chromium-specific hack.
|
|
2295
|
+
# TODO(thakis): It would be nice to have some general mechanism instead.
|
|
2296
|
+
strip_save_file = self.xcode_settings.GetPerTargetSetting(
|
|
2297
|
+
"CHROMIUM_STRIP_SAVE_FILE", ""
|
|
2298
|
+
)
|
|
2299
|
+
# Even if strip_save_file is empty, explicitly write it. Else a postbuild
|
|
2300
|
+
# might pick up an export from an earlier target.
|
|
2301
|
+
return self.GetSortedXcodeEnv(
|
|
2302
|
+
additional_settings={"CHROMIUM_STRIP_SAVE_FILE": strip_save_file}
|
|
2303
|
+
)
|
|
2304
|
+
|
|
2305
|
+
def WriteSortedXcodeEnv(self, target, env):
|
|
2306
|
+
for k, v in env:
|
|
2307
|
+
# For
|
|
2308
|
+
# foo := a\ b
|
|
2309
|
+
# the escaped space does the right thing. For
|
|
2310
|
+
# export foo := a\ b
|
|
2311
|
+
# it does not -- the backslash is written to the env as literal character.
|
|
2312
|
+
# So don't escape spaces in |env[k]|.
|
|
2313
|
+
self.WriteLn(f"{QuoteSpaces(target)}: export {k} := {v}")
|
|
2314
|
+
|
|
2315
|
+
def Objectify(self, path):
|
|
2316
|
+
"""Convert a path to its output directory form."""
|
|
2317
|
+
if "$(" in path:
|
|
2318
|
+
path = path.replace("$(obj)/", "$(obj).%s/$(TARGET)/" % self.toolset)
|
|
2319
|
+
if "$(obj)" not in path:
|
|
2320
|
+
path = f"$(obj).{self.toolset}/$(TARGET)/{path}"
|
|
2321
|
+
return path
|
|
2322
|
+
|
|
2323
|
+
def Pchify(self, path, lang):
|
|
2324
|
+
"""Convert a prefix header path to its output directory form."""
|
|
2325
|
+
path = self.Absolutify(path)
|
|
2326
|
+
if "$(" in path:
|
|
2327
|
+
path = path.replace(
|
|
2328
|
+
"$(obj)/", f"$(obj).{self.toolset}/$(TARGET)/pch-{lang}"
|
|
2329
|
+
)
|
|
2330
|
+
return path
|
|
2331
|
+
return f"$(obj).{self.toolset}/$(TARGET)/pch-{lang}/{path}"
|
|
2332
|
+
|
|
2333
|
+
def Absolutify(self, path):
|
|
2334
|
+
"""Convert a subdirectory-relative path into a base-relative path.
|
|
2335
|
+
Skips over paths that contain variables."""
|
|
2336
|
+
if "$(" in path:
|
|
2337
|
+
# Don't call normpath in this case, as it might collapse the
|
|
2338
|
+
# path too aggressively if it features '..'. However it's still
|
|
2339
|
+
# important to strip trailing slashes.
|
|
2340
|
+
return path.rstrip("/")
|
|
2341
|
+
return os.path.normpath(os.path.join(self.path, path))
|
|
2342
|
+
|
|
2343
|
+
def ExpandInputRoot(self, template, expansion, dirname):
|
|
2344
|
+
if "%(INPUT_ROOT)s" not in template and "%(INPUT_DIRNAME)s" not in template:
|
|
2345
|
+
return template
|
|
2346
|
+
path = template % {
|
|
2347
|
+
"INPUT_ROOT": expansion,
|
|
2348
|
+
"INPUT_DIRNAME": dirname,
|
|
2349
|
+
}
|
|
2350
|
+
return path
|
|
2351
|
+
|
|
2352
|
+
def _InstallableTargetInstallPath(self):
|
|
2353
|
+
"""Returns the location of the final output for an installable target."""
|
|
2354
|
+
# Functionality removed for all platforms to match Xcode and hoist
|
|
2355
|
+
# shared libraries into PRODUCT_DIR for users:
|
|
2356
|
+
# Xcode puts shared_library results into PRODUCT_DIR, and some gyp files
|
|
2357
|
+
# rely on this. Emulate this behavior for mac.
|
|
2358
|
+
# if self.type == "shared_library" and (
|
|
2359
|
+
# self.flavor != "mac" or self.toolset != "target"
|
|
2360
|
+
# ):
|
|
2361
|
+
# # Install all shared libs into a common directory (per toolset) for
|
|
2362
|
+
# # convenient access with LD_LIBRARY_PATH.
|
|
2363
|
+
# return "$(builddir)/lib.%s/%s" % (self.toolset, self.alias)
|
|
2364
|
+
if self.flavor == "zos" and self.type == "shared_library":
|
|
2365
|
+
return "$(builddir)/lib.%s/%s" % (self.toolset, self.alias)
|
|
2366
|
+
|
|
2367
|
+
return "$(builddir)/" + self.alias
|
|
2368
|
+
|
|
2369
|
+
|
|
2370
|
+
def WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files):
|
|
2371
|
+
"""Write the target to regenerate the Makefile."""
|
|
2372
|
+
options = params["options"]
|
|
2373
|
+
build_files_args = [
|
|
2374
|
+
gyp.common.RelativePath(filename, options.toplevel_dir)
|
|
2375
|
+
for filename in params["build_files_arg"]
|
|
2376
|
+
]
|
|
2377
|
+
|
|
2378
|
+
gyp_binary = gyp.common.FixIfRelativePath(
|
|
2379
|
+
params["gyp_binary"], options.toplevel_dir
|
|
2380
|
+
)
|
|
2381
|
+
if not gyp_binary.startswith(os.sep):
|
|
2382
|
+
gyp_binary = os.path.join(".", gyp_binary)
|
|
1712
2383
|
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
self.WriteLn('all_deps += %s' % ' '.join(outputs))
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
def WriteMakeRule(self, outputs, inputs, actions=None, comment=None,
|
|
1734
|
-
order_only=False, force=False, phony=False, command=None):
|
|
1735
|
-
"""Write a Makefile rule, with some extra tricks.
|
|
1736
|
-
|
|
1737
|
-
outputs: a list of outputs for the rule (note: this is not directly
|
|
1738
|
-
supported by make; see comments below)
|
|
1739
|
-
inputs: a list of inputs for the rule
|
|
1740
|
-
actions: a list of shell commands to run for the rule
|
|
1741
|
-
comment: a comment to put in the Makefile above the rule (also useful
|
|
1742
|
-
for making this Python script's code self-documenting)
|
|
1743
|
-
order_only: if true, makes the dependency order-only
|
|
1744
|
-
force: if true, include FORCE_DO_CMD as an order-only dep
|
|
1745
|
-
phony: if true, the rule does not actually generate the named output, the
|
|
1746
|
-
output is just a name to run the rule
|
|
1747
|
-
command: (optional) command name to generate unambiguous labels
|
|
1748
|
-
"""
|
|
1749
|
-
outputs = [QuoteSpaces(o) for o in outputs]
|
|
1750
|
-
inputs = [QuoteSpaces(i) for i in inputs]
|
|
1751
|
-
|
|
1752
|
-
if comment:
|
|
1753
|
-
self.WriteLn('# ' + comment)
|
|
1754
|
-
if phony:
|
|
1755
|
-
self.WriteLn('.PHONY: ' + ' '.join(outputs))
|
|
1756
|
-
if actions:
|
|
1757
|
-
self.WriteLn("%s: TOOLSET := $(TOOLSET)" % outputs[0])
|
|
1758
|
-
force_append = ' FORCE_DO_CMD' if force else ''
|
|
1759
|
-
|
|
1760
|
-
if order_only:
|
|
1761
|
-
# Order only rule: Just write a simple rule.
|
|
1762
|
-
# TODO(evanm): just make order_only a list of deps instead of this hack.
|
|
1763
|
-
self.WriteLn('%s: | %s%s' %
|
|
1764
|
-
(' '.join(outputs), ' '.join(inputs), force_append))
|
|
1765
|
-
elif len(outputs) == 1:
|
|
1766
|
-
# Regular rule, one output: Just write a simple rule.
|
|
1767
|
-
self.WriteLn('%s: %s%s' % (outputs[0], ' '.join(inputs), force_append))
|
|
1768
|
-
else:
|
|
1769
|
-
# Regular rule, more than one output: Multiple outputs are tricky in
|
|
1770
|
-
# make. We will write three rules:
|
|
1771
|
-
# - All outputs depend on an intermediate file.
|
|
1772
|
-
# - Make .INTERMEDIATE depend on the intermediate.
|
|
1773
|
-
# - The intermediate file depends on the inputs and executes the
|
|
1774
|
-
# actual command.
|
|
1775
|
-
# - The intermediate recipe will 'touch' the intermediate file.
|
|
1776
|
-
# - The multi-output rule will have an do-nothing recipe.
|
|
1777
|
-
|
|
1778
|
-
# Hash the target name to avoid generating overlong filenames.
|
|
1779
|
-
cmddigest = hashlib.sha1((command or self.target).encode('utf-8')).hexdigest()
|
|
1780
|
-
intermediate = "%s.intermediate" % cmddigest
|
|
1781
|
-
self.WriteLn('%s: %s' % (' '.join(outputs), intermediate))
|
|
1782
|
-
self.WriteLn('\t%s' % '@:')
|
|
1783
|
-
self.WriteLn('%s: %s' % ('.INTERMEDIATE', intermediate))
|
|
1784
|
-
self.WriteLn('%s: %s%s' %
|
|
1785
|
-
(intermediate, ' '.join(inputs), force_append))
|
|
1786
|
-
actions.insert(0, '$(call do_cmd,touch)')
|
|
1787
|
-
|
|
1788
|
-
if actions:
|
|
1789
|
-
for action in actions:
|
|
1790
|
-
self.WriteLn('\t%s' % action)
|
|
1791
|
-
self.WriteLn()
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
def WriteAndroidNdkModuleRule(self, module_name, all_sources, link_deps):
|
|
1795
|
-
"""Write a set of LOCAL_XXX definitions for Android NDK.
|
|
1796
|
-
|
|
1797
|
-
These variable definitions will be used by Android NDK but do nothing for
|
|
1798
|
-
non-Android applications.
|
|
1799
|
-
|
|
1800
|
-
Arguments:
|
|
1801
|
-
module_name: Android NDK module name, which must be unique among all
|
|
1802
|
-
module names.
|
|
1803
|
-
all_sources: A list of source files (will be filtered by Compilable).
|
|
1804
|
-
link_deps: A list of link dependencies, which must be sorted in
|
|
1805
|
-
the order from dependencies to dependents.
|
|
1806
|
-
"""
|
|
1807
|
-
if self.type not in ('executable', 'shared_library', 'static_library'):
|
|
1808
|
-
return
|
|
1809
|
-
|
|
1810
|
-
self.WriteLn('# Variable definitions for Android applications')
|
|
1811
|
-
self.WriteLn('include $(CLEAR_VARS)')
|
|
1812
|
-
self.WriteLn('LOCAL_MODULE := ' + module_name)
|
|
1813
|
-
self.WriteLn('LOCAL_CFLAGS := $(CFLAGS_$(BUILDTYPE)) '
|
|
1814
|
-
'$(DEFS_$(BUILDTYPE)) '
|
|
1815
|
-
# LOCAL_CFLAGS is applied to both of C and C++. There is
|
|
1816
|
-
# no way to specify $(CFLAGS_C_$(BUILDTYPE)) only for C
|
|
1817
|
-
# sources.
|
|
1818
|
-
'$(CFLAGS_C_$(BUILDTYPE)) '
|
|
1819
|
-
# $(INCS_$(BUILDTYPE)) includes the prefix '-I' while
|
|
1820
|
-
# LOCAL_C_INCLUDES does not expect it. So put it in
|
|
1821
|
-
# LOCAL_CFLAGS.
|
|
1822
|
-
'$(INCS_$(BUILDTYPE))')
|
|
1823
|
-
# LOCAL_CXXFLAGS is obsolete and LOCAL_CPPFLAGS is preferred.
|
|
1824
|
-
self.WriteLn('LOCAL_CPPFLAGS := $(CFLAGS_CC_$(BUILDTYPE))')
|
|
1825
|
-
self.WriteLn('LOCAL_C_INCLUDES :=')
|
|
1826
|
-
self.WriteLn('LOCAL_LDLIBS := $(LDFLAGS_$(BUILDTYPE)) $(LIBS)')
|
|
1827
|
-
|
|
1828
|
-
# Detect the C++ extension.
|
|
1829
|
-
cpp_ext = {'.cc': 0, '.cpp': 0, '.cxx': 0}
|
|
1830
|
-
default_cpp_ext = '.cpp'
|
|
1831
|
-
for filename in all_sources:
|
|
1832
|
-
ext = os.path.splitext(filename)[1]
|
|
1833
|
-
if ext in cpp_ext:
|
|
1834
|
-
cpp_ext[ext] += 1
|
|
1835
|
-
if cpp_ext[ext] > cpp_ext[default_cpp_ext]:
|
|
1836
|
-
default_cpp_ext = ext
|
|
1837
|
-
self.WriteLn('LOCAL_CPP_EXTENSION := ' + default_cpp_ext)
|
|
1838
|
-
|
|
1839
|
-
self.WriteList(list(map(self.Absolutify, filter(Compilable, all_sources))),
|
|
1840
|
-
'LOCAL_SRC_FILES')
|
|
1841
|
-
|
|
1842
|
-
# Filter out those which do not match prefix and suffix and produce
|
|
1843
|
-
# the resulting list without prefix and suffix.
|
|
1844
|
-
def DepsToModules(deps, prefix, suffix):
|
|
1845
|
-
modules = []
|
|
1846
|
-
for filepath in deps:
|
|
1847
|
-
filename = os.path.basename(filepath)
|
|
1848
|
-
if filename.startswith(prefix) and filename.endswith(suffix):
|
|
1849
|
-
modules.append(filename[len(prefix):-len(suffix)])
|
|
1850
|
-
return modules
|
|
1851
|
-
|
|
1852
|
-
# Retrieve the default value of 'SHARED_LIB_SUFFIX'
|
|
1853
|
-
params = {'flavor': 'linux'}
|
|
1854
|
-
default_variables = {}
|
|
1855
|
-
CalculateVariables(default_variables, params)
|
|
1856
|
-
|
|
1857
|
-
self.WriteList(
|
|
1858
|
-
DepsToModules(link_deps,
|
|
1859
|
-
generator_default_variables['SHARED_LIB_PREFIX'],
|
|
1860
|
-
default_variables['SHARED_LIB_SUFFIX']),
|
|
1861
|
-
'LOCAL_SHARED_LIBRARIES')
|
|
1862
|
-
self.WriteList(
|
|
1863
|
-
DepsToModules(link_deps,
|
|
1864
|
-
generator_default_variables['STATIC_LIB_PREFIX'],
|
|
1865
|
-
generator_default_variables['STATIC_LIB_SUFFIX']),
|
|
1866
|
-
'LOCAL_STATIC_LIBRARIES')
|
|
1867
|
-
|
|
1868
|
-
if self.type == 'executable':
|
|
1869
|
-
self.WriteLn('include $(BUILD_EXECUTABLE)')
|
|
1870
|
-
elif self.type == 'shared_library':
|
|
1871
|
-
self.WriteLn('include $(BUILD_SHARED_LIBRARY)')
|
|
1872
|
-
elif self.type == 'static_library':
|
|
1873
|
-
self.WriteLn('include $(BUILD_STATIC_LIBRARY)')
|
|
1874
|
-
self.WriteLn()
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
def WriteLn(self, text=''):
|
|
1878
|
-
self.fp.write(text + '\n')
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
def GetSortedXcodeEnv(self, additional_settings=None):
|
|
1882
|
-
return gyp.xcode_emulation.GetSortedXcodeEnv(
|
|
1883
|
-
self.xcode_settings, "$(abs_builddir)",
|
|
1884
|
-
os.path.join("$(abs_srcdir)", self.path), "$(BUILDTYPE)",
|
|
1885
|
-
additional_settings)
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
def GetSortedXcodePostbuildEnv(self):
|
|
1889
|
-
# CHROMIUM_STRIP_SAVE_FILE is a chromium-specific hack.
|
|
1890
|
-
# TODO(thakis): It would be nice to have some general mechanism instead.
|
|
1891
|
-
strip_save_file = self.xcode_settings.GetPerTargetSetting(
|
|
1892
|
-
'CHROMIUM_STRIP_SAVE_FILE', '')
|
|
1893
|
-
# Even if strip_save_file is empty, explicitly write it. Else a postbuild
|
|
1894
|
-
# might pick up an export from an earlier target.
|
|
1895
|
-
return self.GetSortedXcodeEnv(
|
|
1896
|
-
additional_settings={'CHROMIUM_STRIP_SAVE_FILE': strip_save_file})
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
def WriteSortedXcodeEnv(self, target, env):
|
|
1900
|
-
for k, v in env:
|
|
1901
|
-
# For
|
|
1902
|
-
# foo := a\ b
|
|
1903
|
-
# the escaped space does the right thing. For
|
|
1904
|
-
# export foo := a\ b
|
|
1905
|
-
# it does not -- the backslash is written to the env as literal character.
|
|
1906
|
-
# So don't escape spaces in |env[k]|.
|
|
1907
|
-
self.WriteLn('%s: export %s := %s' % (QuoteSpaces(target), k, v))
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
def Objectify(self, path):
|
|
1911
|
-
"""Convert a path to its output directory form."""
|
|
1912
|
-
if '$(' in path:
|
|
1913
|
-
path = path.replace('$(obj)/', '$(obj).%s/$(TARGET)/' % self.toolset)
|
|
1914
|
-
if not '$(obj)' in path:
|
|
1915
|
-
path = '$(obj).%s/$(TARGET)/%s' % (self.toolset, path)
|
|
1916
|
-
return path
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
def Pchify(self, path, lang):
|
|
1920
|
-
"""Convert a prefix header path to its output directory form."""
|
|
1921
|
-
path = self.Absolutify(path)
|
|
1922
|
-
if '$(' in path:
|
|
1923
|
-
path = path.replace('$(obj)/', '$(obj).%s/$(TARGET)/pch-%s' %
|
|
1924
|
-
(self.toolset, lang))
|
|
1925
|
-
return path
|
|
1926
|
-
return '$(obj).%s/$(TARGET)/pch-%s/%s' % (self.toolset, lang, path)
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
def Absolutify(self, path):
|
|
1930
|
-
"""Convert a subdirectory-relative path into a base-relative path.
|
|
1931
|
-
Skips over paths that contain variables."""
|
|
1932
|
-
if '$(' in path:
|
|
1933
|
-
# Don't call normpath in this case, as it might collapse the
|
|
1934
|
-
# path too aggressively if it features '..'. However it's still
|
|
1935
|
-
# important to strip trailing slashes.
|
|
1936
|
-
return path.rstrip('/')
|
|
1937
|
-
return os.path.normpath(os.path.join(self.path, path))
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
def ExpandInputRoot(self, template, expansion, dirname):
|
|
1941
|
-
if '%(INPUT_ROOT)s' not in template and '%(INPUT_DIRNAME)s' not in template:
|
|
1942
|
-
return template
|
|
1943
|
-
path = template % {
|
|
1944
|
-
'INPUT_ROOT': expansion,
|
|
1945
|
-
'INPUT_DIRNAME': dirname,
|
|
2384
|
+
root_makefile.write(
|
|
2385
|
+
"quiet_cmd_regen_makefile = ACTION Regenerating $@\n"
|
|
2386
|
+
"cmd_regen_makefile = cd $(srcdir); %(cmd)s\n"
|
|
2387
|
+
"%(makefile_name)s: %(deps)s\n"
|
|
2388
|
+
"\t$(call do_cmd,regen_makefile)\n\n"
|
|
2389
|
+
% {
|
|
2390
|
+
"makefile_name": makefile_name,
|
|
2391
|
+
"deps": replace_sep(
|
|
2392
|
+
" ".join(sorted(SourceifyAndQuoteSpaces(bf) for bf in build_files))
|
|
2393
|
+
),
|
|
2394
|
+
"cmd": replace_sep(
|
|
2395
|
+
gyp.common.EncodePOSIXShellList(
|
|
2396
|
+
[gyp_binary, "-fmake"]
|
|
2397
|
+
+ gyp.RegenerateFlags(options)
|
|
2398
|
+
+ build_files_args
|
|
2399
|
+
)
|
|
2400
|
+
),
|
|
1946
2401
|
}
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
def _InstallableTargetInstallPath(self):
|
|
1951
|
-
"""Returns the location of the final output for an installable target."""
|
|
1952
|
-
# Xcode puts shared_library results into PRODUCT_DIR, and some gyp files
|
|
1953
|
-
# rely on this. Emulate this behavior for mac.
|
|
1954
|
-
|
|
1955
|
-
# XXX(TooTallNate): disabling this code since we don't want this behavior...
|
|
1956
|
-
#if (self.type == 'shared_library' and
|
|
1957
|
-
# (self.flavor != 'mac' or self.toolset != 'target')):
|
|
1958
|
-
# # Install all shared libs into a common directory (per toolset) for
|
|
1959
|
-
# # convenient access with LD_LIBRARY_PATH.
|
|
1960
|
-
# return '$(builddir)/lib.%s/%s' % (self.toolset, self.alias)
|
|
1961
|
-
return '$(builddir)/' + self.alias
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
def WriteAutoRegenerationRule(params, root_makefile, makefile_name,
|
|
1965
|
-
build_files):
|
|
1966
|
-
"""Write the target to regenerate the Makefile."""
|
|
1967
|
-
options = params['options']
|
|
1968
|
-
build_files_args = [gyp.common.RelativePath(filename, options.toplevel_dir)
|
|
1969
|
-
for filename in params['build_files_arg']]
|
|
1970
|
-
|
|
1971
|
-
gyp_binary = gyp.common.FixIfRelativePath(params['gyp_binary'],
|
|
1972
|
-
options.toplevel_dir)
|
|
1973
|
-
if not gyp_binary.startswith(os.sep):
|
|
1974
|
-
gyp_binary = os.path.join('.', gyp_binary)
|
|
1975
|
-
|
|
1976
|
-
root_makefile.write(
|
|
1977
|
-
"quiet_cmd_regen_makefile = ACTION Regenerating $@\n"
|
|
1978
|
-
"cmd_regen_makefile = cd $(srcdir); %(cmd)s\n"
|
|
1979
|
-
"%(makefile_name)s: %(deps)s\n"
|
|
1980
|
-
"\t$(call do_cmd,regen_makefile)\n\n" % {
|
|
1981
|
-
'makefile_name': makefile_name,
|
|
1982
|
-
'deps': ' '.join(SourceifyAndQuoteSpaces(bf) for bf in build_files),
|
|
1983
|
-
'cmd': gyp.common.EncodePOSIXShellList(
|
|
1984
|
-
[gyp_binary, '-fmake'] +
|
|
1985
|
-
gyp.RegenerateFlags(options) +
|
|
1986
|
-
build_files_args)})
|
|
2402
|
+
)
|
|
1987
2403
|
|
|
1988
2404
|
|
|
1989
2405
|
def PerformBuild(data, configurations, params):
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
2406
|
+
options = params["options"]
|
|
2407
|
+
for config in configurations:
|
|
2408
|
+
arguments = ["make"]
|
|
2409
|
+
if options.toplevel_dir and options.toplevel_dir != ".":
|
|
2410
|
+
arguments += "-C", options.toplevel_dir
|
|
2411
|
+
arguments.append("BUILDTYPE=" + config)
|
|
2412
|
+
print(f"Building [{config}]: {arguments}")
|
|
2413
|
+
subprocess.check_call(arguments)
|
|
1998
2414
|
|
|
1999
2415
|
|
|
2000
2416
|
def GenerateOutput(target_list, target_dicts, data, params):
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2417
|
+
options = params["options"]
|
|
2418
|
+
flavor = gyp.common.GetFlavor(params)
|
|
2419
|
+
generator_flags = params.get("generator_flags", {})
|
|
2420
|
+
builddir_name = generator_flags.get("output_dir", "out")
|
|
2421
|
+
android_ndk_version = generator_flags.get("android_ndk_version", None)
|
|
2422
|
+
default_target = generator_flags.get("default_target", "all")
|
|
2423
|
+
|
|
2424
|
+
def CalculateMakefilePath(build_file, base_name):
|
|
2425
|
+
"""Determine where to write a Makefile for a given gyp file."""
|
|
2426
|
+
# Paths in gyp files are relative to the .gyp file, but we want
|
|
2427
|
+
# paths relative to the source root for the master makefile. Grab
|
|
2428
|
+
# the path of the .gyp file as the base to relativize against.
|
|
2429
|
+
# E.g. "foo/bar" when we're constructing targets for "foo/bar/baz.gyp".
|
|
2430
|
+
base_path = gyp.common.RelativePath(os.path.dirname(build_file), options.depth)
|
|
2431
|
+
# We write the file in the base_path directory.
|
|
2432
|
+
output_file = os.path.join(options.depth, base_path, base_name)
|
|
2433
|
+
if options.generator_output:
|
|
2434
|
+
output_file = os.path.join(
|
|
2435
|
+
options.depth, options.generator_output, base_path, base_name
|
|
2436
|
+
)
|
|
2437
|
+
base_path = gyp.common.RelativePath(
|
|
2438
|
+
os.path.dirname(build_file), options.toplevel_dir
|
|
2439
|
+
)
|
|
2440
|
+
return base_path, output_file
|
|
2441
|
+
|
|
2442
|
+
# TODO: search for the first non-'Default' target. This can go
|
|
2443
|
+
# away when we add verification that all targets have the
|
|
2444
|
+
# necessary configurations.
|
|
2445
|
+
default_configuration = None
|
|
2446
|
+
toolsets = {target_dicts[target]["toolset"] for target in target_list}
|
|
2447
|
+
for target in target_list:
|
|
2448
|
+
spec = target_dicts[target]
|
|
2449
|
+
if spec["default_configuration"] != "Default":
|
|
2450
|
+
default_configuration = spec["default_configuration"]
|
|
2451
|
+
break
|
|
2452
|
+
if not default_configuration:
|
|
2453
|
+
default_configuration = "Default"
|
|
2454
|
+
|
|
2455
|
+
srcdir = "."
|
|
2456
|
+
makefile_name = "Makefile" + options.suffix
|
|
2457
|
+
makefile_path = os.path.join(options.toplevel_dir, makefile_name)
|
|
2018
2458
|
if options.generator_output:
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
if
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
'LINK.host': GetEnvironFallback(('LINK_host', 'LINK'), '$(CXX.host)'),
|
|
2459
|
+
global srcdir_prefix
|
|
2460
|
+
makefile_path = os.path.join(
|
|
2461
|
+
options.toplevel_dir, options.generator_output, makefile_name
|
|
2462
|
+
)
|
|
2463
|
+
srcdir = replace_sep(gyp.common.RelativePath(srcdir, options.generator_output))
|
|
2464
|
+
srcdir_prefix = "$(srcdir)/"
|
|
2465
|
+
|
|
2466
|
+
flock_command = "flock"
|
|
2467
|
+
copy_archive_arguments = "-af"
|
|
2468
|
+
makedep_arguments = "-MMD"
|
|
2469
|
+
|
|
2470
|
+
# wasm-ld doesn't support --start-group/--end-group
|
|
2471
|
+
link_commands = LINK_COMMANDS_LINUX
|
|
2472
|
+
if flavor in ["wasi", "wasm"]:
|
|
2473
|
+
link_commands = link_commands.replace(" -Wl,--start-group", "").replace(
|
|
2474
|
+
" -Wl,--end-group", ""
|
|
2475
|
+
)
|
|
2476
|
+
|
|
2477
|
+
CC_target = replace_sep(GetEnvironFallback(("CC_target", "CC"), "$(CC)"))
|
|
2478
|
+
AR_target = replace_sep(GetEnvironFallback(("AR_target", "AR"), "$(AR)"))
|
|
2479
|
+
CXX_target = replace_sep(GetEnvironFallback(("CXX_target", "CXX"), "$(CXX)"))
|
|
2480
|
+
LINK_target = replace_sep(GetEnvironFallback(("LINK_target", "LINK"), "$(LINK)"))
|
|
2481
|
+
PLI_target = replace_sep(GetEnvironFallback(("PLI_target", "PLI"), "pli"))
|
|
2482
|
+
CC_host = replace_sep(GetEnvironFallback(("CC_host", "CC"), "gcc"))
|
|
2483
|
+
AR_host = replace_sep(GetEnvironFallback(("AR_host", "AR"), "ar"))
|
|
2484
|
+
CXX_host = replace_sep(GetEnvironFallback(("CXX_host", "CXX"), "g++"))
|
|
2485
|
+
LINK_host = replace_sep(GetEnvironFallback(("LINK_host", "LINK"), "$(CXX.host)"))
|
|
2486
|
+
PLI_host = replace_sep(GetEnvironFallback(("PLI_host", "PLI"), "pli"))
|
|
2487
|
+
|
|
2488
|
+
header_params = {
|
|
2489
|
+
"default_target": default_target,
|
|
2490
|
+
"builddir": builddir_name,
|
|
2491
|
+
"default_configuration": default_configuration,
|
|
2492
|
+
"flock": flock_command,
|
|
2493
|
+
"flock_index": 1,
|
|
2494
|
+
"link_commands": link_commands,
|
|
2495
|
+
"extra_commands": "",
|
|
2496
|
+
"srcdir": srcdir,
|
|
2497
|
+
"copy_archive_args": copy_archive_arguments,
|
|
2498
|
+
"makedep_args": makedep_arguments,
|
|
2499
|
+
"CC.target": CC_target,
|
|
2500
|
+
"AR.target": AR_target,
|
|
2501
|
+
"CXX.target": CXX_target,
|
|
2502
|
+
"LINK.target": LINK_target,
|
|
2503
|
+
"PLI.target": PLI_target,
|
|
2504
|
+
"CC.host": CC_host,
|
|
2505
|
+
"AR.host": AR_host,
|
|
2506
|
+
"CXX.host": CXX_host,
|
|
2507
|
+
"LINK.host": LINK_host,
|
|
2508
|
+
"PLI.host": PLI_host,
|
|
2070
2509
|
}
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
"make_global_settings needs to be the same for all targets. %s vs. %s" %
|
|
2184
|
-
(this_make_global_settings, make_global_settings))
|
|
2185
|
-
|
|
2186
|
-
build_files.add(gyp.common.RelativePath(build_file, options.toplevel_dir))
|
|
2187
|
-
included_files = data[build_file]['included_files']
|
|
2188
|
-
for included_file in included_files:
|
|
2189
|
-
# The included_files entries are relative to the dir of the build file
|
|
2190
|
-
# that included them, so we have to undo that and then make them relative
|
|
2191
|
-
# to the root dir.
|
|
2192
|
-
relative_include_file = gyp.common.RelativePath(
|
|
2193
|
-
gyp.common.UnrelativePath(included_file, build_file),
|
|
2194
|
-
options.toplevel_dir)
|
|
2195
|
-
abs_include_file = os.path.abspath(relative_include_file)
|
|
2196
|
-
# If the include file is from the ~/.gyp dir, we should use absolute path
|
|
2197
|
-
# so that relocating the src dir doesn't break the path.
|
|
2198
|
-
if (params['home_dot_gyp'] and
|
|
2199
|
-
abs_include_file.startswith(params['home_dot_gyp'])):
|
|
2200
|
-
build_files.add(abs_include_file)
|
|
2201
|
-
else:
|
|
2202
|
-
build_files.add(relative_include_file)
|
|
2203
|
-
|
|
2204
|
-
base_path, output_file = CalculateMakefilePath(build_file,
|
|
2205
|
-
target + '.' + toolset + options.suffix + '.mk')
|
|
2206
|
-
|
|
2207
|
-
spec = target_dicts[qualified_target]
|
|
2208
|
-
configs = spec['configurations']
|
|
2209
|
-
|
|
2210
|
-
if flavor == 'mac':
|
|
2211
|
-
gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(data[build_file], spec)
|
|
2212
|
-
|
|
2213
|
-
writer = MakefileWriter(generator_flags, flavor)
|
|
2214
|
-
writer.Write(qualified_target, base_path, output_file, spec, configs,
|
|
2215
|
-
part_of_all=qualified_target in needed_targets)
|
|
2216
|
-
|
|
2217
|
-
# Our root_makefile lives at the source root. Compute the relative path
|
|
2218
|
-
# from there to the output_file for including.
|
|
2219
|
-
mkfile_rel_path = gyp.common.RelativePath(output_file,
|
|
2220
|
-
os.path.dirname(makefile_path))
|
|
2221
|
-
include_list.add(mkfile_rel_path)
|
|
2222
|
-
|
|
2223
|
-
# Write out per-gyp (sub-project) Makefiles.
|
|
2224
|
-
depth_rel_path = gyp.common.RelativePath(options.depth, os.getcwd())
|
|
2225
|
-
for build_file in build_files:
|
|
2226
|
-
# The paths in build_files were relativized above, so undo that before
|
|
2227
|
-
# testing against the non-relativized items in target_list and before
|
|
2228
|
-
# calculating the Makefile path.
|
|
2229
|
-
build_file = os.path.join(depth_rel_path, build_file)
|
|
2230
|
-
gyp_targets = [target_dicts[target]['target_name'] for target in target_list
|
|
2231
|
-
if target.startswith(build_file) and
|
|
2232
|
-
target in needed_targets]
|
|
2233
|
-
# Only generate Makefiles for gyp files with targets.
|
|
2234
|
-
if not gyp_targets:
|
|
2235
|
-
continue
|
|
2236
|
-
base_path, output_file = CalculateMakefilePath(build_file,
|
|
2237
|
-
os.path.splitext(os.path.basename(build_file))[0] + '.Makefile')
|
|
2238
|
-
makefile_rel_path = gyp.common.RelativePath(os.path.dirname(makefile_path),
|
|
2239
|
-
os.path.dirname(output_file))
|
|
2240
|
-
writer.WriteSubMake(output_file, makefile_rel_path, gyp_targets,
|
|
2241
|
-
builddir_name)
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
# Write out the sorted list of includes.
|
|
2245
|
-
root_makefile.write('\n')
|
|
2246
|
-
for include_file in sorted(include_list):
|
|
2247
|
-
# We wrap each .mk include in an if statement so users can tell make to
|
|
2248
|
-
# not load a file by setting NO_LOAD. The below make code says, only
|
|
2249
|
-
# load the .mk file if the .mk filename doesn't start with a token in
|
|
2250
|
-
# NO_LOAD.
|
|
2251
|
-
root_makefile.write(
|
|
2252
|
-
"ifeq ($(strip $(foreach prefix,$(NO_LOAD),\\\n"
|
|
2253
|
-
" $(findstring $(join ^,$(prefix)),\\\n"
|
|
2254
|
-
" $(join ^," + include_file + ")))),)\n")
|
|
2255
|
-
root_makefile.write(" include " + include_file + "\n")
|
|
2256
|
-
root_makefile.write("endif\n")
|
|
2257
|
-
root_makefile.write('\n')
|
|
2258
|
-
|
|
2259
|
-
if (not generator_flags.get('standalone')
|
|
2260
|
-
and generator_flags.get('auto_regeneration', True)):
|
|
2261
|
-
WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files)
|
|
2510
|
+
if flavor == "mac":
|
|
2511
|
+
flock_command = "%s gyp-mac-tool flock" % sys.executable
|
|
2512
|
+
header_params.update(
|
|
2513
|
+
{
|
|
2514
|
+
"flock": flock_command,
|
|
2515
|
+
"flock_index": 2,
|
|
2516
|
+
"link_commands": LINK_COMMANDS_MAC,
|
|
2517
|
+
"extra_commands": SHARED_HEADER_MAC_COMMANDS,
|
|
2518
|
+
}
|
|
2519
|
+
)
|
|
2520
|
+
elif flavor == "android":
|
|
2521
|
+
header_params.update({"link_commands": LINK_COMMANDS_ANDROID})
|
|
2522
|
+
elif flavor == "zos":
|
|
2523
|
+
copy_archive_arguments = "-fPR"
|
|
2524
|
+
CC_target = GetEnvironFallback(("CC_target", "CC"), "njsc")
|
|
2525
|
+
makedep_arguments = "-MMD"
|
|
2526
|
+
if CC_target == "clang":
|
|
2527
|
+
CC_host = GetEnvironFallback(("CC_host", "CC"), "clang")
|
|
2528
|
+
CXX_target = GetEnvironFallback(("CXX_target", "CXX"), "clang++")
|
|
2529
|
+
CXX_host = GetEnvironFallback(("CXX_host", "CXX"), "clang++")
|
|
2530
|
+
elif CC_target == "ibm-clang64":
|
|
2531
|
+
CC_host = GetEnvironFallback(("CC_host", "CC"), "ibm-clang64")
|
|
2532
|
+
CXX_target = GetEnvironFallback(("CXX_target", "CXX"), "ibm-clang++64")
|
|
2533
|
+
CXX_host = GetEnvironFallback(("CXX_host", "CXX"), "ibm-clang++64")
|
|
2534
|
+
elif CC_target == "ibm-clang":
|
|
2535
|
+
CC_host = GetEnvironFallback(("CC_host", "CC"), "ibm-clang")
|
|
2536
|
+
CXX_target = GetEnvironFallback(("CXX_target", "CXX"), "ibm-clang++")
|
|
2537
|
+
CXX_host = GetEnvironFallback(("CXX_host", "CXX"), "ibm-clang++")
|
|
2538
|
+
else:
|
|
2539
|
+
# Node.js versions prior to v18:
|
|
2540
|
+
makedep_arguments = "-qmakedep=gcc"
|
|
2541
|
+
CC_host = GetEnvironFallback(("CC_host", "CC"), "njsc")
|
|
2542
|
+
CXX_target = GetEnvironFallback(("CXX_target", "CXX"), "njsc++")
|
|
2543
|
+
CXX_host = GetEnvironFallback(("CXX_host", "CXX"), "njsc++")
|
|
2544
|
+
header_params.update(
|
|
2545
|
+
{
|
|
2546
|
+
"copy_archive_args": copy_archive_arguments,
|
|
2547
|
+
"makedep_args": makedep_arguments,
|
|
2548
|
+
"link_commands": LINK_COMMANDS_OS390,
|
|
2549
|
+
"extra_commands": SHARED_HEADER_OS390_COMMANDS,
|
|
2550
|
+
"CC.target": CC_target,
|
|
2551
|
+
"CXX.target": CXX_target,
|
|
2552
|
+
"CC.host": CC_host,
|
|
2553
|
+
"CXX.host": CXX_host,
|
|
2554
|
+
}
|
|
2555
|
+
)
|
|
2556
|
+
elif flavor == "solaris":
|
|
2557
|
+
copy_archive_arguments = "-pPRf@"
|
|
2558
|
+
header_params.update(
|
|
2559
|
+
{
|
|
2560
|
+
"copy_archive_args": copy_archive_arguments,
|
|
2561
|
+
"flock": "%s gyp-flock-tool flock" % sys.executable,
|
|
2562
|
+
"flock_index": 2,
|
|
2563
|
+
}
|
|
2564
|
+
)
|
|
2565
|
+
elif flavor == "freebsd":
|
|
2566
|
+
# Note: OpenBSD has sysutils/flock. lockf seems to be FreeBSD specific.
|
|
2567
|
+
header_params.update({"flock": "lockf"})
|
|
2568
|
+
elif flavor == "openbsd":
|
|
2569
|
+
copy_archive_arguments = "-pPRf"
|
|
2570
|
+
header_params.update({"copy_archive_args": copy_archive_arguments})
|
|
2571
|
+
elif flavor == "aix":
|
|
2572
|
+
copy_archive_arguments = "-pPRf"
|
|
2573
|
+
header_params.update(
|
|
2574
|
+
{
|
|
2575
|
+
"copy_archive_args": copy_archive_arguments,
|
|
2576
|
+
"link_commands": LINK_COMMANDS_AIX,
|
|
2577
|
+
"flock": "%s gyp-flock-tool flock" % sys.executable,
|
|
2578
|
+
"flock_index": 2,
|
|
2579
|
+
}
|
|
2580
|
+
)
|
|
2581
|
+
elif flavor == "os400":
|
|
2582
|
+
copy_archive_arguments = "-pPRf"
|
|
2583
|
+
header_params.update(
|
|
2584
|
+
{
|
|
2585
|
+
"copy_archive_args": copy_archive_arguments,
|
|
2586
|
+
"link_commands": LINK_COMMANDS_OS400,
|
|
2587
|
+
"flock": "%s gyp-flock-tool flock" % sys.executable,
|
|
2588
|
+
"flock_index": 2,
|
|
2589
|
+
}
|
|
2590
|
+
)
|
|
2591
|
+
|
|
2592
|
+
build_file, _, _ = gyp.common.ParseQualifiedTarget(target_list[0])
|
|
2593
|
+
make_global_settings_array = data[build_file].get("make_global_settings", [])
|
|
2594
|
+
wrappers = {}
|
|
2595
|
+
for key, value in make_global_settings_array:
|
|
2596
|
+
if key.endswith("_wrapper"):
|
|
2597
|
+
wrappers[key[: -len("_wrapper")]] = "$(abspath %s)" % value
|
|
2598
|
+
make_global_settings = ""
|
|
2599
|
+
for key, value in make_global_settings_array:
|
|
2600
|
+
if re.match(".*_wrapper", key):
|
|
2601
|
+
continue
|
|
2602
|
+
if value[0] != "$":
|
|
2603
|
+
value = "$(abspath %s)" % value
|
|
2604
|
+
wrapper = wrappers.get(key)
|
|
2605
|
+
if wrapper:
|
|
2606
|
+
value = f"{wrapper} {value}"
|
|
2607
|
+
del wrappers[key]
|
|
2608
|
+
if key in ("CC", "CC.host", "CXX", "CXX.host"):
|
|
2609
|
+
make_global_settings += (
|
|
2610
|
+
"ifneq (,$(filter $(origin %s), undefined default))\n" % key
|
|
2611
|
+
)
|
|
2612
|
+
# Let gyp-time envvars win over global settings.
|
|
2613
|
+
env_key = key.replace(".", "_") # CC.host -> CC_host
|
|
2614
|
+
if env_key in os.environ:
|
|
2615
|
+
value = os.environ[env_key]
|
|
2616
|
+
make_global_settings += f" {key} = {value}\n"
|
|
2617
|
+
make_global_settings += "endif\n"
|
|
2618
|
+
else:
|
|
2619
|
+
make_global_settings += f"{key} ?= {value}\n"
|
|
2620
|
+
# TODO(ukai): define cmd when only wrapper is specified in
|
|
2621
|
+
# make_global_settings.
|
|
2262
2622
|
|
|
2263
|
-
|
|
2623
|
+
header_params["make_global_settings"] = make_global_settings
|
|
2264
2624
|
|
|
2265
|
-
|
|
2625
|
+
gyp.common.EnsureDirExists(makefile_path)
|
|
2626
|
+
root_makefile = open(makefile_path, "w")
|
|
2627
|
+
root_makefile.write(SHARED_HEADER % header_params)
|
|
2628
|
+
# Currently any versions have the same effect, but in future the behavior
|
|
2629
|
+
# could be different.
|
|
2630
|
+
if android_ndk_version:
|
|
2631
|
+
root_makefile.write(
|
|
2632
|
+
"# Define LOCAL_PATH for build of Android applications.\n"
|
|
2633
|
+
"LOCAL_PATH := $(call my-dir)\n"
|
|
2634
|
+
"\n"
|
|
2635
|
+
)
|
|
2636
|
+
for toolset in toolsets:
|
|
2637
|
+
root_makefile.write("TOOLSET := %s\n" % toolset)
|
|
2638
|
+
WriteRootHeaderSuffixRules(root_makefile)
|
|
2639
|
+
|
|
2640
|
+
# Put build-time support tools next to the root Makefile.
|
|
2641
|
+
dest_path = os.path.dirname(makefile_path)
|
|
2642
|
+
gyp.common.CopyTool(flavor, dest_path)
|
|
2643
|
+
|
|
2644
|
+
# Find the list of targets that derive from the gyp file(s) being built.
|
|
2645
|
+
needed_targets = set()
|
|
2646
|
+
for build_file in params["build_files"]:
|
|
2647
|
+
for target in gyp.common.AllTargets(target_list, target_dicts, build_file):
|
|
2648
|
+
needed_targets.add(target)
|
|
2649
|
+
|
|
2650
|
+
build_files = set()
|
|
2651
|
+
include_list = set()
|
|
2652
|
+
for qualified_target in target_list:
|
|
2653
|
+
build_file, target, toolset = gyp.common.ParseQualifiedTarget(qualified_target)
|
|
2654
|
+
|
|
2655
|
+
this_make_global_settings = data[build_file].get("make_global_settings", [])
|
|
2656
|
+
assert make_global_settings_array == this_make_global_settings, (
|
|
2657
|
+
"make_global_settings needs to be the same for all targets "
|
|
2658
|
+
f"{this_make_global_settings} vs. {make_global_settings}"
|
|
2659
|
+
)
|
|
2660
|
+
|
|
2661
|
+
build_files.add(gyp.common.RelativePath(build_file, options.toplevel_dir))
|
|
2662
|
+
included_files = data[build_file]["included_files"]
|
|
2663
|
+
for included_file in included_files:
|
|
2664
|
+
# The included_files entries are relative to the dir of the build file
|
|
2665
|
+
# that included them, so we have to undo that and then make them relative
|
|
2666
|
+
# to the root dir.
|
|
2667
|
+
relative_include_file = gyp.common.RelativePath(
|
|
2668
|
+
gyp.common.UnrelativePath(included_file, build_file),
|
|
2669
|
+
options.toplevel_dir,
|
|
2670
|
+
)
|
|
2671
|
+
abs_include_file = os.path.abspath(relative_include_file)
|
|
2672
|
+
# If the include file is from the ~/.gyp dir, we should use absolute path
|
|
2673
|
+
# so that relocating the src dir doesn't break the path.
|
|
2674
|
+
if params["home_dot_gyp"] and abs_include_file.startswith(
|
|
2675
|
+
params["home_dot_gyp"]
|
|
2676
|
+
):
|
|
2677
|
+
build_files.add(abs_include_file)
|
|
2678
|
+
else:
|
|
2679
|
+
build_files.add(relative_include_file)
|
|
2680
|
+
|
|
2681
|
+
base_path, output_file = CalculateMakefilePath(
|
|
2682
|
+
build_file, target + "." + toolset + options.suffix + ".mk"
|
|
2683
|
+
)
|
|
2684
|
+
|
|
2685
|
+
spec = target_dicts[qualified_target]
|
|
2686
|
+
configs = spec["configurations"]
|
|
2687
|
+
|
|
2688
|
+
if flavor == "mac":
|
|
2689
|
+
gyp.xcode_emulation.MergeGlobalXcodeSettingsToSpec(data[build_file], spec)
|
|
2690
|
+
|
|
2691
|
+
writer = MakefileWriter(generator_flags, flavor)
|
|
2692
|
+
writer.Write(
|
|
2693
|
+
qualified_target,
|
|
2694
|
+
base_path,
|
|
2695
|
+
output_file,
|
|
2696
|
+
spec,
|
|
2697
|
+
configs,
|
|
2698
|
+
part_of_all=qualified_target in needed_targets,
|
|
2699
|
+
)
|
|
2700
|
+
|
|
2701
|
+
# Our root_makefile lives at the source root. Compute the relative path
|
|
2702
|
+
# from there to the output_file for including.
|
|
2703
|
+
mkfile_rel_path = gyp.common.RelativePath(
|
|
2704
|
+
output_file, os.path.dirname(makefile_path)
|
|
2705
|
+
)
|
|
2706
|
+
include_list.add(mkfile_rel_path)
|
|
2707
|
+
|
|
2708
|
+
# Write out per-gyp (sub-project) Makefiles.
|
|
2709
|
+
depth_rel_path = gyp.common.RelativePath(options.depth, os.getcwd())
|
|
2710
|
+
for build_file in build_files:
|
|
2711
|
+
# The paths in build_files were relativized above, so undo that before
|
|
2712
|
+
# testing against the non-relativized items in target_list and before
|
|
2713
|
+
# calculating the Makefile path.
|
|
2714
|
+
build_file = os.path.join(depth_rel_path, build_file)
|
|
2715
|
+
gyp_targets = [
|
|
2716
|
+
target_dicts[qualified_target]["target_name"]
|
|
2717
|
+
for qualified_target in target_list
|
|
2718
|
+
if qualified_target.startswith(build_file)
|
|
2719
|
+
and qualified_target in needed_targets
|
|
2720
|
+
]
|
|
2721
|
+
# Only generate Makefiles for gyp files with targets.
|
|
2722
|
+
if not gyp_targets:
|
|
2723
|
+
continue
|
|
2724
|
+
base_path, output_file = CalculateMakefilePath(
|
|
2725
|
+
build_file, os.path.splitext(os.path.basename(build_file))[0] + ".Makefile"
|
|
2726
|
+
)
|
|
2727
|
+
makefile_rel_path = gyp.common.RelativePath(
|
|
2728
|
+
os.path.dirname(makefile_path), os.path.dirname(output_file)
|
|
2729
|
+
)
|
|
2730
|
+
writer.WriteSubMake(output_file, makefile_rel_path, gyp_targets, builddir_name)
|
|
2731
|
+
|
|
2732
|
+
# Write out the sorted list of includes.
|
|
2733
|
+
root_makefile.write("\n")
|
|
2734
|
+
for include_file in sorted(include_list):
|
|
2735
|
+
# We wrap each .mk include in an if statement so users can tell make to
|
|
2736
|
+
# not load a file by setting NO_LOAD. The below make code says, only
|
|
2737
|
+
# load the .mk file if the .mk filename doesn't start with a token in
|
|
2738
|
+
# NO_LOAD.
|
|
2739
|
+
root_makefile.write(
|
|
2740
|
+
"ifeq ($(strip $(foreach prefix,$(NO_LOAD),\\\n"
|
|
2741
|
+
" $(findstring $(join ^,$(prefix)),\\\n"
|
|
2742
|
+
" $(join ^," + include_file + ")))),)\n"
|
|
2743
|
+
)
|
|
2744
|
+
root_makefile.write(" include " + include_file + "\n")
|
|
2745
|
+
root_makefile.write("endif\n")
|
|
2746
|
+
root_makefile.write("\n")
|
|
2747
|
+
|
|
2748
|
+
if not generator_flags.get("standalone") and generator_flags.get(
|
|
2749
|
+
"auto_regeneration", True
|
|
2750
|
+
):
|
|
2751
|
+
WriteAutoRegenerationRule(params, root_makefile, makefile_name, build_files)
|
|
2752
|
+
|
|
2753
|
+
root_makefile.write(SHARED_FOOTER)
|
|
2754
|
+
|
|
2755
|
+
root_makefile.close()
|