aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/PostBuildLint_BuildInfo.h
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-02-01 13:54:08 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-02-01 17:54:49 -0800
commit1d34facb84812bd478f2320857a5a7a3ed327bbf (patch)
treefd298e069666feceb80aadb1af22da7bd4e2d3fb /toolsrc/include/PostBuildLint_BuildInfo.h
parent0a0a17b7f9eb2aca7f999de1c4b8c63428e1eadf (diff)
downloadvcpkg-1d34facb84812bd478f2320857a5a7a3ed327bbf.tar.gz
vcpkg-1d34facb84812bd478f2320857a5a7a3ed327bbf.zip
Split OutdatedDynamicCrt into separate h/cpp
Diffstat (limited to 'toolsrc/include/PostBuildLint_BuildInfo.h')
-rw-r--r--toolsrc/include/PostBuildLint_BuildInfo.h56
1 files changed, 0 insertions, 56 deletions
diff --git a/toolsrc/include/PostBuildLint_BuildInfo.h b/toolsrc/include/PostBuildLint_BuildInfo.h
index b41478ef0..ff996b2b6 100644
--- a/toolsrc/include/PostBuildLint_BuildInfo.h
+++ b/toolsrc/include/PostBuildLint_BuildInfo.h
@@ -2,67 +2,11 @@
#include <unordered_map>
#include "Paragraphs.h"
-#include <regex>
#include "PostBuildLint_BuildPolicies.h"
#include "opt_bool.h"
namespace vcpkg::PostBuildLint
{
- struct OutdatedDynamicCrt
- {
- // Old CPP
- static const OutdatedDynamicCrt MSVCP100_DLL;
- static const OutdatedDynamicCrt MSVCP100D_DLL;
- static const OutdatedDynamicCrt MSVCP110_DLL;
- static const OutdatedDynamicCrt MSVCP110_WIN_DLL;
- static const OutdatedDynamicCrt MSVCP120_DLL;
- static const OutdatedDynamicCrt MSVCP120_CLR0400_DLL;
- static const OutdatedDynamicCrt MSVCP60_DLL;
- static const OutdatedDynamicCrt MSVCP_WIN_DLL;
-
- // Old C
- static const OutdatedDynamicCrt MSVCR100_DLL;
- static const OutdatedDynamicCrt MSVCR100D_DLL;
- static const OutdatedDynamicCrt MSVCR100_CLR0400_DLL;
- static const OutdatedDynamicCrt MSVCR110_DLL;
- static const OutdatedDynamicCrt MSVCR120_DLL;
- static const OutdatedDynamicCrt MSVCR120_CLR0400_DLL;
- static const OutdatedDynamicCrt MSVCRT_DLL;
- static const OutdatedDynamicCrt MSVCRT20_DLL;
- static const OutdatedDynamicCrt MSVCRT40_DLL;
-
- static const std::vector<OutdatedDynamicCrt>& values()
- {
- static const std::vector<OutdatedDynamicCrt> v = {
- MSVCP100_DLL, MSVCP100D_DLL,
- MSVCP110_DLL,MSVCP110_WIN_DLL,
- MSVCP120_DLL, MSVCP120_CLR0400_DLL,
- MSVCP60_DLL,
- MSVCP_WIN_DLL,
-
- MSVCR100_DLL, MSVCR100D_DLL, MSVCR100_CLR0400_DLL,
- MSVCR110_DLL,
- MSVCR120_DLL, MSVCR120_CLR0400_DLL,
- MSVCRT_DLL, MSVCRT20_DLL,MSVCRT40_DLL
- };
- return v;
- }
-
- OutdatedDynamicCrt() = delete;
-
- std::regex crt_regex() const;
- const std::string& toString() const;
-
- private:
- explicit OutdatedDynamicCrt(const std::string& dll_name, const std::string& crt_regex_as_string)
- : m_dll_name(dll_name), m_crt_regex_as_string(crt_regex_as_string)
- {
- }
-
- std::string m_dll_name;
- std::string m_crt_regex_as_string;
- };
-
struct BuildInfo
{
static BuildInfo create(std::unordered_map<std::string, std::string> pgh);