aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src
AgeCommit message (Collapse)Author
2020-05-15[vcpkg] Avoid naming Policheck sensitive term 'Virgin Islands' (#11339)Billy O'Neal
2020-05-14[vcpkg] Turn on tests and PREfast in CI, and fix tests to pass. (#11239)Billy O'Neal
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-05-13[vcpkg] Fix nuget package import failed. (#11093)shihaonan369
* fix bug that caused exported nuget package import failure. * Give priority to nuget package to set $(VcpkgRoot). * [vcpkg] Remove trailing whitespace * fix nuget package import failed Co-authored-by: 施浩男 <shihaonan@zhongli360.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-05-11[vcpkg] Resolve --overlay-ports is only working for relative parths since ↵Tobias Funk
fix… (#11302) * Resolve --overlay-ports is only working for relative parths since fix for https://github.com/microsoft/vcpkg/issues/10771 Fixes https://github.com/microsoft/vcpkg/issues/11301 * use auto instead of fs::path
2020-05-08[vcpkg] Adding support for finding VS2019 by environment variable (#10760)Arsen Tufankjian
* Fixing build with VS2019 * Added support for finding VS2019 by VS160COMNTOOLS env var * [vcpkg] Explicitly handle trailing backslash in VS140 path. * [vcpkg] Defer instance validation for VS160COMNTOOLS Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-05-08[vcpkg] Resolve relative overlay ports to the current working directory. ↵Robert Schumacher
(#11233) Fixes #10771.
2020-05-07[vcpkg] Restrict telemetry uploads to TLS 1.2 (#11213)Billy O'Neal
* [vcpkg] Restrict telemetry uploads to TLS 1.2, as required by Azure security policy. Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-05-06[vcpkg] always pass VSCMD_SKIP_SENDTELEMETRY=1 (#11202)nicole mazzuca
Fixes #10468
2020-05-04[vcpkg] fix bug in Filesystem::absolute (#11170)nicole mazzuca
* [vcpkg] fix bug in Filesystem::absolute * flip the conditional for billy
2020-04-30[vcpkg] Warn on unmatched removal with reasonable alternative (#11083)Robert Schumacher
2020-04-29[vcpkg] Correctly record default feature list in BinaryParagraphs. Fixes ↵Robert Schumacher
#10678. (#11085)
2020-04-29[vcpkg] Small touchups for vcpkg unit tests (#11068)Martin Hořeňovský
* Do not disable expression decomposition in some optional tests The tests are trivial enough that it is unlikely to come useful, but the old usage is bad practice. * Run tests in random order This should prevent committing tests that are run-order dependent, or at least shake them out eventually in CI.
2020-04-29[vcpkg] Add support for VCPKG_BINARY_SOURCES and --x-binarysource=<> (#10476)Robert Schumacher
* [vcpkg] Add support for VCPKG_BINARY_SOURCES and --binarysource=<> * [vcpkg] Rename --binarysource to --x-binarysource to denote internal/experimental * [vcpkg] Address review comments & add tests for BinaryConfigParser * [vcpkg] Replace do {} while(1); with for(;;) Avoids conditional expresion is constant warnings * [vcpkg] Invert if/else * [vcpkg] Fix warning in export.prefab.cpp * [vcpkg] Resolve merge regressions
2020-04-23[vcpkg] Fix toolsrc CMake build error (#10973)NancyLi1013
2020-04-17[vcpkg] Add initial JSON support (#10521)nicole mazzuca
* [vcpkg] Add initial JSON support This adds a JSON parser, as well as the amount of unicode support required for JSON parsing to work according to the specification. In the future, I hope to rewrite our existing XML files into JSON. Additionally, as a drive-by, we've added the following: * add /wd4800 to pragmas.h -- this is a "performance warning", for when you implicitly convert pointers or integers to bool, and shouldn't be an issue for us. * Switched Parse::ParserBase to read unicode (as utf-8), as opposed to ASCII * Building again under VCPKG_DEVELOPMENT_WARNINGS, yay!
2020-04-17[vcpkg] Add x-set-installed command (#10817)nicole mazzuca
This command takes a list of ports, and causes the final state of the installed directory to be as-if one ran the install on an empty installed directory (removing any unnecessary packages). This is especially useful with the new `--x-install-root` option, which allows one to set the `installed` directory for vcpkg to use. Additionally, as a drive-by, we do some `stdfs` clean-up and add a `.is_feature()` member function to BinaryParagraph (as opposed to checking for `.feature().empty()`, which is far less clear to read). This feature is experimental.
2020-04-14[vcpkg] Clean up CMake build system (#10834)nicole mazzuca
There are quite a few changes to the CMake build system packaged up into one set here: * Added `toolsrc/cmake/utilities.cmake`, which contains the following: * `vcpkg_detect_compiler` -- get the name of the C++ compiler, as one of {gcc, clang, msvc} * `vcpkg_detect_standard_library` -- get the name of the standard library we're linking to, as one of {libstdc++, libc++, msvc-stl} * `vcpkg_detect_std_filesystem` -- figure out how to link and call into C++17's filesystem; whether one needs to link to `stdc++fs` or `c++fs`, and whether to use `<filesystem>` or `<experimental/filesystem>`. * Added a `VCPKG_WARNINGS_AS_ERRORS`, split off from `VCPKG_DEVELOPMENT_WARNINGS`, which allows one to use the development warnings without passing -Werror * Rename `DEFINE_DISABLE_METRICS` to `VCPKG_DISABLE_METRICS` -- the former will now print a deprecation message and set the latter. * Now, print a deprecation message on `WERROR`; it doesn't do anything since the behavior it requested is now the default. * Pass `-std=c++17` if the compiler allows it, instead of `-std=c++1z` * Do some code movement * Pass `USE_STD_FILESYSTEM` if possible, instead of only on minGW * Renamed to `VCPKG_USE_STD_FILESYSTEM` Additionally, we now pass `/W4` in Debug mode on x86 in the Visual Studio build system; this brings it in line with the CMake build system, and the x64 Visual Studio build system. And finally, we make some minor code changes to support compiling in VCPKG_DEVELOPMENT_WARNINGS mode.
2020-04-09[vcpkg] New policy: SKIP_ARCHITECTURE_CHECK. (#10398)Alexander Neumann
* New policy: SKIP_DLL_ARCHITECTURE_CHECK. The check only works if MS link.exe is used otherwise the second linker member is missing (according to the observed errors) * rename to VCPKG_POLICY_SKIP_ARCHITECTURE_CHECK since the dll check was ok but the lib check was failing. * fix indentation * move the if to a better position.
2020-04-09[vcpkg-test] Fix the check for ability to make symlinks (#10543)nicole mazzuca
The old check checked to see if the computer was in developer mode _OR_ allowed sideloading apps, but we want _only_ developer mode.
2020-04-09[vcpkg] Correct UInt128 code 😇 (#10583)nicole mazzuca
* [vcpkg] Correct UInt128 code 😇 `UInt128::operator<<(x, y)` should clear the bottom 64 bits of `x` if `y >= 64`; however, we don't do this, and so we duplicate `x`'s bottom bits into `x.top` instead of moving them. Similarly, we have the opposite problem for `UInt128::operator>>`. This commit fixes these latent bugs, which we weren't hitting because the thing we use them for never actually shifts more than 64 bits.
2020-04-06Android Support: Exporting to Android Archive (AAR) (#10271)atkawa7
* added android triplets * added android support to vcpkg * added export directories to git ignore * fix libraries naming * added vckpg sources to visual studio project files * rename file location * issue with std::string fs:path copy initialization * format path on VStudio * fix checks format cannot work on fs::path * support header only libraries * support using architecture instead of triplets * added prefab support * added debug logs and prefab debug flag * added support for empty packages i.e openssl
2020-04-03[vcpkg] Fix spec instance name (#10660)Phoebe
* [vcpkg] Fix spec instance name * Change cub version for testing the changes * Add vulkan-hpp to test
2020-04-01vcpkg_from_git: Add support for git over ssh (#9446)Marc Boucek
* vcpkg_from_git: Add support for git over ssh * vcpkg_from_git: append ssh bin directory to path * vcpkg_from_git: fix function signature on non windows platforms * Revert "vcpkg_from_git: fix function signature on non windows platforms" This reverts commit 0d608ee5911d2ba274e782a21dfe77a502a39053. * Revert "vcpkg_from_git: append ssh bin directory to path" This reverts commit 377ce3fae1e2c085a5da7ace8185624a345a511b. * Partial Revert "vcpkg_from_git: Add support for git over ssh" This partially reverts commit 9b81b16c4ccd3d8646d97e66234566a07af8a308. Co-authored-by: Marc Boucek <marc.boucek@native-instruments.de> Co-authored-by: Marc Boucek <marc.boucek@posteo.net>
2020-03-27[vcpkg] Add the possibility to load vcvars.bat with external toolchain. ↵Alexander Neumann
(#10399) * Add VCPKG_LOAD_VCVARS_ENV allow loading vcvars.bat if an external toolchain file is used. * add documentation
2020-03-25[vcpkg] Improve common case of ignoring filesystem errors (#10557)Robert Schumacher
2020-03-25[vcpkg-help] Reflow and small cleanups (#10477)Robert Schumacher
2020-03-19Merge pull request #10372 from ras0219-msft/dev/roschuma/jobsRobert Schumacher
[vcpkg] Introduce Job Objects to improve ctrl-c performance on Windows
2020-03-19Merge pull request #10032 from ras0219-msft/dev/roschuma/compute-all-abisRobert Schumacher
[vcpkg] Compute ABIs upfront instead of just-in-time
2020-03-18[vcpkg] Fill in feature lists during CI reportingRobert Schumacher
2020-03-18[vcpkg] Move package abi access after they have been computedRobert Schumacher
2020-03-18[vcpkg] Write abi information to generated test resultsRobert Schumacher
2020-03-18[vcpkg] Use enum class for RestoreResultRobert Schumacher
2020-03-17[vcpkg-env] Restore previous behavior of `cmd /c <arg>`Robert Schumacher
2020-03-16[vcpkg] Implement a warning when running in a mismatched Visual Studio promptBilly O'Neal
2020-03-13[vcpkg] Fix build for non-windowsRobert Schumacher
2020-03-13[vcpkg] Fix tool lookup without `which` (#10375)nicole mazzuca
On Linux and macOS, if `which` is not installed (notably in Amazon's amazonlinux docker base image), vcpkg fails to find system-installed versions of tools. This is an issue when we don't attempt to install our own versions of the tools, like with git (we fail to find any version of git, and thus can't install any ports which come from a git repository). Fixes #9927
2020-03-12Reorder []s.Billy Robert O'Neal III
2020-03-10Add "vcvarsall" support.Billy Robert O'Neal III
2020-03-10Implement a warning when running vcpkg inside a developer command prompt if ↵Billy Robert O'Neal III
the set of packages to install all target a different architecture than the prompt.
2020-03-10[vcpkg] Introduce Job Objects to improve ctrl-c performance on WindowsRobert Schumacher
2020-03-10[vcpkg-export-nuget] Fix a import bug of nuget package, give priority to ↵shihaonan369
nuget package to set $(VcpkgRoot). (#6214) * fix bug that caused exported nuget package import failure. * Give priority to nuget package to set $(VcpkgRoot). * [vcpkg] Remove trailing whitespace Co-authored-by: 施浩男 <shihaonan@zhongli360.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-03-10[vcpkg] Added command line switch --all-installed to allow exporting of all ↵miseri
packages without needing to specify individual packages (#10304) * Added command line switch --all-installed to allow exporting of all packages without needing to specify individual packages * Changed --all-installed to --x-all-installed https://github.com/microsoft/vcpkg/pull/10304 * [vcpkg] Clang-format export.cpp Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2020-03-09Merge remote-tracking branch 'origin/master' into HEADRobert Schumacher
2020-03-03Fix log write failure when installing port for the first time (#10287)Jack·Boos·Yu
2020-02-24[vcpkg] Fix issue #9916; `vcpkg upgrade` did not `load_tag_vars()` (#10202)Robert Schumacher
2020-02-13[vcpkg] Record output from build process into log file (#10063)Robert Schumacher
2020-02-12Add binarycaching.(h|cpp) to project filesVictor Romero
2020-02-11[vcpkg] Compute all ABIs upfront instead of during build_package()Robert Schumacher
2020-02-11[vcpkg] Extract binary caching functionality into separate interfaceRobert Schumacher
2020-02-09[vcpkg] Remove superfluous BuildPackageConfig struct (#9997)Robert Schumacher
BuildPackageConfig held essentially the same information as InstallPlanAction, so deduplicate