aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorras0219 <533828+ras0219@users.noreply.github.com>2020-07-07 13:53:19 -0700
committerGitHub <noreply@github.com>2020-07-07 13:53:19 -0700
commitf9bdf139535f25dd0847fecff22a1c8c606da613 (patch)
tree9ffe023676b93d7f4bd4400dced790d96b3ac906 /toolsrc/include
parent12333a6b96848445fd04b19a8f7e00cdaf2ad0b6 (diff)
downloadvcpkg-f9bdf139535f25dd0847fecff22a1c8c606da613.tar.gz
vcpkg-f9bdf139535f25dd0847fecff22a1c8c606da613.zip
[vcpkg] Implement --editable (#12200)
--editable suppresses binary caching and source re-extraction for packages listed on the command line (similar to --head). This fundamentally changes the port maintenance loop, so several example documents were updated. To avoid users having substantial changes suddenly destroyed by forgetting to pass --editable, "clean" sources have different extract locations. The undocumented command `build` implies `--editable`. Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/build.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/build.h b/toolsrc/include/vcpkg/build.h
index 9d4e17eae..5d29b0bc3 100644
--- a/toolsrc/include/vcpkg/build.h
+++ b/toolsrc/include/vcpkg/build.h
@@ -128,6 +128,12 @@ namespace vcpkg::Build
YES
};
+ enum class Editable
+ {
+ NO = 0,
+ YES
+ };
+
struct BuildPackageOptions
{
UseHeadVersion use_head_version;
@@ -138,6 +144,7 @@ namespace vcpkg::Build
CleanDownloads clean_downloads;
DownloadTool download_tool;
PurgeDecompressFailure purge_decompress_failure;
+ Editable editable;
};
static constexpr BuildPackageOptions default_build_package_options{
@@ -149,6 +156,7 @@ namespace vcpkg::Build
Build::CleanDownloads::NO,
Build::DownloadTool::BUILT_IN,
Build::PurgeDecompressFailure::YES,
+ Build::Editable::NO,
};
static constexpr std::array<BuildResult, 6> BUILD_RESULT_VALUES = {