From 17623739df4796353d5eb4c9a2ec513c679022e0 Mon Sep 17 00:00:00 2001 From: Sean Warren Date: Thu, 23 May 2019 14:24:02 -0400 Subject: [toolsrc] Optionally allow vcpkg to clean after each build (#6522) * [toolsrc] Optionally allow vcpkg to clean packages, buildtrees and downloads after each build Adds switch --clean-after-build * [toolsrc] Clarify that --clean-after-build deletes downloads * [toolsrc] Revert changes to ci download caching behaviour --- toolsrc/include/vcpkg/build.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'toolsrc/include') diff --git a/toolsrc/include/vcpkg/build.h b/toolsrc/include/vcpkg/build.h index f27e9d67b..9044cb556 100644 --- a/toolsrc/include/vcpkg/build.h +++ b/toolsrc/include/vcpkg/build.h @@ -51,6 +51,12 @@ namespace vcpkg::Build YES }; + enum class CleanDownloads + { + NO = 0, + YES + }; + enum class ConfigurationType { DEBUG, @@ -82,6 +88,7 @@ namespace vcpkg::Build AllowDownloads allow_downloads; CleanBuildtrees clean_buildtrees; CleanPackages clean_packages; + CleanDownloads clean_downloads; DownloadTool download_tool; BinaryCaching binary_caching; FailOnTombstone fail_on_tombstone; -- cgit v1.2.3 From 80452483725c95549e208c080630499a0676d5f9 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Sat, 8 Jun 2019 18:31:58 -0700 Subject: [vcpkg] Apply clang format (#6826) --- toolsrc/include/vcpkg/base/chrono.h | 4 ++-- toolsrc/include/vcpkg/base/strings.h | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'toolsrc/include') diff --git a/toolsrc/include/vcpkg/base/chrono.h b/toolsrc/include/vcpkg/base/chrono.h index 26294fdf8..89cd15273 100644 --- a/toolsrc/include/vcpkg/base/chrono.h +++ b/toolsrc/include/vcpkg/base/chrono.h @@ -56,8 +56,8 @@ namespace vcpkg::Chrono static Optional get_current_date_time(); static Optional parse(CStringView str); - constexpr CTime() noexcept : m_tm {0} {} - explicit constexpr CTime(tm t) noexcept : m_tm {t} {} + constexpr CTime() noexcept : m_tm{0} {} + explicit constexpr CTime(tm t) noexcept : m_tm{t} {} CTime add_hours(const int hours) const; diff --git a/toolsrc/include/vcpkg/base/strings.h b/toolsrc/include/vcpkg/base/strings.h index 3165dc8ee..3a9de97df 100644 --- a/toolsrc/include/vcpkg/base/strings.h +++ b/toolsrc/include/vcpkg/base/strings.h @@ -43,7 +43,7 @@ namespace vcpkg::Strings::details t.to_string(into); } - template(), std::declval()))> + template(), std::declval()))> void append_internal(std::string& into, const T& t) { to_string(into, t); @@ -66,7 +66,8 @@ namespace vcpkg::Strings } template - [[nodiscard]] std::string concat(const Args&... args) { + [[nodiscard]] std::string concat(const Args&... args) + { std::string ret; append(ret, args...); return ret; @@ -113,8 +114,7 @@ namespace vcpkg::Strings bool starts_with(StringView s, StringView pattern); template - std::string join(const char* delimiter, InputIterator begin, InputIterator end, - Transformer transformer) + std::string join(const char* delimiter, InputIterator begin, InputIterator end, Transformer transformer) { if (begin == end) { @@ -145,8 +145,7 @@ namespace vcpkg::Strings std::string join(const char* delimiter, InputIterator begin, InputIterator end) { using Element = decltype(*begin); - return join(delimiter, begin, end, - [](const Element& x) -> const Element& { return x; }); + return join(delimiter, begin, end, [](const Element& x) -> const Element& { return x; }); } template -- cgit v1.2.3 From d962dc7d651b563bed089f4bf9056003ebb7fe1c Mon Sep 17 00:00:00 2001 From: Phil Christensen Date: Mon, 10 Jun 2019 16:35:22 -0700 Subject: [vcpkg] Add optional 'Homepage' field to CONTROL (#6844) * [control file] Add optional 'Homepage' tag This allows a 'Homepage' tag to be added to a port in order to support changes such as PR #2933. It currently does not do anything with it. * [docs] Add Homepage to the control file documentation * move urls from descriptions to homepage field. --- toolsrc/include/vcpkg/sourceparagraph.h | 1 + 1 file changed, 1 insertion(+) (limited to 'toolsrc/include') diff --git a/toolsrc/include/vcpkg/sourceparagraph.h b/toolsrc/include/vcpkg/sourceparagraph.h index ae5812ea7..d70fd4337 100644 --- a/toolsrc/include/vcpkg/sourceparagraph.h +++ b/toolsrc/include/vcpkg/sourceparagraph.h @@ -48,6 +48,7 @@ namespace vcpkg std::string version; std::string description; std::string maintainer; + std::string homepage; std::vector supports; std::vector depends; std::vector default_features; -- cgit v1.2.3