diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-08-23 16:17:53 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-08-24 16:29:40 -0700 |
| commit | e237682cad4eaa582a10b5ad03a59ca6449e0795 (patch) | |
| tree | 6850152901be7ab8ea7462fac572850d68a2dbde /toolsrc/include | |
| parent | 8fc510e1f946208409bd8ba1159b2e19bf553909 (diff) | |
| download | vcpkg-e237682cad4eaa582a10b5ad03a59ca6449e0795.tar.gz vcpkg-e237682cad4eaa582a10b5ad03a59ca6449e0795.zip | |
Introduce GlobalState struct
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/SourceParagraph.h | 2 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg_GlobalState.h | 13 | ||||
| -rw-r--r-- | toolsrc/include/vcpkglib.h | 2 |
3 files changed, 13 insertions, 4 deletions
diff --git a/toolsrc/include/SourceParagraph.h b/toolsrc/include/SourceParagraph.h index 05f18f940..8563d83b0 100644 --- a/toolsrc/include/SourceParagraph.h +++ b/toolsrc/include/SourceParagraph.h @@ -12,8 +12,6 @@ namespace vcpkg { - extern bool g_feature_packages; - struct Dependency { Features depend; diff --git a/toolsrc/include/vcpkg_GlobalState.h b/toolsrc/include/vcpkg_GlobalState.h new file mode 100644 index 000000000..15b8867f7 --- /dev/null +++ b/toolsrc/include/vcpkg_GlobalState.h @@ -0,0 +1,13 @@ +#pragma once + +#include <vcpkg_Chrono.h> + +namespace vcpkg +{ + struct GlobalState + { + static ElapsedTime timer; + static bool debugging; + static bool feature_packages; + }; +}
\ No newline at end of file diff --git a/toolsrc/include/vcpkglib.h b/toolsrc/include/vcpkglib.h index 63b358d74..0bb75f9b5 100644 --- a/toolsrc/include/vcpkglib.h +++ b/toolsrc/include/vcpkglib.h @@ -6,8 +6,6 @@ namespace vcpkg { - extern bool g_debugging; - StatusParagraphs database_load_check(const VcpkgPaths& paths); void write_update(const VcpkgPaths& paths, const StatusParagraph& p); |
