diff options
| author | Billy O'Neal <bion@microsoft.com> | 2020-10-28 14:18:07 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-28 14:18:07 -0700 |
| commit | 09a647a5261e981cbbc8219292c838490ed0b06f (patch) | |
| tree | 9d18df2f364a3d2bbaa156d76f5d265fc442c2f3 /toolsrc/include | |
| parent | ead8d6bad477f0b075f31097673c3e440356cd3b (diff) | |
| download | vcpkg-09a647a5261e981cbbc8219292c838490ed0b06f.tar.gz vcpkg-09a647a5261e981cbbc8219292c838490ed0b06f.zip | |
Delete use of vcpkg_test_cmake and vcpkg_common_functions. (#13065)
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/build.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/build.h b/toolsrc/include/vcpkg/build.h index 4a3b39638..4cbde1cb1 100644 --- a/toolsrc/include/vcpkg/build.h +++ b/toolsrc/include/vcpkg/build.h @@ -133,6 +133,12 @@ namespace vcpkg::Build YES }; + enum class BackcompatFeatures + { + ALLOW = 0, + PROHIBIT + }; + struct BuildPackageOptions { UseHeadVersion use_head_version; @@ -144,6 +150,7 @@ namespace vcpkg::Build DownloadTool download_tool; PurgeDecompressFailure purge_decompress_failure; Editable editable; + BackcompatFeatures backcompat_features; }; static constexpr BuildPackageOptions default_build_package_options{ @@ -156,6 +163,20 @@ namespace vcpkg::Build Build::DownloadTool::BUILT_IN, Build::PurgeDecompressFailure::YES, Build::Editable::NO, + Build::BackcompatFeatures::ALLOW, + }; + + static constexpr BuildPackageOptions backcompat_prohibiting_package_options{ + Build::UseHeadVersion::NO, + Build::AllowDownloads::YES, + Build::OnlyDownloads::NO, + Build::CleanBuildtrees::YES, + Build::CleanPackages::YES, + Build::CleanDownloads::NO, + Build::DownloadTool::BUILT_IN, + Build::PurgeDecompressFailure::YES, + Build::Editable::NO, + Build::BackcompatFeatures::PROHIBIT, }; static constexpr std::array<BuildResult, 6> BUILD_RESULT_VALUES = { |
