embeditor-rails 1.1.1 → 2.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +25 -17
- data/app/assets/javascripts/embeditor/adapter.js.coffee +21 -2
- data/app/assets/javascripts/embeditor/adapters/embedly.js.coffee +4 -40
- data/app/assets/javascripts/embeditor/adapters/oembed.js.coffee +37 -2
- data/app/assets/javascripts/embeditor/embeditor.js.coffee +16 -4
- data/lib/embeditor-rails/version.rb +1 -1
- data/lib/node_modules/npm/AUTHORS +158 -0
- data/lib/node_modules/npm/CONTRIBUTING.md +9 -0
- data/lib/node_modules/npm/LICENSE +235 -0
- data/lib/node_modules/npm/Makefile +216 -0
- data/lib/node_modules/npm/README.md +241 -0
- data/lib/node_modules/npm/bin/node-gyp-bin/node-gyp +2 -0
- data/lib/node_modules/npm/bin/node-gyp-bin/node-gyp.cmd +1 -0
- data/lib/node_modules/npm/bin/npm +13 -0
- data/lib/node_modules/npm/bin/npm-cli.js +87 -0
- data/lib/node_modules/npm/bin/npm.cmd +6 -0
- data/lib/node_modules/npm/bin/read-package-json.js +22 -0
- data/lib/node_modules/npm/cli.js +2 -0
- data/lib/node_modules/npm/configure +33 -0
- data/lib/node_modules/npm/doc/api/npm-bin.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-bugs.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-commands.md +22 -0
- data/lib/node_modules/npm/doc/api/npm-config.md +45 -0
- data/lib/node_modules/npm/doc/api/npm-deprecate.md +34 -0
- data/lib/node_modules/npm/doc/api/npm-docs.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-edit.md +24 -0
- data/lib/node_modules/npm/doc/api/npm-explore.md +18 -0
- data/lib/node_modules/npm/doc/api/npm-help-search.md +30 -0
- data/lib/node_modules/npm/doc/api/npm-init.md +29 -0
- data/lib/node_modules/npm/doc/api/npm-install.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-link.md +33 -0
- data/lib/node_modules/npm/doc/api/npm-load.md +26 -0
- data/lib/node_modules/npm/doc/api/npm-ls.md +56 -0
- data/lib/node_modules/npm/doc/api/npm-outdated.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-owner.md +31 -0
- data/lib/node_modules/npm/doc/api/npm-pack.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-prefix.md +15 -0
- data/lib/node_modules/npm/doc/api/npm-prune.md +17 -0
- data/lib/node_modules/npm/doc/api/npm-publish.md +30 -0
- data/lib/node_modules/npm/doc/api/npm-rebuild.md +16 -0
- data/lib/node_modules/npm/doc/api/npm-repo.md +19 -0
- data/lib/node_modules/npm/doc/api/npm-restart.md +22 -0
- data/lib/node_modules/npm/doc/api/npm-root.md +15 -0
- data/lib/node_modules/npm/doc/api/npm-run-script.md +27 -0
- data/lib/node_modules/npm/doc/api/npm-search.md +35 -0
- data/lib/node_modules/npm/doc/api/npm-shrinkwrap.md +20 -0
- data/lib/node_modules/npm/doc/api/npm-start.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-stop.md +13 -0
- data/lib/node_modules/npm/doc/api/npm-submodule.md +28 -0
- data/lib/node_modules/npm/doc/api/npm-tag.md +23 -0
- data/lib/node_modules/npm/doc/api/npm-test.md +16 -0
- data/lib/node_modules/npm/doc/api/npm-uninstall.md +16 -0
- data/lib/node_modules/npm/doc/api/npm-unpublish.md +20 -0
- data/lib/node_modules/npm/doc/api/npm-update.md +11 -0
- data/lib/node_modules/npm/doc/api/npm-version.md +18 -0
- data/lib/node_modules/npm/doc/api/npm-view.md +93 -0
- data/lib/node_modules/npm/doc/api/npm-whoami.md +15 -0
- data/lib/node_modules/npm/doc/api/npm.md +116 -0
- data/lib/node_modules/npm/doc/cli/npm-adduser.md +38 -0
- data/lib/node_modules/npm/doc/cli/npm-bin.md +19 -0
- data/lib/node_modules/npm/doc/cli/npm-bugs.md +42 -0
- data/lib/node_modules/npm/doc/cli/npm-build.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-bundle.md +14 -0
- data/lib/node_modules/npm/doc/cli/npm-cache.md +72 -0
- data/lib/node_modules/npm/doc/cli/npm-completion.md +29 -0
- data/lib/node_modules/npm/doc/cli/npm-config.md +71 -0
- data/lib/node_modules/npm/doc/cli/npm-dedupe.md +58 -0
- data/lib/node_modules/npm/doc/cli/npm-deprecate.md +26 -0
- data/lib/node_modules/npm/doc/cli/npm-docs.md +44 -0
- data/lib/node_modules/npm/doc/cli/npm-edit.md +37 -0
- data/lib/node_modules/npm/doc/cli/npm-explore.md +40 -0
- data/lib/node_modules/npm/doc/cli/npm-help-search.md +35 -0
- data/lib/node_modules/npm/doc/cli/npm-help.md +40 -0
- data/lib/node_modules/npm/doc/cli/npm-init.md +25 -0
- data/lib/node_modules/npm/doc/cli/npm-install.md +252 -0
- data/lib/node_modules/npm/doc/cli/npm-link.md +63 -0
- data/lib/node_modules/npm/doc/cli/npm-ls.md +80 -0
- data/lib/node_modules/npm/doc/cli/npm-outdated.md +58 -0
- data/lib/node_modules/npm/doc/cli/npm-owner.md +33 -0
- data/lib/node_modules/npm/doc/cli/npm-pack.md +27 -0
- data/lib/node_modules/npm/doc/cli/npm-prefix.md +19 -0
- data/lib/node_modules/npm/doc/cli/npm-prune.md +25 -0
- data/lib/node_modules/npm/doc/cli/npm-publish.md +30 -0
- data/lib/node_modules/npm/doc/cli/npm-rebuild.md +21 -0
- data/lib/node_modules/npm/doc/cli/npm-repo.md +28 -0
- data/lib/node_modules/npm/doc/cli/npm-restart.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-rm.md +23 -0
- data/lib/node_modules/npm/doc/cli/npm-root.md +19 -0
- data/lib/node_modules/npm/doc/cli/npm-run-script.md +21 -0
- data/lib/node_modules/npm/doc/cli/npm-search.md +36 -0
- data/lib/node_modules/npm/doc/cli/npm-shrinkwrap.md +185 -0
- data/lib/node_modules/npm/doc/cli/npm-star.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-stars.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-start.md +18 -0
- data/lib/node_modules/npm/doc/cli/npm-stop.md +18 -0
- data/lib/node_modules/npm/doc/cli/npm-submodule.md +28 -0
- data/lib/node_modules/npm/doc/cli/npm-tag.md +34 -0
- data/lib/node_modules/npm/doc/cli/npm-test.md +22 -0
- data/lib/node_modules/npm/doc/cli/npm-uninstall.md +21 -0
- data/lib/node_modules/npm/doc/cli/npm-unpublish.md +32 -0
- data/lib/node_modules/npm/doc/cli/npm-update.md +24 -0
- data/lib/node_modules/npm/doc/cli/npm-version.md +45 -0
- data/lib/node_modules/npm/doc/cli/npm-view.md +90 -0
- data/lib/node_modules/npm/doc/cli/npm-whoami.md +17 -0
- data/lib/node_modules/npm/doc/cli/npm.md +153 -0
- data/lib/node_modules/npm/doc/files/npm-folders.md +211 -0
- data/lib/node_modules/npm/doc/files/npmrc.md +59 -0
- data/lib/node_modules/npm/doc/files/package.json.md +576 -0
- data/lib/node_modules/npm/doc/misc/npm-coding-style.md +181 -0
- data/lib/node_modules/npm/doc/misc/npm-config.md +820 -0
- data/lib/node_modules/npm/doc/misc/npm-developers.md +207 -0
- data/lib/node_modules/npm/doc/misc/npm-disputes.md +99 -0
- data/lib/node_modules/npm/doc/misc/npm-faq.md +364 -0
- data/lib/node_modules/npm/doc/misc/npm-index.md +411 -0
- data/lib/node_modules/npm/doc/misc/npm-registry.md +69 -0
- data/lib/node_modules/npm/doc/misc/npm-scripts.md +245 -0
- data/lib/node_modules/npm/doc/misc/removing-npm.md +54 -0
- data/lib/node_modules/npm/doc/misc/semver.md +111 -0
- data/lib/node_modules/npm/html/doc/README.html +276 -0
- data/lib/node_modules/npm/html/doc/api/npm-bin.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-bugs.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-commands.html +62 -0
- data/lib/node_modules/npm/html/doc/api/npm-config.html +67 -0
- data/lib/node_modules/npm/html/doc/api/npm-deprecate.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-docs.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-edit.html +64 -0
- data/lib/node_modules/npm/html/doc/api/npm-explore.html +58 -0
- data/lib/node_modules/npm/html/doc/api/npm-help-search.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-init.html +69 -0
- data/lib/node_modules/npm/html/doc/api/npm-install.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-link.html +73 -0
- data/lib/node_modules/npm/html/doc/api/npm-load.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-ls.html +93 -0
- data/lib/node_modules/npm/html/doc/api/npm-outdated.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-owner.html +68 -0
- data/lib/node_modules/npm/html/doc/api/npm-pack.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-prefix.html +55 -0
- data/lib/node_modules/npm/html/doc/api/npm-prune.html +57 -0
- data/lib/node_modules/npm/html/doc/api/npm-publish.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-rebuild.html +56 -0
- data/lib/node_modules/npm/html/doc/api/npm-repo.html +59 -0
- data/lib/node_modules/npm/html/doc/api/npm-restart.html +61 -0
- data/lib/node_modules/npm/html/doc/api/npm-root.html +55 -0
- data/lib/node_modules/npm/html/doc/api/npm-run-script.html +63 -0
- data/lib/node_modules/npm/html/doc/api/npm-search.html +66 -0
- data/lib/node_modules/npm/html/doc/api/npm-shrinkwrap.html +60 -0
- data/lib/node_modules/npm/html/doc/api/npm-start.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-stop.html +53 -0
- data/lib/node_modules/npm/html/doc/api/npm-submodule.html +67 -0
- data/lib/node_modules/npm/html/doc/api/npm-tag.html +63 -0
- data/lib/node_modules/npm/html/doc/api/npm-test.html +56 -0
- data/lib/node_modules/npm/html/doc/api/npm-uninstall.html +56 -0
- data/lib/node_modules/npm/html/doc/api/npm-unpublish.html +60 -0
- data/lib/node_modules/npm/html/doc/api/npm-update.html +52 -0
- data/lib/node_modules/npm/html/doc/api/npm-version.html +58 -0
- data/lib/node_modules/npm/html/doc/api/npm-view.html +133 -0
- data/lib/node_modules/npm/html/doc/api/npm-whoami.html +55 -0
- data/lib/node_modules/npm/html/doc/api/npm.html +126 -0
- data/lib/node_modules/npm/html/doc/cli/npm-adduser.html +73 -0
- data/lib/node_modules/npm/html/doc/cli/npm-bin.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-bugs.html +72 -0
- data/lib/node_modules/npm/html/doc/cli/npm-build.html +59 -0
- data/lib/node_modules/npm/html/doc/cli/npm-bundle.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-cache.html +100 -0
- data/lib/node_modules/npm/html/doc/cli/npm-completion.html +67 -0
- data/lib/node_modules/npm/html/doc/cli/npm-config.html +107 -0
- data/lib/node_modules/npm/html/doc/cli/npm-dedupe.html +96 -0
- data/lib/node_modules/npm/html/doc/cli/npm-deprecate.html +65 -0
- data/lib/node_modules/npm/html/doc/cli/npm-docs.html +75 -0
- data/lib/node_modules/npm/html/doc/cli/npm-edit.html +71 -0
- data/lib/node_modules/npm/html/doc/cli/npm-explore.html +74 -0
- data/lib/node_modules/npm/html/doc/cli/npm-help-search.html +72 -0
- data/lib/node_modules/npm/html/doc/cli/npm-help.html +70 -0
- data/lib/node_modules/npm/html/doc/cli/npm-init.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-install.html +183 -0
- data/lib/node_modules/npm/html/doc/cli/npm-link.html +96 -0
- data/lib/node_modules/npm/html/doc/cli/npm-ls.html +108 -0
- data/lib/node_modules/npm/html/doc/cli/npm-outdated.html +92 -0
- data/lib/node_modules/npm/html/doc/cli/npm-owner.html +68 -0
- data/lib/node_modules/npm/html/doc/cli/npm-pack.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-prefix.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-prune.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-publish.html +63 -0
- data/lib/node_modules/npm/html/doc/cli/npm-rebuild.html +60 -0
- data/lib/node_modules/npm/html/doc/cli/npm-repo.html +66 -0
- data/lib/node_modules/npm/html/doc/cli/npm-restart.html +58 -0
- data/lib/node_modules/npm/html/doc/cli/npm-rm.html +58 -0
- data/lib/node_modules/npm/html/doc/cli/npm-root.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-run-script.html +57 -0
- data/lib/node_modules/npm/html/doc/cli/npm-search.html +71 -0
- data/lib/node_modules/npm/html/doc/cli/npm-shrinkwrap.html +217 -0
- data/lib/node_modules/npm/html/doc/cli/npm-star.html +60 -0
- data/lib/node_modules/npm/html/doc/cli/npm-stars.html +59 -0
- data/lib/node_modules/npm/html/doc/cli/npm-start.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-stop.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm-submodule.html +67 -0
- data/lib/node_modules/npm/html/doc/cli/npm-tag.html +68 -0
- data/lib/node_modules/npm/html/doc/cli/npm-test.html +58 -0
- data/lib/node_modules/npm/html/doc/cli/npm-uninstall.html +56 -0
- data/lib/node_modules/npm/html/doc/cli/npm-unpublish.html +68 -0
- data/lib/node_modules/npm/html/doc/cli/npm-update.html +60 -0
- data/lib/node_modules/npm/html/doc/cli/npm-version.html +83 -0
- data/lib/node_modules/npm/html/doc/cli/npm-view.html +125 -0
- data/lib/node_modules/npm/html/doc/cli/npm-whoami.html +54 -0
- data/lib/node_modules/npm/html/doc/cli/npm.html +165 -0
- data/lib/node_modules/npm/html/doc/files/npm-folders.html +239 -0
- data/lib/node_modules/npm/html/doc/files/npm-global.html +239 -0
- data/lib/node_modules/npm/html/doc/files/npm-json.html +580 -0
- data/lib/node_modules/npm/html/doc/files/npmrc.html +93 -0
- data/lib/node_modules/npm/html/doc/files/package.json.html +580 -0
- data/lib/node_modules/npm/html/doc/index.html +450 -0
- data/lib/node_modules/npm/html/doc/misc/npm-coding-style.html +216 -0
- data/lib/node_modules/npm/html/doc/misc/npm-config.html +744 -0
- data/lib/node_modules/npm/html/doc/misc/npm-developers.html +208 -0
- data/lib/node_modules/npm/html/doc/misc/npm-disputes.html +126 -0
- data/lib/node_modules/npm/html/doc/misc/npm-faq.html +382 -0
- data/lib/node_modules/npm/html/doc/misc/npm-index.html +450 -0
- data/lib/node_modules/npm/html/doc/misc/npm-registry.html +105 -0
- data/lib/node_modules/npm/html/doc/misc/npm-scripts.html +257 -0
- data/lib/node_modules/npm/html/doc/misc/removing-npm.html +92 -0
- data/lib/node_modules/npm/html/doc/misc/semver.html +128 -0
- data/lib/node_modules/npm/html/docfoot-script.html +31 -0
- data/lib/node_modules/npm/html/docfoot.html +2 -0
- data/lib/node_modules/npm/html/dochead.html +8 -0
- data/lib/node_modules/npm/html/favicon.ico +0 -0
- data/lib/node_modules/npm/html/index.html +95 -0
- data/lib/node_modules/npm/html/static/style.css +329 -0
- data/lib/node_modules/npm/lib/adduser.js +138 -0
- data/lib/node_modules/npm/lib/bin.js +18 -0
- data/lib/node_modules/npm/lib/bugs.js +61 -0
- data/lib/node_modules/npm/lib/build.js +228 -0
- data/lib/node_modules/npm/lib/cache.js +1318 -0
- data/lib/node_modules/npm/lib/completion.js +253 -0
- data/lib/node_modules/npm/lib/config.js +285 -0
- data/lib/node_modules/npm/lib/dedupe.js +357 -0
- data/lib/node_modules/npm/lib/deprecate.js +47 -0
- data/lib/node_modules/npm/lib/docs.js +62 -0
- data/lib/node_modules/npm/lib/edit.js +32 -0
- data/lib/node_modules/npm/lib/explore.js +36 -0
- data/lib/node_modules/npm/lib/faq.js +8 -0
- data/lib/node_modules/npm/lib/get.js +12 -0
- data/lib/node_modules/npm/lib/help-search.js +218 -0
- data/lib/node_modules/npm/lib/help.js +231 -0
- data/lib/node_modules/npm/lib/init.js +36 -0
- data/lib/node_modules/npm/lib/install.js +979 -0
- data/lib/node_modules/npm/lib/link.js +173 -0
- data/lib/node_modules/npm/lib/ls.js +357 -0
- data/lib/node_modules/npm/lib/npm.js +528 -0
- data/lib/node_modules/npm/lib/outdated.js +303 -0
- data/lib/node_modules/npm/lib/owner.js +205 -0
- data/lib/node_modules/npm/lib/pack.js +65 -0
- data/lib/node_modules/npm/lib/prefix.js +11 -0
- data/lib/node_modules/npm/lib/prune.js +53 -0
- data/lib/node_modules/npm/lib/publish.js +118 -0
- data/lib/node_modules/npm/lib/rebuild.js +75 -0
- data/lib/node_modules/npm/lib/repo.js +54 -0
- data/lib/node_modules/npm/lib/restart.js +1 -0
- data/lib/node_modules/npm/lib/root.js +11 -0
- data/lib/node_modules/npm/lib/run-script.js +102 -0
- data/lib/node_modules/npm/lib/search.js +265 -0
- data/lib/node_modules/npm/lib/set.js +13 -0
- data/lib/node_modules/npm/lib/shrinkwrap.js +86 -0
- data/lib/node_modules/npm/lib/star.js +33 -0
- data/lib/node_modules/npm/lib/stars.js +27 -0
- data/lib/node_modules/npm/lib/start.js +1 -0
- data/lib/node_modules/npm/lib/stop.js +1 -0
- data/lib/node_modules/npm/lib/submodule.js +119 -0
- data/lib/node_modules/npm/lib/substack.js +20 -0
- data/lib/node_modules/npm/lib/tag.js +18 -0
- data/lib/node_modules/npm/lib/test.js +14 -0
- data/lib/node_modules/npm/lib/unbuild.js +112 -0
- data/lib/node_modules/npm/lib/uninstall.js +127 -0
- data/lib/node_modules/npm/lib/unpublish.js +83 -0
- data/lib/node_modules/npm/lib/update.js +43 -0
- data/lib/node_modules/npm/lib/utils/completion.sh +54 -0
- data/lib/node_modules/npm/lib/utils/completion/file-completion.js +26 -0
- data/lib/node_modules/npm/lib/utils/completion/installed-deep.js +50 -0
- data/lib/node_modules/npm/lib/utils/completion/installed-shallow.js +79 -0
- data/lib/node_modules/npm/lib/utils/error-handler.js +343 -0
- data/lib/node_modules/npm/lib/utils/fetch.js +93 -0
- data/lib/node_modules/npm/lib/utils/find-prefix.js +57 -0
- data/lib/node_modules/npm/lib/utils/gently-rm.js +61 -0
- data/lib/node_modules/npm/lib/utils/is-git-url.js +13 -0
- data/lib/node_modules/npm/lib/utils/lifecycle.js +360 -0
- data/lib/node_modules/npm/lib/utils/link.js +39 -0
- data/lib/node_modules/npm/lib/utils/tar.js +323 -0
- data/lib/node_modules/npm/lib/version.js +120 -0
- data/lib/node_modules/npm/lib/view.js +246 -0
- data/lib/node_modules/npm/lib/visnup.js +42 -0
- data/lib/node_modules/npm/lib/whoami.js +13 -0
- data/lib/node_modules/npm/lib/xmas.js +56 -0
- data/lib/node_modules/npm/make.bat +3 -0
- data/lib/node_modules/npm/man/man1/npm-README.1 +328 -0
- data/lib/node_modules/npm/man/man1/npm-adduser.1 +63 -0
- data/lib/node_modules/npm/man/man1/npm-bin.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-bugs.1 +78 -0
- data/lib/node_modules/npm/man/man1/npm-build.1 +43 -0
- data/lib/node_modules/npm/man/man1/npm-bundle.1 +23 -0
- data/lib/node_modules/npm/man/man1/npm-cache.1 +104 -0
- data/lib/node_modules/npm/man/man1/npm-completion.1 +47 -0
- data/lib/node_modules/npm/man/man1/npm-config.1 +113 -0
- data/lib/node_modules/npm/man/man1/npm-dedupe.1 +96 -0
- data/lib/node_modules/npm/man/man1/npm-deprecate.1 +48 -0
- data/lib/node_modules/npm/man/man1/npm-docs.1 +78 -0
- data/lib/node_modules/npm/man/man1/npm-edit.1 +66 -0
- data/lib/node_modules/npm/man/man1/npm-explore.1 +76 -0
- data/lib/node_modules/npm/man/man1/npm-help-search.1 +59 -0
- data/lib/node_modules/npm/man/man1/npm-help.1 +77 -0
- data/lib/node_modules/npm/man/man1/npm-init.1 +43 -0
- data/lib/node_modules/npm/man/man1/npm-install.1 +434 -0
- data/lib/node_modules/npm/man/man1/npm-link.1 +119 -0
- data/lib/node_modules/npm/man/man1/npm-ls.1 +146 -0
- data/lib/node_modules/npm/man/man1/npm-outdated.1 +102 -0
- data/lib/node_modules/npm/man/man1/npm-owner.1 +58 -0
- data/lib/node_modules/npm/man/man1/npm-pack.1 +48 -0
- data/lib/node_modules/npm/man/man1/npm-prefix.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-prune.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-publish.1 +53 -0
- data/lib/node_modules/npm/man/man1/npm-rebuild.1 +37 -0
- data/lib/node_modules/npm/man/man1/npm-repo.1 +47 -0
- data/lib/node_modules/npm/man/man1/npm-restart.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-rm.1 +44 -0
- data/lib/node_modules/npm/man/man1/npm-root.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-run-script.1 +41 -0
- data/lib/node_modules/npm/man/man1/npm-search.1 +62 -0
- data/lib/node_modules/npm/man/man1/npm-shrinkwrap.1 +275 -0
- data/lib/node_modules/npm/man/man1/npm-star.1 +39 -0
- data/lib/node_modules/npm/man/man1/npm-stars.1 +40 -0
- data/lib/node_modules/npm/man/man1/npm-start.1 +37 -0
- data/lib/node_modules/npm/man/man1/npm-stop.1 +37 -0
- data/lib/node_modules/npm/man/man1/npm-submodule.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-tag.1 +74 -0
- data/lib/node_modules/npm/man/man1/npm-test.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-uninstall.1 +42 -0
- data/lib/node_modules/npm/man/man1/npm-unpublish.1 +53 -0
- data/lib/node_modules/npm/man/man1/npm-update.1 +45 -0
- data/lib/node_modules/npm/man/man1/npm-version.1 +75 -0
- data/lib/node_modules/npm/man/man1/npm-view.1 +186 -0
- data/lib/node_modules/npm/man/man1/npm-whoami.1 +34 -0
- data/lib/node_modules/npm/man/man1/npm.1 +230 -0
- data/lib/node_modules/npm/man/man3/npm-bin.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-bugs.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-commands.3 +35 -0
- data/lib/node_modules/npm/man/man3/npm-config.3 +69 -0
- data/lib/node_modules/npm/man/man3/npm-deprecate.3 +57 -0
- data/lib/node_modules/npm/man/man3/npm-docs.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-edit.3 +35 -0
- data/lib/node_modules/npm/man/man3/npm-explore.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-help-search.3 +51 -0
- data/lib/node_modules/npm/man/man3/npm-init.3 +39 -0
- data/lib/node_modules/npm/man/man3/npm-install.3 +29 -0
- data/lib/node_modules/npm/man/man3/npm-link.3 +53 -0
- data/lib/node_modules/npm/man/man3/npm-load.3 +44 -0
- data/lib/node_modules/npm/man/man3/npm-ls.3 +86 -0
- data/lib/node_modules/npm/man/man3/npm-outdated.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-owner.3 +52 -0
- data/lib/node_modules/npm/man/man3/npm-pack.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-prefix.3 +24 -0
- data/lib/node_modules/npm/man/man3/npm-prune.3 +27 -0
- data/lib/node_modules/npm/man/man3/npm-publish.3 +51 -0
- data/lib/node_modules/npm/man/man3/npm-rebuild.3 +22 -0
- data/lib/node_modules/npm/man/man3/npm-repo.3 +28 -0
- data/lib/node_modules/npm/man/man3/npm-restart.3 +37 -0
- data/lib/node_modules/npm/man/man3/npm-root.3 +24 -0
- data/lib/node_modules/npm/man/man3/npm-run-script.3 +48 -0
- data/lib/node_modules/npm/man/man3/npm-search.3 +64 -0
- data/lib/node_modules/npm/man/man3/npm-shrinkwrap.3 +30 -0
- data/lib/node_modules/npm/man/man3/npm-start.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-stop.3 +21 -0
- data/lib/node_modules/npm/man/man3/npm-submodule.3 +42 -0
- data/lib/node_modules/npm/man/man3/npm-tag.3 +31 -0
- data/lib/node_modules/npm/man/man3/npm-test.3 +25 -0
- data/lib/node_modules/npm/man/man3/npm-uninstall.3 +25 -0
- data/lib/node_modules/npm/man/man3/npm-unpublish.3 +30 -0
- data/lib/node_modules/npm/man/man3/npm-update.3 +18 -0
- data/lib/node_modules/npm/man/man3/npm-version.3 +27 -0
- data/lib/node_modules/npm/man/man3/npm-view.3 +176 -0
- data/lib/node_modules/npm/man/man3/npm-whoami.3 +24 -0
- data/lib/node_modules/npm/man/man3/npm.3 +162 -0
- data/lib/node_modules/npm/man/man5/npm-folders.5 +264 -0
- data/lib/node_modules/npm/man/man5/npm-global.5 +264 -0
- data/lib/node_modules/npm/man/man5/npm-json.5 +807 -0
- data/lib/node_modules/npm/man/man5/npmrc.5 +89 -0
- data/lib/node_modules/npm/man/man5/package.json.5 +807 -0
- data/lib/node_modules/npm/man/man7/npm-coding-style.7 +254 -0
- data/lib/node_modules/npm/man/man7/npm-config.7 +1445 -0
- data/lib/node_modules/npm/man/man7/npm-developers.7 +335 -0
- data/lib/node_modules/npm/man/man7/npm-disputes.7 +146 -0
- data/lib/node_modules/npm/man/man7/npm-faq.7 +479 -0
- data/lib/node_modules/npm/man/man7/npm-index.7 +307 -0
- data/lib/node_modules/npm/man/man7/npm-registry.7 +82 -0
- data/lib/node_modules/npm/man/man7/npm-scripts.7 +354 -0
- data/lib/node_modules/npm/man/man7/removing-npm.7 +107 -0
- data/lib/node_modules/npm/man/man7/semver.7 +172 -0
- data/lib/node_modules/npm/node_modules/abbrev/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/abbrev/README.md +23 -0
- data/lib/node_modules/npm/node_modules/abbrev/lib/abbrev.js +111 -0
- data/lib/node_modules/npm/node_modules/abbrev/package.json +25 -0
- data/lib/node_modules/npm/node_modules/ansi/README.md +91 -0
- data/lib/node_modules/npm/node_modules/ansi/color-spaces.pl +67 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/beep/index.js +16 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/clear/index.js +15 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/cursorPosition.js +32 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/progress/index.js +87 -0
- data/lib/node_modules/npm/node_modules/ansi/examples/starwars.js +46 -0
- data/lib/node_modules/npm/node_modules/ansi/lib/ansi.js +405 -0
- data/lib/node_modules/npm/node_modules/ansi/lib/newlines.js +71 -0
- data/lib/node_modules/npm/node_modules/ansi/package.json +50 -0
- data/lib/node_modules/npm/node_modules/ansicolors/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/ansicolors/README.md +62 -0
- data/lib/node_modules/npm/node_modules/ansicolors/ansicolors.js +65 -0
- data/lib/node_modules/npm/node_modules/ansicolors/package.json +34 -0
- data/lib/node_modules/npm/node_modules/ansistyles/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/ansistyles/README.md +71 -0
- data/lib/node_modules/npm/node_modules/ansistyles/ansistyles.js +38 -0
- data/lib/node_modules/npm/node_modules/ansistyles/package.json +38 -0
- data/lib/node_modules/npm/node_modules/archy/README.markdown +92 -0
- data/lib/node_modules/npm/node_modules/archy/index.js +35 -0
- data/lib/node_modules/npm/node_modules/archy/package.json +52 -0
- data/lib/node_modules/npm/node_modules/block-stream/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/block-stream/README.md +14 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/block-stream-pause.js +70 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/block-stream.js +68 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/dropper-pause.js +70 -0
- data/lib/node_modules/npm/node_modules/block-stream/bench/dropper.js +68 -0
- data/lib/node_modules/npm/node_modules/block-stream/block-stream.js +209 -0
- data/lib/node_modules/npm/node_modules/block-stream/package.json +35 -0
- data/lib/node_modules/npm/node_modules/child-process-close/README.md +45 -0
- data/lib/node_modules/npm/node_modules/child-process-close/index.js +48 -0
- data/lib/node_modules/npm/node_modules/child-process-close/package.json +37 -0
- data/lib/node_modules/npm/node_modules/chmodr/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/chmodr/README.md +3 -0
- data/lib/node_modules/npm/node_modules/chmodr/chmodr.js +54 -0
- data/lib/node_modules/npm/node_modules/chmodr/package.json +28 -0
- data/lib/node_modules/npm/node_modules/chownr/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/chownr/README.md +3 -0
- data/lib/node_modules/npm/node_modules/chownr/chownr.js +41 -0
- data/lib/node_modules/npm/node_modules/chownr/package.json +42 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/README.md +42 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/index.js +180 -0
- data/lib/node_modules/npm/node_modules/cmd-shim/package.json +35 -0
- data/lib/node_modules/npm/node_modules/columnify/Readme.md +189 -0
- data/lib/node_modules/npm/node_modules/columnify/index.js +210 -0
- data/lib/node_modules/npm/node_modules/columnify/package.json +42 -0
- data/lib/node_modules/npm/node_modules/columnify/utils.js +76 -0
- data/lib/node_modules/npm/node_modules/editor/LICENSE +18 -0
- data/lib/node_modules/npm/node_modules/editor/README.markdown +54 -0
- data/lib/node_modules/npm/node_modules/editor/example/beep.json +5 -0
- data/lib/node_modules/npm/node_modules/editor/example/edit.js +4 -0
- data/lib/node_modules/npm/node_modules/editor/index.js +26 -0
- data/lib/node_modules/npm/node_modules/editor/package.json +43 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/README.md +18 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/bundle.js +13 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/dir-tar.js +19 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/dir.js +25 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/example.js +12 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/ig-tar.js +19 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/example/tar.js +25 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js +323 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/README.md +22 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/example/basic.js +13 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js +275 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/package.json +40 -0
- data/lib/node_modules/npm/node_modules/fstream-npm/package.json +27 -0
- data/lib/node_modules/npm/node_modules/fstream/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/fstream/README.md +76 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/filter-pipe.js +131 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/pipe.js +115 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/reader.js +54 -0
- data/lib/node_modules/npm/node_modules/fstream/examples/symlink-write.js +24 -0
- data/lib/node_modules/npm/node_modules/fstream/fstream.js +31 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/abstract.js +85 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/collect.js +67 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/dir-reader.js +251 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js +171 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/file-reader.js +147 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/file-writer.js +100 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/get-type.js +32 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/link-reader.js +54 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/link-writer.js +95 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/proxy-reader.js +93 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/proxy-writer.js +109 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/reader.js +260 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/socket-reader.js +38 -0
- data/lib/node_modules/npm/node_modules/fstream/lib/writer.js +389 -0
- data/lib/node_modules/npm/node_modules/fstream/package.json +43 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/History.md +10 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/Makefile +5 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/Readme.md +41 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/index.js +12 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/package.json +31 -0
- data/lib/node_modules/npm/node_modules/github-url-from-git/test.js +40 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/README.md +14 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/index.js +9 -0
- data/lib/node_modules/npm/node_modules/github-url-from-username-repo/package.json +33 -0
- data/lib/node_modules/npm/node_modules/glob/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/glob/README.md +250 -0
- data/lib/node_modules/npm/node_modules/glob/examples/g.js +9 -0
- data/lib/node_modules/npm/node_modules/glob/examples/usr-local.js +9 -0
- data/lib/node_modules/npm/node_modules/glob/glob.js +680 -0
- data/lib/node_modules/npm/node_modules/glob/package.json +39 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/README.md +26 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js +161 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/package.json +48 -0
- data/lib/node_modules/npm/node_modules/graceful-fs/polyfills.js +228 -0
- data/lib/node_modules/npm/node_modules/inherits/LICENSE +16 -0
- data/lib/node_modules/npm/node_modules/inherits/README.md +42 -0
- data/lib/node_modules/npm/node_modules/inherits/inherits.js +1 -0
- data/lib/node_modules/npm/node_modules/inherits/inherits_browser.js +23 -0
- data/lib/node_modules/npm/node_modules/inherits/package.json +32 -0
- data/lib/node_modules/npm/node_modules/inherits/test.js +25 -0
- data/lib/node_modules/npm/node_modules/ini/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/ini/README.md +79 -0
- data/lib/node_modules/npm/node_modules/ini/ini.js +166 -0
- data/lib/node_modules/npm/node_modules/ini/package.json +29 -0
- data/lib/node_modules/npm/node_modules/init-package-json/README.md +43 -0
- data/lib/node_modules/npm/node_modules/init-package-json/default-input.js +181 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/example-basic.js +8 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/example-default.js +7 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/example-npm.js +13 -0
- data/lib/node_modules/npm/node_modules/init-package-json/example/init/basic-init.js +1 -0
- data/lib/node_modules/npm/node_modules/init-package-json/init-package-json.js +129 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/LICENSE +15 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/README.md +133 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/index.js +11 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/README.md +8 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init-input.js +191 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/init.js +37 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/npm-init/package.json +10 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/example/substack-input.js +61 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/package.json +32 -0
- data/lib/node_modules/npm/node_modules/init-package-json/node_modules/promzard/promzard.js +216 -0
- data/lib/node_modules/npm/node_modules/init-package-json/package.json +48 -0
- data/lib/node_modules/npm/node_modules/lockfile/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/lockfile/README.md +81 -0
- data/lib/node_modules/npm/node_modules/lockfile/lockfile.js +272 -0
- data/lib/node_modules/npm/node_modules/lockfile/package.json +45 -0
- data/lib/node_modules/npm/node_modules/lru-cache/CONTRIBUTORS +14 -0
- data/lib/node_modules/npm/node_modules/lru-cache/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/lru-cache/README.md +97 -0
- data/lib/node_modules/npm/node_modules/lru-cache/lib/lru-cache.js +252 -0
- data/lib/node_modules/npm/node_modules/lru-cache/package.json +33 -0
- data/lib/node_modules/npm/node_modules/minimatch/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/minimatch/README.md +218 -0
- data/lib/node_modules/npm/node_modules/minimatch/minimatch.js +1055 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/README.md +53 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/bench.js +283 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/package.json +42 -0
- data/lib/node_modules/npm/node_modules/minimatch/node_modules/sigmund/sigmund.js +39 -0
- data/lib/node_modules/npm/node_modules/minimatch/package.json +40 -0
- data/lib/node_modules/npm/node_modules/mkdirp/LICENSE +21 -0
- data/lib/node_modules/npm/node_modules/mkdirp/README.markdown +63 -0
- data/lib/node_modules/npm/node_modules/mkdirp/examples/pow.js +6 -0
- data/lib/node_modules/npm/node_modules/mkdirp/index.js +82 -0
- data/lib/node_modules/npm/node_modules/mkdirp/package.json +33 -0
- data/lib/node_modules/npm/node_modules/node-gyp/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/node-gyp/README.md +163 -0
- data/lib/node_modules/npm/node_modules/node-gyp/addon.gypi +59 -0
- data/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js +133 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/AUTHORS +10 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/DEPS +24 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/OWNERS +1 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/PRESUBMIT.py +115 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/buildbot/buildbot_run.py +148 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/codereview.settings +10 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp +7 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp.bat +5 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_dummy.c +7 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py +18 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/gyptest.py +274 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +340 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +208 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1051 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1482 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +58 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +147 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +267 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +407 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +537 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common.py +513 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +72 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +157 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +103 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +49 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1069 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +81 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +308 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +87 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +56 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2172 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3270 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +37 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2150 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +44 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1224 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +23 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +2809 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +90 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +264 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +870 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +160 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +176 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1324 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +2888 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +69 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/pylintrc +307 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples +81 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples.bat +5 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/setup.py +19 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/README +15 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/README +5 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/README +12 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el +63 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/gyp.el +252 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh +7 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp +1105 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified +1107 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/graphviz.py +100 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_gyp.py +155 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_sln.py +168 -0
- data/lib/node_modules/npm/node_modules/node-gyp/gyp/tools/pretty_vcproj.py +329 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/build.js +275 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/clean.js +22 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js +344 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/install.js +362 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/list.js +33 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js +225 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/rebuild.js +16 -0
- data/lib/node_modules/npm/node_modules/node-gyp/lib/remove.js +56 -0
- data/lib/node_modules/npm/node_modules/node-gyp/package.json +55 -0
- data/lib/node_modules/npm/node_modules/nopt/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/nopt/README.md +210 -0
- data/lib/node_modules/npm/node_modules/nopt/bin/nopt.js +51 -0
- data/lib/node_modules/npm/node_modules/nopt/examples/my-program.js +30 -0
- data/lib/node_modules/npm/node_modules/nopt/lib/nopt.js +407 -0
- data/lib/node_modules/npm/node_modules/nopt/package.json +39 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/LICENSE +234 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/README.md +25 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/index.js +146 -0
- data/lib/node_modules/npm/node_modules/npm-install-checks/package.json +43 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/README.md +176 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/index.js +55 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/adduser.js +138 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/bugs.js +9 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/deprecate.js +28 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js +184 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/publish.js +156 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js +270 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/star.js +29 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/stars.js +9 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/tag.js +6 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/unpublish.js +104 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/lib/upload.js +22 -0
- data/lib/node_modules/npm/node_modules/npm-registry-client/package.json +43 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/README.md +6 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/npm-user-validate.js +49 -0
- data/lib/node_modules/npm/node_modules/npm-user-validate/package.json +37 -0
- data/lib/node_modules/npm/node_modules/npmconf/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npmconf/README.md +33 -0
- data/lib/node_modules/npm/node_modules/npmconf/config-defs.js +353 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/LICENCE +22 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/index.js +282 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/README.md +3 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/package.json +33 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/node_modules/proto-list/proto-list.js +81 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/package.json +32 -0
- data/lib/node_modules/npm/node_modules/npmconf/node_modules/config-chain/readme.markdown +228 -0
- data/lib/node_modules/npm/node_modules/npmconf/npmconf.js +338 -0
- data/lib/node_modules/npm/node_modules/npmconf/package.json +50 -0
- data/lib/node_modules/npm/node_modules/npmlog/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/npmlog/README.md +153 -0
- data/lib/node_modules/npm/node_modules/npmlog/example.js +39 -0
- data/lib/node_modules/npm/node_modules/npmlog/log.js +154 -0
- data/lib/node_modules/npm/node_modules/npmlog/package.json +32 -0
- data/lib/node_modules/npm/node_modules/once/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/once/README.md +51 -0
- data/lib/node_modules/npm/node_modules/once/once.js +20 -0
- data/lib/node_modules/npm/node_modules/once/package.json +39 -0
- data/lib/node_modules/npm/node_modules/opener/LICENSE.txt +14 -0
- data/lib/node_modules/npm/node_modules/opener/README.md +44 -0
- data/lib/node_modules/npm/node_modules/opener/opener.js +55 -0
- data/lib/node_modules/npm/node_modules/opener/package.json +34 -0
- data/lib/node_modules/npm/node_modules/osenv/LICENSE +25 -0
- data/lib/node_modules/npm/node_modules/osenv/README.md +63 -0
- data/lib/node_modules/npm/node_modules/osenv/osenv.js +80 -0
- data/lib/node_modules/npm/node_modules/osenv/package.json +38 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/LICENSE.txt +14 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/README.md +35 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/lib/path-is-inside.js +24 -0
- data/lib/node_modules/npm/node_modules/path-is-inside/package.json +39 -0
- data/lib/node_modules/npm/node_modules/read-installed/LICENSE +16 -0
- data/lib/node_modules/npm/node_modules/read-installed/README.md +25 -0
- data/lib/node_modules/npm/node_modules/read-installed/package.json +39 -0
- data/lib/node_modules/npm/node_modules/read-installed/read-installed.js +338 -0
- data/lib/node_modules/npm/node_modules/read-package-json/LICENSE +15 -0
- data/lib/node_modules/npm/node_modules/read-package-json/README.md +166 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/AUTHORS +4 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/LICENSE +30 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/README.md +101 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/core_module_names.json +29 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/extract_description.js +14 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js +392 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js +36 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/safe_format.js +9 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/typos.json +25 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/warning_messages.json +28 -0
- data/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/package.json +53 -0
- data/lib/node_modules/npm/node_modules/read-package-json/package.json +39 -0
- data/lib/node_modules/npm/node_modules/read-package-json/read-json.js +368 -0
- data/lib/node_modules/npm/node_modules/read/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/read/README.md +53 -0
- data/lib/node_modules/npm/node_modules/read/example/example.js +13 -0
- data/lib/node_modules/npm/node_modules/read/lib/read.js +113 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/README.md +68 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/mute.js +140 -0
- data/lib/node_modules/npm/node_modules/read/node_modules/mute-stream/package.json +37 -0
- data/lib/node_modules/npm/node_modules/read/package.json +35 -0
- data/lib/node_modules/npm/node_modules/read/rs.js +4 -0
- data/lib/node_modules/npm/node_modules/request/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/README.md +364 -0
- data/lib/node_modules/npm/node_modules/request/index.js +157 -0
- data/lib/node_modules/npm/node_modules/request/lib/copy.js +8 -0
- data/lib/node_modules/npm/node_modules/request/lib/debug.js +7 -0
- data/lib/node_modules/npm/node_modules/request/lib/getSafe.js +34 -0
- data/lib/node_modules/npm/node_modules/request/lib/optional.js +5 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/index.js +202 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/aws-sign2/package.json +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/index.js +119 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/forever-agent/package.json +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/License +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/Readme.md +163 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/lib/form_data.js +325 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/LICENSE +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/README.md +1414 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/component.json +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/lib/async.js +955 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/async/package.json +43 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/License +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/Makefile +7 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/Readme.md +132 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/lib/combined_stream.js +185 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/License +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Makefile +7 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/Readme.md +154 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/lib/delayed_stream.js +99 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/node_modules/delayed-stream/package.json +31 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/node_modules/combined-stream/package.json +32 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/form-data/package.json +46 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/Makefile +10 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/README.md +627 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/example/usage.js +78 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/hawk.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/images/logo.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/browser.js +485 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/client.js +367 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/crypto.js +111 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/index.js +15 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/server.js +524 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/lib/utils.js +183 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/Makefile +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/README.md +6 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/images/boom.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/lib/index.js +207 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/boom/package.json +47 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/Makefile +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/README.md +6 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/lib/index.js +68 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/cryptiles/package.json +48 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/LICENSE +33 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/Makefile +10 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/README.md +436 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/images/hoek.png +0 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/lib/escape.js +132 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/lib/index.js +585 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/hoek/package.json +49 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/Makefile +11 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/README.md +68 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/examples/offset.js +16 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/examples/time.js +25 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/index.js +1 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/lib/index.js +409 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/node_modules/sntp/package.json +48 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/hawk/package.json +53 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/LICENSE +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/README.md +75 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/http_signing.md +296 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/index.js +25 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/parser.js +304 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/signer.js +179 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/util.js +249 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/lib/verify.js +42 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/LICENSE +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/README.md +50 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/errors.js +13 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/index.js +27 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/reader.js +267 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/types.js +36 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/ber/writer.js +317 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/lib/index.js +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/package.json +43 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/reader.test.js +172 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/asn1/tst/ber/writer.test.js +296 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/README.md +126 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/assert.js +196 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/assert-plus/package.json +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/CHANGELOG +71 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/LICENSE +24 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/README +82 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/README.old +298 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctf.js +245 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctio.js +1485 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/ctype.js +944 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/man/man3ctype/ctio.3ctype +241 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/package.json +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsl.conf +129 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tools/jsstyle +839 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/float.json +13 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/int.json +13 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/psinfo.json +104 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/struct.json +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.fail.js +39 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.float.js +14 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.int.js +14 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.psinfo.js +17 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.struct.js +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/tst.typedef.js +15 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctf/typedef.json +14 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.rfloat.js +767 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/float/tst.wfloat.js +753 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.64.js +638 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.rint.js +101 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wbounds.js +53 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/int/tst.wint.js +92 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.64.js +451 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.roundtrip.js +81 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.ruint.js +95 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctio/uint/tst.wuint.js +156 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicr.js +50 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.basicw.js +44 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.char.js +42 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.endian.js +45 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.oldwrite.js +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.readSize.js +128 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.structw.js +28 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/node_modules/ctype/tst/ctype/tst.writeStruct.js +31 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/http-signature/package.json +36 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/README.md +49 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/package.json +33 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/stringify.js +39 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/json-stringify-safe/test.js +128 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/LICENSE +19 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/README.md +66 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/mime.js +114 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/package.json +36 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/test.js +84 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/types/mime.types +1588 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/mime/types/node.types +77 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/LICENSE.md +2 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/README.md +207 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/README.md +53 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/bench.gnu +174 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/bench.sh +34 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/benchmark-native.c +34 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/benchmark/benchmark.js +84 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/component.json +18 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/package.json +35 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/node-uuid/uuid.js +245 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/index.js +43 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/package.json +31 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/oauth-sign/test.js +49 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/qs/Readme.md +58 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/qs/index.js +366 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/qs/package.json +38 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/LICENSE +78 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/README.md +380 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/generate-pubsuffix.js +230 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/cookie.js +947 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/memstore.js +102 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js +69 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-GPL.txt +278 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/LICENSE-MIT.txt +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/package.json +73 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.js +508 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/punycode.min.js +2 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/LICENSE.txt +20 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/README.md +35 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/doc/README.md +69 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/doc/parse.php +35 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/docdown.php +38 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Alias.php +226 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Entry.php +442 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/node_modules/punycode/vendor/docdown/src/DocDown/Generator.php +563 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/package.json +46 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/public-suffix.txt +5229 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tough-cookie/test.js +1340 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/LICENSE +55 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/README.md +4 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js +227 -0
- data/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/package.json +28 -0
- data/lib/node_modules/npm/node_modules/request/package.json +57 -0
- data/lib/node_modules/npm/node_modules/request/request.js +1260 -0
- data/lib/node_modules/npm/node_modules/retry/License +21 -0
- data/lib/node_modules/npm/node_modules/retry/Makefile +7 -0
- data/lib/node_modules/npm/node_modules/retry/Readme.md +167 -0
- data/lib/node_modules/npm/node_modules/retry/equation.gif +0 -0
- data/lib/node_modules/npm/node_modules/retry/example/dns.js +31 -0
- data/lib/node_modules/npm/node_modules/retry/index.js +1 -0
- data/lib/node_modules/npm/node_modules/retry/lib/retry.js +50 -0
- data/lib/node_modules/npm/node_modules/retry/lib/retry_operation.js +109 -0
- data/lib/node_modules/npm/node_modules/retry/package.json +29 -0
- data/lib/node_modules/npm/node_modules/rimraf/AUTHORS +6 -0
- data/lib/node_modules/npm/node_modules/rimraf/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/rimraf/README.md +30 -0
- data/lib/node_modules/npm/node_modules/rimraf/bin.js +33 -0
- data/lib/node_modules/npm/node_modules/rimraf/package.json +56 -0
- data/lib/node_modules/npm/node_modules/rimraf/rimraf.js +178 -0
- data/lib/node_modules/npm/node_modules/semver/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/semver/Makefile +24 -0
- data/lib/node_modules/npm/node_modules/semver/README.md +142 -0
- data/lib/node_modules/npm/node_modules/semver/bin/semver +124 -0
- data/lib/node_modules/npm/node_modules/semver/foot.js +6 -0
- data/lib/node_modules/npm/node_modules/semver/head.js +2 -0
- data/lib/node_modules/npm/node_modules/semver/package.json +32 -0
- data/lib/node_modules/npm/node_modules/semver/semver.browser.js +1007 -0
- data/lib/node_modules/npm/node_modules/semver/semver.browser.js.gz +0 -0
- data/lib/node_modules/npm/node_modules/semver/semver.js +1011 -0
- data/lib/node_modules/npm/node_modules/semver/semver.min.js +1 -0
- data/lib/node_modules/npm/node_modules/semver/semver.min.js.gz +0 -0
- data/lib/node_modules/npm/node_modules/sha/LICENSE +46 -0
- data/lib/node_modules/npm/node_modules/sha/README.md +49 -0
- data/lib/node_modules/npm/node_modules/sha/index.js +120 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/LICENSE +27 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/README.md +768 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/duplex.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/float.patch +68 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_duplex.js +69 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_passthrough.js +41 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_readable.js +927 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_transform.js +205 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/lib/_stream_writable.js +369 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/package.json +36 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/passthrough.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/readable.js +6 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/transform.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/node_modules/readable-stream/writable.js +1 -0
- data/lib/node_modules/npm/node_modules/sha/package.json +32 -0
- data/lib/node_modules/npm/node_modules/slide/LICENSE +15 -0
- data/lib/node_modules/npm/node_modules/slide/README.md +143 -0
- data/lib/node_modules/npm/node_modules/slide/index.js +1 -0
- data/lib/node_modules/npm/node_modules/slide/lib/async-map-ordered.js +65 -0
- data/lib/node_modules/npm/node_modules/slide/lib/async-map.js +56 -0
- data/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js +16 -0
- data/lib/node_modules/npm/node_modules/slide/lib/chain.js +20 -0
- data/lib/node_modules/npm/node_modules/slide/lib/slide.js +3 -0
- data/lib/node_modules/npm/node_modules/slide/package.json +35 -0
- data/lib/node_modules/npm/node_modules/tar/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/tar/README.md +46 -0
- data/lib/node_modules/npm/node_modules/tar/examples/extracter.js +11 -0
- data/lib/node_modules/npm/node_modules/tar/examples/reader.js +36 -0
- data/lib/node_modules/npm/node_modules/tar/lib/buffer-entry.js +30 -0
- data/lib/node_modules/npm/node_modules/tar/lib/entry-writer.js +169 -0
- data/lib/node_modules/npm/node_modules/tar/lib/entry.js +213 -0
- data/lib/node_modules/npm/node_modules/tar/lib/extended-header-writer.js +191 -0
- data/lib/node_modules/npm/node_modules/tar/lib/extended-header.js +140 -0
- data/lib/node_modules/npm/node_modules/tar/lib/extract.js +78 -0
- data/lib/node_modules/npm/node_modules/tar/lib/global-header-writer.js +14 -0
- data/lib/node_modules/npm/node_modules/tar/lib/header.js +385 -0
- data/lib/node_modules/npm/node_modules/tar/lib/pack.js +231 -0
- data/lib/node_modules/npm/node_modules/tar/lib/parse.js +270 -0
- data/lib/node_modules/npm/node_modules/tar/package.json +40 -0
- data/lib/node_modules/npm/node_modules/tar/tar.js +173 -0
- data/lib/node_modules/npm/node_modules/text-table/LICENSE +18 -0
- data/lib/node_modules/npm/node_modules/text-table/example/align.js +8 -0
- data/lib/node_modules/npm/node_modules/text-table/example/center.js +8 -0
- data/lib/node_modules/npm/node_modules/text-table/example/dotalign.js +9 -0
- data/lib/node_modules/npm/node_modules/text-table/example/doubledot.js +11 -0
- data/lib/node_modules/npm/node_modules/text-table/example/table.js +6 -0
- data/lib/node_modules/npm/node_modules/text-table/index.js +86 -0
- data/lib/node_modules/npm/node_modules/text-table/package.json +52 -0
- data/lib/node_modules/npm/node_modules/text-table/readme.markdown +134 -0
- data/lib/node_modules/npm/node_modules/uid-number/LICENCE +25 -0
- data/lib/node_modules/npm/node_modules/uid-number/README.md +17 -0
- data/lib/node_modules/npm/node_modules/uid-number/get-uid-gid.js +24 -0
- data/lib/node_modules/npm/node_modules/uid-number/package.json +35 -0
- data/lib/node_modules/npm/node_modules/uid-number/uid-number.js +54 -0
- data/lib/node_modules/npm/node_modules/which/LICENSE +23 -0
- data/lib/node_modules/npm/node_modules/which/README.md +5 -0
- data/lib/node_modules/npm/node_modules/which/bin/which +14 -0
- data/lib/node_modules/npm/node_modules/which/package.json +34 -0
- data/lib/node_modules/npm/node_modules/which/which.js +104 -0
- data/lib/node_modules/npm/package.json +155 -0
- data/lib/node_modules/npm/scripts/clean-old.sh +165 -0
- data/lib/node_modules/npm/scripts/doc-build.sh +84 -0
- data/lib/node_modules/npm/scripts/index-build.js +62 -0
- data/lib/node_modules/npm/scripts/install.sh +313 -0
- data/lib/node_modules/npm/scripts/release.sh +36 -0
- data/lib/node_modules/npm/scripts/relocate.sh +26 -0
- metadata +1052 -36
- checksums.yaml +0 -7
@@ -0,0 +1,208 @@
|
|
1
|
+
# Copyright (c) 2012 Google Inc. All rights reserved.
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
|
5
|
+
"""Visual Studio project reader/writer."""
|
6
|
+
|
7
|
+
import gyp.common
|
8
|
+
import gyp.easy_xml as easy_xml
|
9
|
+
|
10
|
+
#------------------------------------------------------------------------------
|
11
|
+
|
12
|
+
|
13
|
+
class Tool(object):
|
14
|
+
"""Visual Studio tool."""
|
15
|
+
|
16
|
+
def __init__(self, name, attrs=None):
|
17
|
+
"""Initializes the tool.
|
18
|
+
|
19
|
+
Args:
|
20
|
+
name: Tool name.
|
21
|
+
attrs: Dict of tool attributes; may be None.
|
22
|
+
"""
|
23
|
+
self._attrs = attrs or {}
|
24
|
+
self._attrs['Name'] = name
|
25
|
+
|
26
|
+
def _GetSpecification(self):
|
27
|
+
"""Creates an element for the tool.
|
28
|
+
|
29
|
+
Returns:
|
30
|
+
A new xml.dom.Element for the tool.
|
31
|
+
"""
|
32
|
+
return ['Tool', self._attrs]
|
33
|
+
|
34
|
+
class Filter(object):
|
35
|
+
"""Visual Studio filter - that is, a virtual folder."""
|
36
|
+
|
37
|
+
def __init__(self, name, contents=None):
|
38
|
+
"""Initializes the folder.
|
39
|
+
|
40
|
+
Args:
|
41
|
+
name: Filter (folder) name.
|
42
|
+
contents: List of filenames and/or Filter objects contained.
|
43
|
+
"""
|
44
|
+
self.name = name
|
45
|
+
self.contents = list(contents or [])
|
46
|
+
|
47
|
+
|
48
|
+
#------------------------------------------------------------------------------
|
49
|
+
|
50
|
+
|
51
|
+
class Writer(object):
|
52
|
+
"""Visual Studio XML project writer."""
|
53
|
+
|
54
|
+
def __init__(self, project_path, version, name, guid=None, platforms=None):
|
55
|
+
"""Initializes the project.
|
56
|
+
|
57
|
+
Args:
|
58
|
+
project_path: Path to the project file.
|
59
|
+
version: Format version to emit.
|
60
|
+
name: Name of the project.
|
61
|
+
guid: GUID to use for project, if not None.
|
62
|
+
platforms: Array of string, the supported platforms. If null, ['Win32']
|
63
|
+
"""
|
64
|
+
self.project_path = project_path
|
65
|
+
self.version = version
|
66
|
+
self.name = name
|
67
|
+
self.guid = guid
|
68
|
+
|
69
|
+
# Default to Win32 for platforms.
|
70
|
+
if not platforms:
|
71
|
+
platforms = ['Win32']
|
72
|
+
|
73
|
+
# Initialize the specifications of the various sections.
|
74
|
+
self.platform_section = ['Platforms']
|
75
|
+
for platform in platforms:
|
76
|
+
self.platform_section.append(['Platform', {'Name': platform}])
|
77
|
+
self.tool_files_section = ['ToolFiles']
|
78
|
+
self.configurations_section = ['Configurations']
|
79
|
+
self.files_section = ['Files']
|
80
|
+
|
81
|
+
# Keep a dict keyed on filename to speed up access.
|
82
|
+
self.files_dict = dict()
|
83
|
+
|
84
|
+
def AddToolFile(self, path):
|
85
|
+
"""Adds a tool file to the project.
|
86
|
+
|
87
|
+
Args:
|
88
|
+
path: Relative path from project to tool file.
|
89
|
+
"""
|
90
|
+
self.tool_files_section.append(['ToolFile', {'RelativePath': path}])
|
91
|
+
|
92
|
+
def _GetSpecForConfiguration(self, config_type, config_name, attrs, tools):
|
93
|
+
"""Returns the specification for a configuration.
|
94
|
+
|
95
|
+
Args:
|
96
|
+
config_type: Type of configuration node.
|
97
|
+
config_name: Configuration name.
|
98
|
+
attrs: Dict of configuration attributes; may be None.
|
99
|
+
tools: List of tools (strings or Tool objects); may be None.
|
100
|
+
Returns:
|
101
|
+
"""
|
102
|
+
# Handle defaults
|
103
|
+
if not attrs:
|
104
|
+
attrs = {}
|
105
|
+
if not tools:
|
106
|
+
tools = []
|
107
|
+
|
108
|
+
# Add configuration node and its attributes
|
109
|
+
node_attrs = attrs.copy()
|
110
|
+
node_attrs['Name'] = config_name
|
111
|
+
specification = [config_type, node_attrs]
|
112
|
+
|
113
|
+
# Add tool nodes and their attributes
|
114
|
+
if tools:
|
115
|
+
for t in tools:
|
116
|
+
if isinstance(t, Tool):
|
117
|
+
specification.append(t._GetSpecification())
|
118
|
+
else:
|
119
|
+
specification.append(Tool(t)._GetSpecification())
|
120
|
+
return specification
|
121
|
+
|
122
|
+
|
123
|
+
def AddConfig(self, name, attrs=None, tools=None):
|
124
|
+
"""Adds a configuration to the project.
|
125
|
+
|
126
|
+
Args:
|
127
|
+
name: Configuration name.
|
128
|
+
attrs: Dict of configuration attributes; may be None.
|
129
|
+
tools: List of tools (strings or Tool objects); may be None.
|
130
|
+
"""
|
131
|
+
spec = self._GetSpecForConfiguration('Configuration', name, attrs, tools)
|
132
|
+
self.configurations_section.append(spec)
|
133
|
+
|
134
|
+
def _AddFilesToNode(self, parent, files):
|
135
|
+
"""Adds files and/or filters to the parent node.
|
136
|
+
|
137
|
+
Args:
|
138
|
+
parent: Destination node
|
139
|
+
files: A list of Filter objects and/or relative paths to files.
|
140
|
+
|
141
|
+
Will call itself recursively, if the files list contains Filter objects.
|
142
|
+
"""
|
143
|
+
for f in files:
|
144
|
+
if isinstance(f, Filter):
|
145
|
+
node = ['Filter', {'Name': f.name}]
|
146
|
+
self._AddFilesToNode(node, f.contents)
|
147
|
+
else:
|
148
|
+
node = ['File', {'RelativePath': f}]
|
149
|
+
self.files_dict[f] = node
|
150
|
+
parent.append(node)
|
151
|
+
|
152
|
+
def AddFiles(self, files):
|
153
|
+
"""Adds files to the project.
|
154
|
+
|
155
|
+
Args:
|
156
|
+
files: A list of Filter objects and/or relative paths to files.
|
157
|
+
|
158
|
+
This makes a copy of the file/filter tree at the time of this call. If you
|
159
|
+
later add files to a Filter object which was passed into a previous call
|
160
|
+
to AddFiles(), it will not be reflected in this project.
|
161
|
+
"""
|
162
|
+
self._AddFilesToNode(self.files_section, files)
|
163
|
+
# TODO(rspangler) This also doesn't handle adding files to an existing
|
164
|
+
# filter. That is, it doesn't merge the trees.
|
165
|
+
|
166
|
+
def AddFileConfig(self, path, config, attrs=None, tools=None):
|
167
|
+
"""Adds a configuration to a file.
|
168
|
+
|
169
|
+
Args:
|
170
|
+
path: Relative path to the file.
|
171
|
+
config: Name of configuration to add.
|
172
|
+
attrs: Dict of configuration attributes; may be None.
|
173
|
+
tools: List of tools (strings or Tool objects); may be None.
|
174
|
+
|
175
|
+
Raises:
|
176
|
+
ValueError: Relative path does not match any file added via AddFiles().
|
177
|
+
"""
|
178
|
+
# Find the file node with the right relative path
|
179
|
+
parent = self.files_dict.get(path)
|
180
|
+
if not parent:
|
181
|
+
raise ValueError('AddFileConfig: file "%s" not in project.' % path)
|
182
|
+
|
183
|
+
# Add the config to the file node
|
184
|
+
spec = self._GetSpecForConfiguration('FileConfiguration', config, attrs,
|
185
|
+
tools)
|
186
|
+
parent.append(spec)
|
187
|
+
|
188
|
+
def WriteIfChanged(self):
|
189
|
+
"""Writes the project file."""
|
190
|
+
# First create XML content definition
|
191
|
+
content = [
|
192
|
+
'VisualStudioProject',
|
193
|
+
{'ProjectType': 'Visual C++',
|
194
|
+
'Version': self.version.ProjectVersion(),
|
195
|
+
'Name': self.name,
|
196
|
+
'ProjectGUID': self.guid,
|
197
|
+
'RootNamespace': self.name,
|
198
|
+
'Keyword': 'Win32Proj'
|
199
|
+
},
|
200
|
+
self.platform_section,
|
201
|
+
self.tool_files_section,
|
202
|
+
self.configurations_section,
|
203
|
+
['References'], # empty section
|
204
|
+
self.files_section,
|
205
|
+
['Globals'] # empty section
|
206
|
+
]
|
207
|
+
easy_xml.WriteXmlIfChanged(content, self.project_path,
|
208
|
+
encoding="Windows-1252")
|
@@ -0,0 +1,1051 @@
|
|
1
|
+
# Copyright (c) 2012 Google Inc. All rights reserved.
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
|
5
|
+
"""Code to validate and convert settings of the Microsoft build tools.
|
6
|
+
|
7
|
+
This file contains code to validate and convert settings of the Microsoft
|
8
|
+
build tools. The function ConvertToMSBuildSettings(), ValidateMSVSSettings(),
|
9
|
+
and ValidateMSBuildSettings() are the entry points.
|
10
|
+
|
11
|
+
This file was created by comparing the projects created by Visual Studio 2008
|
12
|
+
and Visual Studio 2010 for all available settings through the user interface.
|
13
|
+
The MSBuild schemas were also considered. They are typically found in the
|
14
|
+
MSBuild install directory, e.g. c:\Program Files (x86)\MSBuild
|
15
|
+
"""
|
16
|
+
|
17
|
+
import sys
|
18
|
+
import re
|
19
|
+
|
20
|
+
# Dictionaries of settings validators. The key is the tool name, the value is
|
21
|
+
# a dictionary mapping setting names to validation functions.
|
22
|
+
_msvs_validators = {}
|
23
|
+
_msbuild_validators = {}
|
24
|
+
|
25
|
+
|
26
|
+
# A dictionary of settings converters. The key is the tool name, the value is
|
27
|
+
# a dictionary mapping setting names to conversion functions.
|
28
|
+
_msvs_to_msbuild_converters = {}
|
29
|
+
|
30
|
+
|
31
|
+
# Tool name mapping from MSVS to MSBuild.
|
32
|
+
_msbuild_name_of_tool = {}
|
33
|
+
|
34
|
+
|
35
|
+
class _Tool(object):
|
36
|
+
"""Represents a tool used by MSVS or MSBuild.
|
37
|
+
|
38
|
+
Attributes:
|
39
|
+
msvs_name: The name of the tool in MSVS.
|
40
|
+
msbuild_name: The name of the tool in MSBuild.
|
41
|
+
"""
|
42
|
+
|
43
|
+
def __init__(self, msvs_name, msbuild_name):
|
44
|
+
self.msvs_name = msvs_name
|
45
|
+
self.msbuild_name = msbuild_name
|
46
|
+
|
47
|
+
|
48
|
+
def _AddTool(tool):
|
49
|
+
"""Adds a tool to the four dictionaries used to process settings.
|
50
|
+
|
51
|
+
This only defines the tool. Each setting also needs to be added.
|
52
|
+
|
53
|
+
Args:
|
54
|
+
tool: The _Tool object to be added.
|
55
|
+
"""
|
56
|
+
_msvs_validators[tool.msvs_name] = {}
|
57
|
+
_msbuild_validators[tool.msbuild_name] = {}
|
58
|
+
_msvs_to_msbuild_converters[tool.msvs_name] = {}
|
59
|
+
_msbuild_name_of_tool[tool.msvs_name] = tool.msbuild_name
|
60
|
+
|
61
|
+
|
62
|
+
def _GetMSBuildToolSettings(msbuild_settings, tool):
|
63
|
+
"""Returns an MSBuild tool dictionary. Creates it if needed."""
|
64
|
+
return msbuild_settings.setdefault(tool.msbuild_name, {})
|
65
|
+
|
66
|
+
|
67
|
+
class _Type(object):
|
68
|
+
"""Type of settings (Base class)."""
|
69
|
+
|
70
|
+
def ValidateMSVS(self, value):
|
71
|
+
"""Verifies that the value is legal for MSVS.
|
72
|
+
|
73
|
+
Args:
|
74
|
+
value: the value to check for this type.
|
75
|
+
|
76
|
+
Raises:
|
77
|
+
ValueError if value is not valid for MSVS.
|
78
|
+
"""
|
79
|
+
|
80
|
+
def ValidateMSBuild(self, value):
|
81
|
+
"""Verifies that the value is legal for MSBuild.
|
82
|
+
|
83
|
+
Args:
|
84
|
+
value: the value to check for this type.
|
85
|
+
|
86
|
+
Raises:
|
87
|
+
ValueError if value is not valid for MSBuild.
|
88
|
+
"""
|
89
|
+
|
90
|
+
def ConvertToMSBuild(self, value):
|
91
|
+
"""Returns the MSBuild equivalent of the MSVS value given.
|
92
|
+
|
93
|
+
Args:
|
94
|
+
value: the MSVS value to convert.
|
95
|
+
|
96
|
+
Returns:
|
97
|
+
the MSBuild equivalent.
|
98
|
+
|
99
|
+
Raises:
|
100
|
+
ValueError if value is not valid.
|
101
|
+
"""
|
102
|
+
return value
|
103
|
+
|
104
|
+
|
105
|
+
class _String(_Type):
|
106
|
+
"""A setting that's just a string."""
|
107
|
+
|
108
|
+
def ValidateMSVS(self, value):
|
109
|
+
if not isinstance(value, basestring):
|
110
|
+
raise ValueError('expected string; got %r' % value)
|
111
|
+
|
112
|
+
def ValidateMSBuild(self, value):
|
113
|
+
if not isinstance(value, basestring):
|
114
|
+
raise ValueError('expected string; got %r' % value)
|
115
|
+
|
116
|
+
def ConvertToMSBuild(self, value):
|
117
|
+
# Convert the macros
|
118
|
+
return ConvertVCMacrosToMSBuild(value)
|
119
|
+
|
120
|
+
|
121
|
+
class _StringList(_Type):
|
122
|
+
"""A settings that's a list of strings."""
|
123
|
+
|
124
|
+
def ValidateMSVS(self, value):
|
125
|
+
if not isinstance(value, basestring) and not isinstance(value, list):
|
126
|
+
raise ValueError('expected string list; got %r' % value)
|
127
|
+
|
128
|
+
def ValidateMSBuild(self, value):
|
129
|
+
if not isinstance(value, basestring) and not isinstance(value, list):
|
130
|
+
raise ValueError('expected string list; got %r' % value)
|
131
|
+
|
132
|
+
def ConvertToMSBuild(self, value):
|
133
|
+
# Convert the macros
|
134
|
+
if isinstance(value, list):
|
135
|
+
return [ConvertVCMacrosToMSBuild(i) for i in value]
|
136
|
+
else:
|
137
|
+
return ConvertVCMacrosToMSBuild(value)
|
138
|
+
|
139
|
+
|
140
|
+
class _Boolean(_Type):
|
141
|
+
"""Boolean settings, can have the values 'false' or 'true'."""
|
142
|
+
|
143
|
+
def _Validate(self, value):
|
144
|
+
if value != 'true' and value != 'false':
|
145
|
+
raise ValueError('expected bool; got %r' % value)
|
146
|
+
|
147
|
+
def ValidateMSVS(self, value):
|
148
|
+
self._Validate(value)
|
149
|
+
|
150
|
+
def ValidateMSBuild(self, value):
|
151
|
+
self._Validate(value)
|
152
|
+
|
153
|
+
def ConvertToMSBuild(self, value):
|
154
|
+
self._Validate(value)
|
155
|
+
return value
|
156
|
+
|
157
|
+
|
158
|
+
class _Integer(_Type):
|
159
|
+
"""Integer settings."""
|
160
|
+
|
161
|
+
def __init__(self, msbuild_base=10):
|
162
|
+
_Type.__init__(self)
|
163
|
+
self._msbuild_base = msbuild_base
|
164
|
+
|
165
|
+
def ValidateMSVS(self, value):
|
166
|
+
# Try to convert, this will raise ValueError if invalid.
|
167
|
+
self.ConvertToMSBuild(value)
|
168
|
+
|
169
|
+
def ValidateMSBuild(self, value):
|
170
|
+
# Try to convert, this will raise ValueError if invalid.
|
171
|
+
int(value, self._msbuild_base)
|
172
|
+
|
173
|
+
def ConvertToMSBuild(self, value):
|
174
|
+
msbuild_format = (self._msbuild_base == 10) and '%d' or '0x%04x'
|
175
|
+
return msbuild_format % int(value)
|
176
|
+
|
177
|
+
|
178
|
+
class _Enumeration(_Type):
|
179
|
+
"""Type of settings that is an enumeration.
|
180
|
+
|
181
|
+
In MSVS, the values are indexes like '0', '1', and '2'.
|
182
|
+
MSBuild uses text labels that are more representative, like 'Win32'.
|
183
|
+
|
184
|
+
Constructor args:
|
185
|
+
label_list: an array of MSBuild labels that correspond to the MSVS index.
|
186
|
+
In the rare cases where MSVS has skipped an index value, None is
|
187
|
+
used in the array to indicate the unused spot.
|
188
|
+
new: an array of labels that are new to MSBuild.
|
189
|
+
"""
|
190
|
+
|
191
|
+
def __init__(self, label_list, new=None):
|
192
|
+
_Type.__init__(self)
|
193
|
+
self._label_list = label_list
|
194
|
+
self._msbuild_values = set(value for value in label_list
|
195
|
+
if value is not None)
|
196
|
+
if new is not None:
|
197
|
+
self._msbuild_values.update(new)
|
198
|
+
|
199
|
+
def ValidateMSVS(self, value):
|
200
|
+
# Try to convert. It will raise an exception if not valid.
|
201
|
+
self.ConvertToMSBuild(value)
|
202
|
+
|
203
|
+
def ValidateMSBuild(self, value):
|
204
|
+
if value not in self._msbuild_values:
|
205
|
+
raise ValueError('unrecognized enumerated value %s' % value)
|
206
|
+
|
207
|
+
def ConvertToMSBuild(self, value):
|
208
|
+
index = int(value)
|
209
|
+
if index < 0 or index >= len(self._label_list):
|
210
|
+
raise ValueError('index value (%d) not in expected range [0, %d)' %
|
211
|
+
(index, len(self._label_list)))
|
212
|
+
label = self._label_list[index]
|
213
|
+
if label is None:
|
214
|
+
raise ValueError('converted value for %s not specified.' % value)
|
215
|
+
return label
|
216
|
+
|
217
|
+
|
218
|
+
# Instantiate the various generic types.
|
219
|
+
_boolean = _Boolean()
|
220
|
+
_integer = _Integer()
|
221
|
+
# For now, we don't do any special validation on these types:
|
222
|
+
_string = _String()
|
223
|
+
_file_name = _String()
|
224
|
+
_folder_name = _String()
|
225
|
+
_file_list = _StringList()
|
226
|
+
_folder_list = _StringList()
|
227
|
+
_string_list = _StringList()
|
228
|
+
# Some boolean settings went from numerical values to boolean. The
|
229
|
+
# mapping is 0: default, 1: false, 2: true.
|
230
|
+
_newly_boolean = _Enumeration(['', 'false', 'true'])
|
231
|
+
|
232
|
+
|
233
|
+
def _Same(tool, name, setting_type):
|
234
|
+
"""Defines a setting that has the same name in MSVS and MSBuild.
|
235
|
+
|
236
|
+
Args:
|
237
|
+
tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
|
238
|
+
name: the name of the setting.
|
239
|
+
setting_type: the type of this setting.
|
240
|
+
"""
|
241
|
+
_Renamed(tool, name, name, setting_type)
|
242
|
+
|
243
|
+
|
244
|
+
def _Renamed(tool, msvs_name, msbuild_name, setting_type):
|
245
|
+
"""Defines a setting for which the name has changed.
|
246
|
+
|
247
|
+
Args:
|
248
|
+
tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
|
249
|
+
msvs_name: the name of the MSVS setting.
|
250
|
+
msbuild_name: the name of the MSBuild setting.
|
251
|
+
setting_type: the type of this setting.
|
252
|
+
"""
|
253
|
+
|
254
|
+
def _Translate(value, msbuild_settings):
|
255
|
+
msbuild_tool_settings = _GetMSBuildToolSettings(msbuild_settings, tool)
|
256
|
+
msbuild_tool_settings[msbuild_name] = setting_type.ConvertToMSBuild(value)
|
257
|
+
|
258
|
+
_msvs_validators[tool.msvs_name][msvs_name] = setting_type.ValidateMSVS
|
259
|
+
_msbuild_validators[tool.msbuild_name][msbuild_name] = (
|
260
|
+
setting_type.ValidateMSBuild)
|
261
|
+
_msvs_to_msbuild_converters[tool.msvs_name][msvs_name] = _Translate
|
262
|
+
|
263
|
+
|
264
|
+
def _Moved(tool, settings_name, msbuild_tool_name, setting_type):
|
265
|
+
_MovedAndRenamed(tool, settings_name, msbuild_tool_name, settings_name,
|
266
|
+
setting_type)
|
267
|
+
|
268
|
+
|
269
|
+
def _MovedAndRenamed(tool, msvs_settings_name, msbuild_tool_name,
|
270
|
+
msbuild_settings_name, setting_type):
|
271
|
+
"""Defines a setting that may have moved to a new section.
|
272
|
+
|
273
|
+
Args:
|
274
|
+
tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
|
275
|
+
msvs_settings_name: the MSVS name of the setting.
|
276
|
+
msbuild_tool_name: the name of the MSBuild tool to place the setting under.
|
277
|
+
msbuild_settings_name: the MSBuild name of the setting.
|
278
|
+
setting_type: the type of this setting.
|
279
|
+
"""
|
280
|
+
|
281
|
+
def _Translate(value, msbuild_settings):
|
282
|
+
tool_settings = msbuild_settings.setdefault(msbuild_tool_name, {})
|
283
|
+
tool_settings[msbuild_settings_name] = setting_type.ConvertToMSBuild(value)
|
284
|
+
|
285
|
+
_msvs_validators[tool.msvs_name][msvs_settings_name] = (
|
286
|
+
setting_type.ValidateMSVS)
|
287
|
+
validator = setting_type.ValidateMSBuild
|
288
|
+
_msbuild_validators[msbuild_tool_name][msbuild_settings_name] = validator
|
289
|
+
_msvs_to_msbuild_converters[tool.msvs_name][msvs_settings_name] = _Translate
|
290
|
+
|
291
|
+
|
292
|
+
def _MSVSOnly(tool, name, setting_type):
|
293
|
+
"""Defines a setting that is only found in MSVS.
|
294
|
+
|
295
|
+
Args:
|
296
|
+
tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
|
297
|
+
name: the name of the setting.
|
298
|
+
setting_type: the type of this setting.
|
299
|
+
"""
|
300
|
+
|
301
|
+
def _Translate(unused_value, unused_msbuild_settings):
|
302
|
+
# Since this is for MSVS only settings, no translation will happen.
|
303
|
+
pass
|
304
|
+
|
305
|
+
_msvs_validators[tool.msvs_name][name] = setting_type.ValidateMSVS
|
306
|
+
_msvs_to_msbuild_converters[tool.msvs_name][name] = _Translate
|
307
|
+
|
308
|
+
|
309
|
+
def _MSBuildOnly(tool, name, setting_type):
|
310
|
+
"""Defines a setting that is only found in MSBuild.
|
311
|
+
|
312
|
+
Args:
|
313
|
+
tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
|
314
|
+
name: the name of the setting.
|
315
|
+
setting_type: the type of this setting.
|
316
|
+
"""
|
317
|
+
_msbuild_validators[tool.msbuild_name][name] = setting_type.ValidateMSBuild
|
318
|
+
|
319
|
+
|
320
|
+
def _ConvertedToAdditionalOption(tool, msvs_name, flag):
|
321
|
+
"""Defines a setting that's handled via a command line option in MSBuild.
|
322
|
+
|
323
|
+
Args:
|
324
|
+
tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
|
325
|
+
msvs_name: the name of the MSVS setting that if 'true' becomes a flag
|
326
|
+
flag: the flag to insert at the end of the AdditionalOptions
|
327
|
+
"""
|
328
|
+
|
329
|
+
def _Translate(value, msbuild_settings):
|
330
|
+
if value == 'true':
|
331
|
+
tool_settings = _GetMSBuildToolSettings(msbuild_settings, tool)
|
332
|
+
if 'AdditionalOptions' in tool_settings:
|
333
|
+
new_flags = '%s %s' % (tool_settings['AdditionalOptions'], flag)
|
334
|
+
else:
|
335
|
+
new_flags = flag
|
336
|
+
tool_settings['AdditionalOptions'] = new_flags
|
337
|
+
_msvs_validators[tool.msvs_name][msvs_name] = _boolean.ValidateMSVS
|
338
|
+
_msvs_to_msbuild_converters[tool.msvs_name][msvs_name] = _Translate
|
339
|
+
|
340
|
+
|
341
|
+
def _CustomGeneratePreprocessedFile(tool, msvs_name):
|
342
|
+
def _Translate(value, msbuild_settings):
|
343
|
+
tool_settings = _GetMSBuildToolSettings(msbuild_settings, tool)
|
344
|
+
if value == '0':
|
345
|
+
tool_settings['PreprocessToFile'] = 'false'
|
346
|
+
tool_settings['PreprocessSuppressLineNumbers'] = 'false'
|
347
|
+
elif value == '1': # /P
|
348
|
+
tool_settings['PreprocessToFile'] = 'true'
|
349
|
+
tool_settings['PreprocessSuppressLineNumbers'] = 'false'
|
350
|
+
elif value == '2': # /EP /P
|
351
|
+
tool_settings['PreprocessToFile'] = 'true'
|
352
|
+
tool_settings['PreprocessSuppressLineNumbers'] = 'true'
|
353
|
+
else:
|
354
|
+
raise ValueError('value must be one of [0, 1, 2]; got %s' % value)
|
355
|
+
# Create a bogus validator that looks for '0', '1', or '2'
|
356
|
+
msvs_validator = _Enumeration(['a', 'b', 'c']).ValidateMSVS
|
357
|
+
_msvs_validators[tool.msvs_name][msvs_name] = msvs_validator
|
358
|
+
msbuild_validator = _boolean.ValidateMSBuild
|
359
|
+
msbuild_tool_validators = _msbuild_validators[tool.msbuild_name]
|
360
|
+
msbuild_tool_validators['PreprocessToFile'] = msbuild_validator
|
361
|
+
msbuild_tool_validators['PreprocessSuppressLineNumbers'] = msbuild_validator
|
362
|
+
_msvs_to_msbuild_converters[tool.msvs_name][msvs_name] = _Translate
|
363
|
+
|
364
|
+
|
365
|
+
fix_vc_macro_slashes_regex_list = ('IntDir', 'OutDir')
|
366
|
+
fix_vc_macro_slashes_regex = re.compile(
|
367
|
+
r'(\$\((?:%s)\))(?:[\\/]+)' % "|".join(fix_vc_macro_slashes_regex_list)
|
368
|
+
)
|
369
|
+
|
370
|
+
def FixVCMacroSlashes(s):
|
371
|
+
"""Replace macros which have excessive following slashes.
|
372
|
+
|
373
|
+
These macros are known to have a built-in trailing slash. Furthermore, many
|
374
|
+
scripts hiccup on processing paths with extra slashes in the middle.
|
375
|
+
|
376
|
+
This list is probably not exhaustive. Add as needed.
|
377
|
+
"""
|
378
|
+
if '$' in s:
|
379
|
+
s = fix_vc_macro_slashes_regex.sub(r'\1', s)
|
380
|
+
return s
|
381
|
+
|
382
|
+
|
383
|
+
def ConvertVCMacrosToMSBuild(s):
|
384
|
+
"""Convert the the MSVS macros found in the string to the MSBuild equivalent.
|
385
|
+
|
386
|
+
This list is probably not exhaustive. Add as needed.
|
387
|
+
"""
|
388
|
+
if '$' in s:
|
389
|
+
replace_map = {
|
390
|
+
'$(ConfigurationName)': '$(Configuration)',
|
391
|
+
'$(InputDir)': '%(RootDir)%(Directory)',
|
392
|
+
'$(InputExt)': '%(Extension)',
|
393
|
+
'$(InputFileName)': '%(Filename)%(Extension)',
|
394
|
+
'$(InputName)': '%(Filename)',
|
395
|
+
'$(InputPath)': '%(FullPath)',
|
396
|
+
'$(ParentName)': '$(ProjectFileName)',
|
397
|
+
'$(PlatformName)': '$(Platform)',
|
398
|
+
'$(SafeInputName)': '%(Filename)',
|
399
|
+
}
|
400
|
+
for old, new in replace_map.iteritems():
|
401
|
+
s = s.replace(old, new)
|
402
|
+
s = FixVCMacroSlashes(s)
|
403
|
+
return s
|
404
|
+
|
405
|
+
|
406
|
+
def ConvertToMSBuildSettings(msvs_settings, stderr=sys.stderr):
|
407
|
+
"""Converts MSVS settings (VS2008 and earlier) to MSBuild settings (VS2010+).
|
408
|
+
|
409
|
+
Args:
|
410
|
+
msvs_settings: A dictionary. The key is the tool name. The values are
|
411
|
+
themselves dictionaries of settings and their values.
|
412
|
+
stderr: The stream receiving the error messages.
|
413
|
+
|
414
|
+
Returns:
|
415
|
+
A dictionary of MSBuild settings. The key is either the MSBuild tool name
|
416
|
+
or the empty string (for the global settings). The values are themselves
|
417
|
+
dictionaries of settings and their values.
|
418
|
+
"""
|
419
|
+
msbuild_settings = {}
|
420
|
+
for msvs_tool_name, msvs_tool_settings in msvs_settings.iteritems():
|
421
|
+
if msvs_tool_name in _msvs_to_msbuild_converters:
|
422
|
+
msvs_tool = _msvs_to_msbuild_converters[msvs_tool_name]
|
423
|
+
for msvs_setting, msvs_value in msvs_tool_settings.iteritems():
|
424
|
+
if msvs_setting in msvs_tool:
|
425
|
+
# Invoke the translation function.
|
426
|
+
try:
|
427
|
+
msvs_tool[msvs_setting](msvs_value, msbuild_settings)
|
428
|
+
except ValueError, e:
|
429
|
+
print >> stderr, ('Warning: while converting %s/%s to MSBuild, '
|
430
|
+
'%s' % (msvs_tool_name, msvs_setting, e))
|
431
|
+
else:
|
432
|
+
# We don't know this setting. Give a warning.
|
433
|
+
print >> stderr, ('Warning: unrecognized setting %s/%s '
|
434
|
+
'while converting to MSBuild.' %
|
435
|
+
(msvs_tool_name, msvs_setting))
|
436
|
+
else:
|
437
|
+
print >> stderr, ('Warning: unrecognized tool %s while converting to '
|
438
|
+
'MSBuild.' % msvs_tool_name)
|
439
|
+
return msbuild_settings
|
440
|
+
|
441
|
+
|
442
|
+
def ValidateMSVSSettings(settings, stderr=sys.stderr):
|
443
|
+
"""Validates that the names of the settings are valid for MSVS.
|
444
|
+
|
445
|
+
Args:
|
446
|
+
settings: A dictionary. The key is the tool name. The values are
|
447
|
+
themselves dictionaries of settings and their values.
|
448
|
+
stderr: The stream receiving the error messages.
|
449
|
+
"""
|
450
|
+
_ValidateSettings(_msvs_validators, settings, stderr)
|
451
|
+
|
452
|
+
|
453
|
+
def ValidateMSBuildSettings(settings, stderr=sys.stderr):
|
454
|
+
"""Validates that the names of the settings are valid for MSBuild.
|
455
|
+
|
456
|
+
Args:
|
457
|
+
settings: A dictionary. The key is the tool name. The values are
|
458
|
+
themselves dictionaries of settings and their values.
|
459
|
+
stderr: The stream receiving the error messages.
|
460
|
+
"""
|
461
|
+
_ValidateSettings(_msbuild_validators, settings, stderr)
|
462
|
+
|
463
|
+
|
464
|
+
def _ValidateSettings(validators, settings, stderr):
|
465
|
+
"""Validates that the settings are valid for MSBuild or MSVS.
|
466
|
+
|
467
|
+
We currently only validate the names of the settings, not their values.
|
468
|
+
|
469
|
+
Args:
|
470
|
+
validators: A dictionary of tools and their validators.
|
471
|
+
settings: A dictionary. The key is the tool name. The values are
|
472
|
+
themselves dictionaries of settings and their values.
|
473
|
+
stderr: The stream receiving the error messages.
|
474
|
+
"""
|
475
|
+
for tool_name in settings:
|
476
|
+
if tool_name in validators:
|
477
|
+
tool_validators = validators[tool_name]
|
478
|
+
for setting, value in settings[tool_name].iteritems():
|
479
|
+
if setting in tool_validators:
|
480
|
+
try:
|
481
|
+
tool_validators[setting](value)
|
482
|
+
except ValueError, e:
|
483
|
+
print >> stderr, ('Warning: for %s/%s, %s' %
|
484
|
+
(tool_name, setting, e))
|
485
|
+
else:
|
486
|
+
print >> stderr, ('Warning: unrecognized setting %s/%s' %
|
487
|
+
(tool_name, setting))
|
488
|
+
else:
|
489
|
+
print >> stderr, ('Warning: unrecognized tool %s' % tool_name)
|
490
|
+
|
491
|
+
|
492
|
+
# MSVS and MBuild names of the tools.
|
493
|
+
_compile = _Tool('VCCLCompilerTool', 'ClCompile')
|
494
|
+
_link = _Tool('VCLinkerTool', 'Link')
|
495
|
+
_midl = _Tool('VCMIDLTool', 'Midl')
|
496
|
+
_rc = _Tool('VCResourceCompilerTool', 'ResourceCompile')
|
497
|
+
_lib = _Tool('VCLibrarianTool', 'Lib')
|
498
|
+
_manifest = _Tool('VCManifestTool', 'Manifest')
|
499
|
+
|
500
|
+
|
501
|
+
_AddTool(_compile)
|
502
|
+
_AddTool(_link)
|
503
|
+
_AddTool(_midl)
|
504
|
+
_AddTool(_rc)
|
505
|
+
_AddTool(_lib)
|
506
|
+
_AddTool(_manifest)
|
507
|
+
# Add sections only found in the MSBuild settings.
|
508
|
+
_msbuild_validators[''] = {}
|
509
|
+
_msbuild_validators['ProjectReference'] = {}
|
510
|
+
_msbuild_validators['ManifestResourceCompile'] = {}
|
511
|
+
|
512
|
+
# Descriptions of the compiler options, i.e. VCCLCompilerTool in MSVS and
|
513
|
+
# ClCompile in MSBuild.
|
514
|
+
# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\cl.xml" for
|
515
|
+
# the schema of the MSBuild ClCompile settings.
|
516
|
+
|
517
|
+
# Options that have the same name in MSVS and MSBuild
|
518
|
+
_Same(_compile, 'AdditionalIncludeDirectories', _folder_list) # /I
|
519
|
+
_Same(_compile, 'AdditionalOptions', _string_list)
|
520
|
+
_Same(_compile, 'AdditionalUsingDirectories', _folder_list) # /AI
|
521
|
+
_Same(_compile, 'AssemblerListingLocation', _file_name) # /Fa
|
522
|
+
_Same(_compile, 'BrowseInformationFile', _file_name)
|
523
|
+
_Same(_compile, 'BufferSecurityCheck', _boolean) # /GS
|
524
|
+
_Same(_compile, 'DisableLanguageExtensions', _boolean) # /Za
|
525
|
+
_Same(_compile, 'DisableSpecificWarnings', _string_list) # /wd
|
526
|
+
_Same(_compile, 'EnableFiberSafeOptimizations', _boolean) # /GT
|
527
|
+
_Same(_compile, 'EnablePREfast', _boolean) # /analyze Visible='false'
|
528
|
+
_Same(_compile, 'ExpandAttributedSource', _boolean) # /Fx
|
529
|
+
_Same(_compile, 'FloatingPointExceptions', _boolean) # /fp:except
|
530
|
+
_Same(_compile, 'ForceConformanceInForLoopScope', _boolean) # /Zc:forScope
|
531
|
+
_Same(_compile, 'ForcedIncludeFiles', _file_list) # /FI
|
532
|
+
_Same(_compile, 'ForcedUsingFiles', _file_list) # /FU
|
533
|
+
_Same(_compile, 'GenerateXMLDocumentationFiles', _boolean) # /doc
|
534
|
+
_Same(_compile, 'IgnoreStandardIncludePath', _boolean) # /X
|
535
|
+
_Same(_compile, 'MinimalRebuild', _boolean) # /Gm
|
536
|
+
_Same(_compile, 'OmitDefaultLibName', _boolean) # /Zl
|
537
|
+
_Same(_compile, 'OmitFramePointers', _boolean) # /Oy
|
538
|
+
_Same(_compile, 'PreprocessorDefinitions', _string_list) # /D
|
539
|
+
_Same(_compile, 'ProgramDataBaseFileName', _file_name) # /Fd
|
540
|
+
_Same(_compile, 'RuntimeTypeInfo', _boolean) # /GR
|
541
|
+
_Same(_compile, 'ShowIncludes', _boolean) # /showIncludes
|
542
|
+
_Same(_compile, 'SmallerTypeCheck', _boolean) # /RTCc
|
543
|
+
_Same(_compile, 'StringPooling', _boolean) # /GF
|
544
|
+
_Same(_compile, 'SuppressStartupBanner', _boolean) # /nologo
|
545
|
+
_Same(_compile, 'TreatWChar_tAsBuiltInType', _boolean) # /Zc:wchar_t
|
546
|
+
_Same(_compile, 'UndefineAllPreprocessorDefinitions', _boolean) # /u
|
547
|
+
_Same(_compile, 'UndefinePreprocessorDefinitions', _string_list) # /U
|
548
|
+
_Same(_compile, 'UseFullPaths', _boolean) # /FC
|
549
|
+
_Same(_compile, 'WholeProgramOptimization', _boolean) # /GL
|
550
|
+
_Same(_compile, 'XMLDocumentationFileName', _file_name)
|
551
|
+
|
552
|
+
_Same(_compile, 'AssemblerOutput',
|
553
|
+
_Enumeration(['NoListing',
|
554
|
+
'AssemblyCode', # /FA
|
555
|
+
'All', # /FAcs
|
556
|
+
'AssemblyAndMachineCode', # /FAc
|
557
|
+
'AssemblyAndSourceCode'])) # /FAs
|
558
|
+
_Same(_compile, 'BasicRuntimeChecks',
|
559
|
+
_Enumeration(['Default',
|
560
|
+
'StackFrameRuntimeCheck', # /RTCs
|
561
|
+
'UninitializedLocalUsageCheck', # /RTCu
|
562
|
+
'EnableFastChecks'])) # /RTC1
|
563
|
+
_Same(_compile, 'BrowseInformation',
|
564
|
+
_Enumeration(['false',
|
565
|
+
'true', # /FR
|
566
|
+
'true'])) # /Fr
|
567
|
+
_Same(_compile, 'CallingConvention',
|
568
|
+
_Enumeration(['Cdecl', # /Gd
|
569
|
+
'FastCall', # /Gr
|
570
|
+
'StdCall'])) # /Gz
|
571
|
+
_Same(_compile, 'CompileAs',
|
572
|
+
_Enumeration(['Default',
|
573
|
+
'CompileAsC', # /TC
|
574
|
+
'CompileAsCpp'])) # /TP
|
575
|
+
_Same(_compile, 'DebugInformationFormat',
|
576
|
+
_Enumeration(['', # Disabled
|
577
|
+
'OldStyle', # /Z7
|
578
|
+
None,
|
579
|
+
'ProgramDatabase', # /Zi
|
580
|
+
'EditAndContinue'])) # /ZI
|
581
|
+
_Same(_compile, 'EnableEnhancedInstructionSet',
|
582
|
+
_Enumeration(['NotSet',
|
583
|
+
'StreamingSIMDExtensions', # /arch:SSE
|
584
|
+
'StreamingSIMDExtensions2'])) # /arch:SSE2
|
585
|
+
_Same(_compile, 'ErrorReporting',
|
586
|
+
_Enumeration(['None', # /errorReport:none
|
587
|
+
'Prompt', # /errorReport:prompt
|
588
|
+
'Queue'], # /errorReport:queue
|
589
|
+
new=['Send'])) # /errorReport:send"
|
590
|
+
_Same(_compile, 'ExceptionHandling',
|
591
|
+
_Enumeration(['false',
|
592
|
+
'Sync', # /EHsc
|
593
|
+
'Async'], # /EHa
|
594
|
+
new=['SyncCThrow'])) # /EHs
|
595
|
+
_Same(_compile, 'FavorSizeOrSpeed',
|
596
|
+
_Enumeration(['Neither',
|
597
|
+
'Speed', # /Ot
|
598
|
+
'Size'])) # /Os
|
599
|
+
_Same(_compile, 'FloatingPointModel',
|
600
|
+
_Enumeration(['Precise', # /fp:precise
|
601
|
+
'Strict', # /fp:strict
|
602
|
+
'Fast'])) # /fp:fast
|
603
|
+
_Same(_compile, 'InlineFunctionExpansion',
|
604
|
+
_Enumeration(['Default',
|
605
|
+
'OnlyExplicitInline', # /Ob1
|
606
|
+
'AnySuitable'], # /Ob2
|
607
|
+
new=['Disabled'])) # /Ob0
|
608
|
+
_Same(_compile, 'Optimization',
|
609
|
+
_Enumeration(['Disabled', # /Od
|
610
|
+
'MinSpace', # /O1
|
611
|
+
'MaxSpeed', # /O2
|
612
|
+
'Full'])) # /Ox
|
613
|
+
_Same(_compile, 'RuntimeLibrary',
|
614
|
+
_Enumeration(['MultiThreaded', # /MT
|
615
|
+
'MultiThreadedDebug', # /MTd
|
616
|
+
'MultiThreadedDLL', # /MD
|
617
|
+
'MultiThreadedDebugDLL'])) # /MDd
|
618
|
+
_Same(_compile, 'StructMemberAlignment',
|
619
|
+
_Enumeration(['Default',
|
620
|
+
'1Byte', # /Zp1
|
621
|
+
'2Bytes', # /Zp2
|
622
|
+
'4Bytes', # /Zp4
|
623
|
+
'8Bytes', # /Zp8
|
624
|
+
'16Bytes'])) # /Zp16
|
625
|
+
_Same(_compile, 'WarningLevel',
|
626
|
+
_Enumeration(['TurnOffAllWarnings', # /W0
|
627
|
+
'Level1', # /W1
|
628
|
+
'Level2', # /W2
|
629
|
+
'Level3', # /W3
|
630
|
+
'Level4'], # /W4
|
631
|
+
new=['EnableAllWarnings'])) # /Wall
|
632
|
+
|
633
|
+
# Options found in MSVS that have been renamed in MSBuild.
|
634
|
+
_Renamed(_compile, 'EnableFunctionLevelLinking', 'FunctionLevelLinking',
|
635
|
+
_boolean) # /Gy
|
636
|
+
_Renamed(_compile, 'EnableIntrinsicFunctions', 'IntrinsicFunctions',
|
637
|
+
_boolean) # /Oi
|
638
|
+
_Renamed(_compile, 'KeepComments', 'PreprocessKeepComments', _boolean) # /C
|
639
|
+
_Renamed(_compile, 'ObjectFile', 'ObjectFileName', _file_name) # /Fo
|
640
|
+
_Renamed(_compile, 'OpenMP', 'OpenMPSupport', _boolean) # /openmp
|
641
|
+
_Renamed(_compile, 'PrecompiledHeaderThrough', 'PrecompiledHeaderFile',
|
642
|
+
_file_name) # Used with /Yc and /Yu
|
643
|
+
_Renamed(_compile, 'PrecompiledHeaderFile', 'PrecompiledHeaderOutputFile',
|
644
|
+
_file_name) # /Fp
|
645
|
+
_Renamed(_compile, 'UsePrecompiledHeader', 'PrecompiledHeader',
|
646
|
+
_Enumeration(['NotUsing', # VS recognized '' for this value too.
|
647
|
+
'Create', # /Yc
|
648
|
+
'Use'])) # /Yu
|
649
|
+
_Renamed(_compile, 'WarnAsError', 'TreatWarningAsError', _boolean) # /WX
|
650
|
+
|
651
|
+
_ConvertedToAdditionalOption(_compile, 'DefaultCharIsUnsigned', '/J')
|
652
|
+
|
653
|
+
# MSVS options not found in MSBuild.
|
654
|
+
_MSVSOnly(_compile, 'Detect64BitPortabilityProblems', _boolean)
|
655
|
+
_MSVSOnly(_compile, 'UseUnicodeResponseFiles', _boolean)
|
656
|
+
|
657
|
+
# MSBuild options not found in MSVS.
|
658
|
+
_MSBuildOnly(_compile, 'BuildingInIDE', _boolean)
|
659
|
+
_MSBuildOnly(_compile, 'CompileAsManaged',
|
660
|
+
_Enumeration([], new=['false',
|
661
|
+
'true', # /clr
|
662
|
+
'Pure', # /clr:pure
|
663
|
+
'Safe', # /clr:safe
|
664
|
+
'OldSyntax'])) # /clr:oldSyntax
|
665
|
+
_MSBuildOnly(_compile, 'CreateHotpatchableImage', _boolean) # /hotpatch
|
666
|
+
_MSBuildOnly(_compile, 'MultiProcessorCompilation', _boolean) # /MP
|
667
|
+
_MSBuildOnly(_compile, 'PreprocessOutputPath', _string) # /Fi
|
668
|
+
_MSBuildOnly(_compile, 'ProcessorNumber', _integer) # the number of processors
|
669
|
+
_MSBuildOnly(_compile, 'TrackerLogDirectory', _folder_name)
|
670
|
+
_MSBuildOnly(_compile, 'TreatSpecificWarningsAsErrors', _string_list) # /we
|
671
|
+
_MSBuildOnly(_compile, 'UseUnicodeForAssemblerListing', _boolean) # /FAu
|
672
|
+
|
673
|
+
# Defines a setting that needs very customized processing
|
674
|
+
_CustomGeneratePreprocessedFile(_compile, 'GeneratePreprocessedFile')
|
675
|
+
|
676
|
+
|
677
|
+
# Directives for converting MSVS VCLinkerTool to MSBuild Link.
|
678
|
+
# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\link.xml" for
|
679
|
+
# the schema of the MSBuild Link settings.
|
680
|
+
|
681
|
+
# Options that have the same name in MSVS and MSBuild
|
682
|
+
_Same(_link, 'AdditionalDependencies', _file_list)
|
683
|
+
_Same(_link, 'AdditionalLibraryDirectories', _folder_list) # /LIBPATH
|
684
|
+
# /MANIFESTDEPENDENCY:
|
685
|
+
_Same(_link, 'AdditionalManifestDependencies', _file_list)
|
686
|
+
_Same(_link, 'AdditionalOptions', _string_list)
|
687
|
+
_Same(_link, 'AddModuleNamesToAssembly', _file_list) # /ASSEMBLYMODULE
|
688
|
+
_Same(_link, 'AllowIsolation', _boolean) # /ALLOWISOLATION
|
689
|
+
_Same(_link, 'AssemblyLinkResource', _file_list) # /ASSEMBLYLINKRESOURCE
|
690
|
+
_Same(_link, 'BaseAddress', _string) # /BASE
|
691
|
+
_Same(_link, 'CLRUnmanagedCodeCheck', _boolean) # /CLRUNMANAGEDCODECHECK
|
692
|
+
_Same(_link, 'DelayLoadDLLs', _file_list) # /DELAYLOAD
|
693
|
+
_Same(_link, 'DelaySign', _boolean) # /DELAYSIGN
|
694
|
+
_Same(_link, 'EmbedManagedResourceFile', _file_list) # /ASSEMBLYRESOURCE
|
695
|
+
_Same(_link, 'EnableUAC', _boolean) # /MANIFESTUAC
|
696
|
+
_Same(_link, 'EntryPointSymbol', _string) # /ENTRY
|
697
|
+
_Same(_link, 'ForceSymbolReferences', _file_list) # /INCLUDE
|
698
|
+
_Same(_link, 'FunctionOrder', _file_name) # /ORDER
|
699
|
+
_Same(_link, 'GenerateDebugInformation', _boolean) # /DEBUG
|
700
|
+
_Same(_link, 'GenerateMapFile', _boolean) # /MAP
|
701
|
+
_Same(_link, 'HeapCommitSize', _string)
|
702
|
+
_Same(_link, 'HeapReserveSize', _string) # /HEAP
|
703
|
+
_Same(_link, 'IgnoreAllDefaultLibraries', _boolean) # /NODEFAULTLIB
|
704
|
+
_Same(_link, 'IgnoreEmbeddedIDL', _boolean) # /IGNOREIDL
|
705
|
+
_Same(_link, 'ImportLibrary', _file_name) # /IMPLIB
|
706
|
+
_Same(_link, 'KeyContainer', _file_name) # /KEYCONTAINER
|
707
|
+
_Same(_link, 'KeyFile', _file_name) # /KEYFILE
|
708
|
+
_Same(_link, 'ManifestFile', _file_name) # /ManifestFile
|
709
|
+
_Same(_link, 'MapExports', _boolean) # /MAPINFO:EXPORTS
|
710
|
+
_Same(_link, 'MapFileName', _file_name)
|
711
|
+
_Same(_link, 'MergedIDLBaseFileName', _file_name) # /IDLOUT
|
712
|
+
_Same(_link, 'MergeSections', _string) # /MERGE
|
713
|
+
_Same(_link, 'MidlCommandFile', _file_name) # /MIDL
|
714
|
+
_Same(_link, 'ModuleDefinitionFile', _file_name) # /DEF
|
715
|
+
_Same(_link, 'OutputFile', _file_name) # /OUT
|
716
|
+
_Same(_link, 'PerUserRedirection', _boolean)
|
717
|
+
_Same(_link, 'Profile', _boolean) # /PROFILE
|
718
|
+
_Same(_link, 'ProfileGuidedDatabase', _file_name) # /PGD
|
719
|
+
_Same(_link, 'ProgramDatabaseFile', _file_name) # /PDB
|
720
|
+
_Same(_link, 'RegisterOutput', _boolean)
|
721
|
+
_Same(_link, 'SetChecksum', _boolean) # /RELEASE
|
722
|
+
_Same(_link, 'StackCommitSize', _string)
|
723
|
+
_Same(_link, 'StackReserveSize', _string) # /STACK
|
724
|
+
_Same(_link, 'StripPrivateSymbols', _file_name) # /PDBSTRIPPED
|
725
|
+
_Same(_link, 'SupportUnloadOfDelayLoadedDLL', _boolean) # /DELAY:UNLOAD
|
726
|
+
_Same(_link, 'SuppressStartupBanner', _boolean) # /NOLOGO
|
727
|
+
_Same(_link, 'SwapRunFromCD', _boolean) # /SWAPRUN:CD
|
728
|
+
_Same(_link, 'TurnOffAssemblyGeneration', _boolean) # /NOASSEMBLY
|
729
|
+
_Same(_link, 'TypeLibraryFile', _file_name) # /TLBOUT
|
730
|
+
_Same(_link, 'TypeLibraryResourceID', _integer) # /TLBID
|
731
|
+
_Same(_link, 'UACUIAccess', _boolean) # /uiAccess='true'
|
732
|
+
_Same(_link, 'Version', _string) # /VERSION
|
733
|
+
|
734
|
+
_Same(_link, 'EnableCOMDATFolding', _newly_boolean) # /OPT:ICF
|
735
|
+
_Same(_link, 'FixedBaseAddress', _newly_boolean) # /FIXED
|
736
|
+
_Same(_link, 'LargeAddressAware', _newly_boolean) # /LARGEADDRESSAWARE
|
737
|
+
_Same(_link, 'OptimizeReferences', _newly_boolean) # /OPT:REF
|
738
|
+
_Same(_link, 'RandomizedBaseAddress', _newly_boolean) # /DYNAMICBASE
|
739
|
+
_Same(_link, 'TerminalServerAware', _newly_boolean) # /TSAWARE
|
740
|
+
|
741
|
+
_subsystem_enumeration = _Enumeration(
|
742
|
+
['NotSet',
|
743
|
+
'Console', # /SUBSYSTEM:CONSOLE
|
744
|
+
'Windows', # /SUBSYSTEM:WINDOWS
|
745
|
+
'Native', # /SUBSYSTEM:NATIVE
|
746
|
+
'EFI Application', # /SUBSYSTEM:EFI_APPLICATION
|
747
|
+
'EFI Boot Service Driver', # /SUBSYSTEM:EFI_BOOT_SERVICE_DRIVER
|
748
|
+
'EFI ROM', # /SUBSYSTEM:EFI_ROM
|
749
|
+
'EFI Runtime', # /SUBSYSTEM:EFI_RUNTIME_DRIVER
|
750
|
+
'WindowsCE'], # /SUBSYSTEM:WINDOWSCE
|
751
|
+
new=['POSIX']) # /SUBSYSTEM:POSIX
|
752
|
+
|
753
|
+
_target_machine_enumeration = _Enumeration(
|
754
|
+
['NotSet',
|
755
|
+
'MachineX86', # /MACHINE:X86
|
756
|
+
None,
|
757
|
+
'MachineARM', # /MACHINE:ARM
|
758
|
+
'MachineEBC', # /MACHINE:EBC
|
759
|
+
'MachineIA64', # /MACHINE:IA64
|
760
|
+
None,
|
761
|
+
'MachineMIPS', # /MACHINE:MIPS
|
762
|
+
'MachineMIPS16', # /MACHINE:MIPS16
|
763
|
+
'MachineMIPSFPU', # /MACHINE:MIPSFPU
|
764
|
+
'MachineMIPSFPU16', # /MACHINE:MIPSFPU16
|
765
|
+
None,
|
766
|
+
None,
|
767
|
+
None,
|
768
|
+
'MachineSH4', # /MACHINE:SH4
|
769
|
+
None,
|
770
|
+
'MachineTHUMB', # /MACHINE:THUMB
|
771
|
+
'MachineX64']) # /MACHINE:X64
|
772
|
+
|
773
|
+
_Same(_link, 'AssemblyDebug',
|
774
|
+
_Enumeration(['',
|
775
|
+
'true', # /ASSEMBLYDEBUG
|
776
|
+
'false'])) # /ASSEMBLYDEBUG:DISABLE
|
777
|
+
_Same(_link, 'CLRImageType',
|
778
|
+
_Enumeration(['Default',
|
779
|
+
'ForceIJWImage', # /CLRIMAGETYPE:IJW
|
780
|
+
'ForcePureILImage', # /Switch="CLRIMAGETYPE:PURE
|
781
|
+
'ForceSafeILImage'])) # /Switch="CLRIMAGETYPE:SAFE
|
782
|
+
_Same(_link, 'CLRThreadAttribute',
|
783
|
+
_Enumeration(['DefaultThreadingAttribute', # /CLRTHREADATTRIBUTE:NONE
|
784
|
+
'MTAThreadingAttribute', # /CLRTHREADATTRIBUTE:MTA
|
785
|
+
'STAThreadingAttribute'])) # /CLRTHREADATTRIBUTE:STA
|
786
|
+
_Same(_link, 'DataExecutionPrevention',
|
787
|
+
_Enumeration(['',
|
788
|
+
'false', # /NXCOMPAT:NO
|
789
|
+
'true'])) # /NXCOMPAT
|
790
|
+
_Same(_link, 'Driver',
|
791
|
+
_Enumeration(['NotSet',
|
792
|
+
'Driver', # /Driver
|
793
|
+
'UpOnly', # /DRIVER:UPONLY
|
794
|
+
'WDM'])) # /DRIVER:WDM
|
795
|
+
_Same(_link, 'LinkTimeCodeGeneration',
|
796
|
+
_Enumeration(['Default',
|
797
|
+
'UseLinkTimeCodeGeneration', # /LTCG
|
798
|
+
'PGInstrument', # /LTCG:PGInstrument
|
799
|
+
'PGOptimization', # /LTCG:PGOptimize
|
800
|
+
'PGUpdate'])) # /LTCG:PGUpdate
|
801
|
+
_Same(_link, 'ShowProgress',
|
802
|
+
_Enumeration(['NotSet',
|
803
|
+
'LinkVerbose', # /VERBOSE
|
804
|
+
'LinkVerboseLib'], # /VERBOSE:Lib
|
805
|
+
new=['LinkVerboseICF', # /VERBOSE:ICF
|
806
|
+
'LinkVerboseREF', # /VERBOSE:REF
|
807
|
+
'LinkVerboseSAFESEH', # /VERBOSE:SAFESEH
|
808
|
+
'LinkVerboseCLR'])) # /VERBOSE:CLR
|
809
|
+
_Same(_link, 'SubSystem', _subsystem_enumeration)
|
810
|
+
_Same(_link, 'TargetMachine', _target_machine_enumeration)
|
811
|
+
_Same(_link, 'UACExecutionLevel',
|
812
|
+
_Enumeration(['AsInvoker', # /level='asInvoker'
|
813
|
+
'HighestAvailable', # /level='highestAvailable'
|
814
|
+
'RequireAdministrator'])) # /level='requireAdministrator'
|
815
|
+
|
816
|
+
|
817
|
+
# Options found in MSVS that have been renamed in MSBuild.
|
818
|
+
_Renamed(_link, 'ErrorReporting', 'LinkErrorReporting',
|
819
|
+
_Enumeration(['NoErrorReport', # /ERRORREPORT:NONE
|
820
|
+
'PromptImmediately', # /ERRORREPORT:PROMPT
|
821
|
+
'QueueForNextLogin'], # /ERRORREPORT:QUEUE
|
822
|
+
new=['SendErrorReport'])) # /ERRORREPORT:SEND
|
823
|
+
_Renamed(_link, 'IgnoreDefaultLibraryNames', 'IgnoreSpecificDefaultLibraries',
|
824
|
+
_file_list) # /NODEFAULTLIB
|
825
|
+
_Renamed(_link, 'ResourceOnlyDLL', 'NoEntryPoint', _boolean) # /NOENTRY
|
826
|
+
_Renamed(_link, 'SwapRunFromNet', 'SwapRunFromNET', _boolean) # /SWAPRUN:NET
|
827
|
+
|
828
|
+
_Moved(_link, 'GenerateManifest', '', _boolean)
|
829
|
+
_Moved(_link, 'IgnoreImportLibrary', '', _boolean)
|
830
|
+
_Moved(_link, 'LinkIncremental', '', _newly_boolean)
|
831
|
+
_Moved(_link, 'LinkLibraryDependencies', 'ProjectReference', _boolean)
|
832
|
+
_Moved(_link, 'UseLibraryDependencyInputs', 'ProjectReference', _boolean)
|
833
|
+
|
834
|
+
# MSVS options not found in MSBuild.
|
835
|
+
_MSVSOnly(_link, 'OptimizeForWindows98', _newly_boolean)
|
836
|
+
_MSVSOnly(_link, 'UseUnicodeResponseFiles', _boolean)
|
837
|
+
# These settings generate correctly in the MSVS output files when using
|
838
|
+
# e.g. DelayLoadDLLs! or AdditionalDependencies! to exclude files from
|
839
|
+
# configuration entries, but result in spurious artifacts which can be
|
840
|
+
# safely ignored here. See crbug.com/246570
|
841
|
+
_MSVSOnly(_link, 'AdditionalLibraryDirectories_excluded', _folder_list)
|
842
|
+
_MSVSOnly(_link, 'DelayLoadDLLs_excluded', _file_list)
|
843
|
+
_MSVSOnly(_link, 'AdditionalDependencies_excluded', _file_list)
|
844
|
+
|
845
|
+
# MSBuild options not found in MSVS.
|
846
|
+
_MSBuildOnly(_link, 'BuildingInIDE', _boolean)
|
847
|
+
_MSBuildOnly(_link, 'ImageHasSafeExceptionHandlers', _boolean) # /SAFESEH
|
848
|
+
_MSBuildOnly(_link, 'LinkDLL', _boolean) # /DLL Visible='false'
|
849
|
+
_MSBuildOnly(_link, 'LinkStatus', _boolean) # /LTCG:STATUS
|
850
|
+
_MSBuildOnly(_link, 'PreventDllBinding', _boolean) # /ALLOWBIND
|
851
|
+
_MSBuildOnly(_link, 'SupportNobindOfDelayLoadedDLL', _boolean) # /DELAY:NOBIND
|
852
|
+
_MSBuildOnly(_link, 'TrackerLogDirectory', _folder_name)
|
853
|
+
_MSBuildOnly(_link, 'TreatLinkerWarningAsErrors', _boolean) # /WX
|
854
|
+
_MSBuildOnly(_link, 'MinimumRequiredVersion', _string)
|
855
|
+
_MSBuildOnly(_link, 'MSDOSStubFileName', _file_name) # /STUB Visible='false'
|
856
|
+
_MSBuildOnly(_link, 'SectionAlignment', _integer) # /ALIGN
|
857
|
+
_MSBuildOnly(_link, 'SpecifySectionAttributes', _string) # /SECTION
|
858
|
+
_MSBuildOnly(_link, 'ForceFileOutput',
|
859
|
+
_Enumeration([], new=['Enabled', # /FORCE
|
860
|
+
# /FORCE:MULTIPLE
|
861
|
+
'MultiplyDefinedSymbolOnly',
|
862
|
+
'UndefinedSymbolOnly'])) # /FORCE:UNRESOLVED
|
863
|
+
_MSBuildOnly(_link, 'CreateHotPatchableImage',
|
864
|
+
_Enumeration([], new=['Enabled', # /FUNCTIONPADMIN
|
865
|
+
'X86Image', # /FUNCTIONPADMIN:5
|
866
|
+
'X64Image', # /FUNCTIONPADMIN:6
|
867
|
+
'ItaniumImage'])) # /FUNCTIONPADMIN:16
|
868
|
+
_MSBuildOnly(_link, 'CLRSupportLastError',
|
869
|
+
_Enumeration([], new=['Enabled', # /CLRSupportLastError
|
870
|
+
'Disabled', # /CLRSupportLastError:NO
|
871
|
+
# /CLRSupportLastError:SYSTEMDLL
|
872
|
+
'SystemDlls']))
|
873
|
+
|
874
|
+
|
875
|
+
# Directives for converting VCResourceCompilerTool to ResourceCompile.
|
876
|
+
# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\rc.xml" for
|
877
|
+
# the schema of the MSBuild ResourceCompile settings.
|
878
|
+
|
879
|
+
_Same(_rc, 'AdditionalOptions', _string_list)
|
880
|
+
_Same(_rc, 'AdditionalIncludeDirectories', _folder_list) # /I
|
881
|
+
_Same(_rc, 'Culture', _Integer(msbuild_base=16))
|
882
|
+
_Same(_rc, 'IgnoreStandardIncludePath', _boolean) # /X
|
883
|
+
_Same(_rc, 'PreprocessorDefinitions', _string_list) # /D
|
884
|
+
_Same(_rc, 'ResourceOutputFileName', _string) # /fo
|
885
|
+
_Same(_rc, 'ShowProgress', _boolean) # /v
|
886
|
+
# There is no UI in VisualStudio 2008 to set the following properties.
|
887
|
+
# However they are found in CL and other tools. Include them here for
|
888
|
+
# completeness, as they are very likely to have the same usage pattern.
|
889
|
+
_Same(_rc, 'SuppressStartupBanner', _boolean) # /nologo
|
890
|
+
_Same(_rc, 'UndefinePreprocessorDefinitions', _string_list) # /u
|
891
|
+
|
892
|
+
# MSBuild options not found in MSVS.
|
893
|
+
_MSBuildOnly(_rc, 'NullTerminateStrings', _boolean) # /n
|
894
|
+
_MSBuildOnly(_rc, 'TrackerLogDirectory', _folder_name)
|
895
|
+
|
896
|
+
|
897
|
+
# Directives for converting VCMIDLTool to Midl.
|
898
|
+
# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\midl.xml" for
|
899
|
+
# the schema of the MSBuild Midl settings.
|
900
|
+
|
901
|
+
_Same(_midl, 'AdditionalIncludeDirectories', _folder_list) # /I
|
902
|
+
_Same(_midl, 'AdditionalOptions', _string_list)
|
903
|
+
_Same(_midl, 'CPreprocessOptions', _string) # /cpp_opt
|
904
|
+
_Same(_midl, 'ErrorCheckAllocations', _boolean) # /error allocation
|
905
|
+
_Same(_midl, 'ErrorCheckBounds', _boolean) # /error bounds_check
|
906
|
+
_Same(_midl, 'ErrorCheckEnumRange', _boolean) # /error enum
|
907
|
+
_Same(_midl, 'ErrorCheckRefPointers', _boolean) # /error ref
|
908
|
+
_Same(_midl, 'ErrorCheckStubData', _boolean) # /error stub_data
|
909
|
+
_Same(_midl, 'GenerateStublessProxies', _boolean) # /Oicf
|
910
|
+
_Same(_midl, 'GenerateTypeLibrary', _boolean)
|
911
|
+
_Same(_midl, 'HeaderFileName', _file_name) # /h
|
912
|
+
_Same(_midl, 'IgnoreStandardIncludePath', _boolean) # /no_def_idir
|
913
|
+
_Same(_midl, 'InterfaceIdentifierFileName', _file_name) # /iid
|
914
|
+
_Same(_midl, 'MkTypLibCompatible', _boolean) # /mktyplib203
|
915
|
+
_Same(_midl, 'OutputDirectory', _string) # /out
|
916
|
+
_Same(_midl, 'PreprocessorDefinitions', _string_list) # /D
|
917
|
+
_Same(_midl, 'ProxyFileName', _file_name) # /proxy
|
918
|
+
_Same(_midl, 'RedirectOutputAndErrors', _file_name) # /o
|
919
|
+
_Same(_midl, 'SuppressStartupBanner', _boolean) # /nologo
|
920
|
+
_Same(_midl, 'TypeLibraryName', _file_name) # /tlb
|
921
|
+
_Same(_midl, 'UndefinePreprocessorDefinitions', _string_list) # /U
|
922
|
+
_Same(_midl, 'WarnAsError', _boolean) # /WX
|
923
|
+
|
924
|
+
_Same(_midl, 'DefaultCharType',
|
925
|
+
_Enumeration(['Unsigned', # /char unsigned
|
926
|
+
'Signed', # /char signed
|
927
|
+
'Ascii'])) # /char ascii7
|
928
|
+
_Same(_midl, 'TargetEnvironment',
|
929
|
+
_Enumeration(['NotSet',
|
930
|
+
'Win32', # /env win32
|
931
|
+
'Itanium', # /env ia64
|
932
|
+
'X64'])) # /env x64
|
933
|
+
_Same(_midl, 'EnableErrorChecks',
|
934
|
+
_Enumeration(['EnableCustom',
|
935
|
+
'None', # /error none
|
936
|
+
'All'])) # /error all
|
937
|
+
_Same(_midl, 'StructMemberAlignment',
|
938
|
+
_Enumeration(['NotSet',
|
939
|
+
'1', # Zp1
|
940
|
+
'2', # Zp2
|
941
|
+
'4', # Zp4
|
942
|
+
'8'])) # Zp8
|
943
|
+
_Same(_midl, 'WarningLevel',
|
944
|
+
_Enumeration(['0', # /W0
|
945
|
+
'1', # /W1
|
946
|
+
'2', # /W2
|
947
|
+
'3', # /W3
|
948
|
+
'4'])) # /W4
|
949
|
+
|
950
|
+
_Renamed(_midl, 'DLLDataFileName', 'DllDataFileName', _file_name) # /dlldata
|
951
|
+
_Renamed(_midl, 'ValidateParameters', 'ValidateAllParameters',
|
952
|
+
_boolean) # /robust
|
953
|
+
|
954
|
+
# MSBuild options not found in MSVS.
|
955
|
+
_MSBuildOnly(_midl, 'ApplicationConfigurationMode', _boolean) # /app_config
|
956
|
+
_MSBuildOnly(_midl, 'ClientStubFile', _file_name) # /cstub
|
957
|
+
_MSBuildOnly(_midl, 'GenerateClientFiles',
|
958
|
+
_Enumeration([], new=['Stub', # /client stub
|
959
|
+
'None'])) # /client none
|
960
|
+
_MSBuildOnly(_midl, 'GenerateServerFiles',
|
961
|
+
_Enumeration([], new=['Stub', # /client stub
|
962
|
+
'None'])) # /client none
|
963
|
+
_MSBuildOnly(_midl, 'LocaleID', _integer) # /lcid DECIMAL
|
964
|
+
_MSBuildOnly(_midl, 'ServerStubFile', _file_name) # /sstub
|
965
|
+
_MSBuildOnly(_midl, 'SuppressCompilerWarnings', _boolean) # /no_warn
|
966
|
+
_MSBuildOnly(_midl, 'TrackerLogDirectory', _folder_name)
|
967
|
+
_MSBuildOnly(_midl, 'TypeLibFormat',
|
968
|
+
_Enumeration([], new=['NewFormat', # /newtlb
|
969
|
+
'OldFormat'])) # /oldtlb
|
970
|
+
|
971
|
+
|
972
|
+
# Directives for converting VCLibrarianTool to Lib.
|
973
|
+
# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\lib.xml" for
|
974
|
+
# the schema of the MSBuild Lib settings.
|
975
|
+
|
976
|
+
_Same(_lib, 'AdditionalDependencies', _file_list)
|
977
|
+
_Same(_lib, 'AdditionalLibraryDirectories', _folder_list) # /LIBPATH
|
978
|
+
_Same(_lib, 'AdditionalOptions', _string_list)
|
979
|
+
_Same(_lib, 'ExportNamedFunctions', _string_list) # /EXPORT
|
980
|
+
_Same(_lib, 'ForceSymbolReferences', _string) # /INCLUDE
|
981
|
+
_Same(_lib, 'IgnoreAllDefaultLibraries', _boolean) # /NODEFAULTLIB
|
982
|
+
_Same(_lib, 'IgnoreSpecificDefaultLibraries', _file_list) # /NODEFAULTLIB
|
983
|
+
_Same(_lib, 'ModuleDefinitionFile', _file_name) # /DEF
|
984
|
+
_Same(_lib, 'OutputFile', _file_name) # /OUT
|
985
|
+
_Same(_lib, 'SuppressStartupBanner', _boolean) # /NOLOGO
|
986
|
+
_Same(_lib, 'UseUnicodeResponseFiles', _boolean)
|
987
|
+
_Same(_lib, 'LinkTimeCodeGeneration', _boolean) # /LTCG
|
988
|
+
|
989
|
+
# TODO(jeanluc) _link defines the same value that gets moved to
|
990
|
+
# ProjectReference. We may want to validate that they are consistent.
|
991
|
+
_Moved(_lib, 'LinkLibraryDependencies', 'ProjectReference', _boolean)
|
992
|
+
|
993
|
+
# TODO(jeanluc) I don't think these are genuine settings but byproducts of Gyp.
|
994
|
+
_MSVSOnly(_lib, 'AdditionalLibraryDirectories_excluded', _folder_list)
|
995
|
+
|
996
|
+
_MSBuildOnly(_lib, 'DisplayLibrary', _string) # /LIST Visible='false'
|
997
|
+
_MSBuildOnly(_lib, 'ErrorReporting',
|
998
|
+
_Enumeration([], new=['PromptImmediately', # /ERRORREPORT:PROMPT
|
999
|
+
'QueueForNextLogin', # /ERRORREPORT:QUEUE
|
1000
|
+
'SendErrorReport', # /ERRORREPORT:SEND
|
1001
|
+
'NoErrorReport'])) # /ERRORREPORT:NONE
|
1002
|
+
_MSBuildOnly(_lib, 'MinimumRequiredVersion', _string)
|
1003
|
+
_MSBuildOnly(_lib, 'Name', _file_name) # /NAME
|
1004
|
+
_MSBuildOnly(_lib, 'RemoveObjects', _file_list) # /REMOVE
|
1005
|
+
_MSBuildOnly(_lib, 'SubSystem', _subsystem_enumeration)
|
1006
|
+
_MSBuildOnly(_lib, 'TargetMachine', _target_machine_enumeration)
|
1007
|
+
_MSBuildOnly(_lib, 'TrackerLogDirectory', _folder_name)
|
1008
|
+
_MSBuildOnly(_lib, 'TreatLibWarningAsErrors', _boolean) # /WX
|
1009
|
+
_MSBuildOnly(_lib, 'Verbose', _boolean)
|
1010
|
+
|
1011
|
+
|
1012
|
+
# Directives for converting VCManifestTool to Mt.
|
1013
|
+
# See "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\1033\mt.xml" for
|
1014
|
+
# the schema of the MSBuild Lib settings.
|
1015
|
+
|
1016
|
+
# Options that have the same name in MSVS and MSBuild
|
1017
|
+
_Same(_manifest, 'AdditionalManifestFiles', _file_list) # /manifest
|
1018
|
+
_Same(_manifest, 'AdditionalOptions', _string_list)
|
1019
|
+
_Same(_manifest, 'AssemblyIdentity', _string) # /identity:
|
1020
|
+
_Same(_manifest, 'ComponentFileName', _file_name) # /dll
|
1021
|
+
_Same(_manifest, 'GenerateCatalogFiles', _boolean) # /makecdfs
|
1022
|
+
_Same(_manifest, 'InputResourceManifests', _string) # /inputresource
|
1023
|
+
_Same(_manifest, 'OutputManifestFile', _file_name) # /out
|
1024
|
+
_Same(_manifest, 'RegistrarScriptFile', _file_name) # /rgs
|
1025
|
+
_Same(_manifest, 'ReplacementsFile', _file_name) # /replacements
|
1026
|
+
_Same(_manifest, 'SuppressStartupBanner', _boolean) # /nologo
|
1027
|
+
_Same(_manifest, 'TypeLibraryFile', _file_name) # /tlb:
|
1028
|
+
_Same(_manifest, 'UpdateFileHashes', _boolean) # /hashupdate
|
1029
|
+
_Same(_manifest, 'UpdateFileHashesSearchPath', _file_name)
|
1030
|
+
_Same(_manifest, 'VerboseOutput', _boolean) # /verbose
|
1031
|
+
|
1032
|
+
# Options that have moved location.
|
1033
|
+
_MovedAndRenamed(_manifest, 'ManifestResourceFile',
|
1034
|
+
'ManifestResourceCompile',
|
1035
|
+
'ResourceOutputFileName',
|
1036
|
+
_file_name)
|
1037
|
+
_Moved(_manifest, 'EmbedManifest', '', _boolean)
|
1038
|
+
|
1039
|
+
# MSVS options not found in MSBuild.
|
1040
|
+
_MSVSOnly(_manifest, 'DependencyInformationFile', _file_name)
|
1041
|
+
_MSVSOnly(_manifest, 'UseFAT32Workaround', _boolean)
|
1042
|
+
_MSVSOnly(_manifest, 'UseUnicodeResponseFiles', _boolean)
|
1043
|
+
|
1044
|
+
# MSBuild options not found in MSVS.
|
1045
|
+
_MSBuildOnly(_manifest, 'EnableDPIAwareness', _boolean)
|
1046
|
+
_MSBuildOnly(_manifest, 'GenerateCategoryTags', _boolean) # /category
|
1047
|
+
_MSBuildOnly(_manifest, 'ManifestFromManagedAssembly',
|
1048
|
+
_file_name) # /managedassemblyname
|
1049
|
+
_MSBuildOnly(_manifest, 'OutputResourceManifests', _string) # /outputresource
|
1050
|
+
_MSBuildOnly(_manifest, 'SuppressDependencyElement', _boolean) # /nodependency
|
1051
|
+
_MSBuildOnly(_manifest, 'TrackerLogDirectory', _folder_name)
|