aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/PostBuildLint_BuildPolicies.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-03 19:00:48 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-03 19:00:48 -0800
commitc2a368976dcd42640290a6ef30c5a4fc8a4a825d (patch)
treef9ab145ac87ed8de668aa822b16f99560f98b6fd /toolsrc/src/PostBuildLint_BuildPolicies.cpp
parente44aae7210a5c13e8748854dff478905c371defa (diff)
downloadvcpkg-c2a368976dcd42640290a6ef30c5a4fc8a4a825d.tar.gz
vcpkg-c2a368976dcd42640290a6ef30c5a4fc8a4a825d.zip
Add policy: NoDebugBinaries
Diffstat (limited to 'toolsrc/src/PostBuildLint_BuildPolicies.cpp')
-rw-r--r--toolsrc/src/PostBuildLint_BuildPolicies.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolsrc/src/PostBuildLint_BuildPolicies.cpp b/toolsrc/src/PostBuildLint_BuildPolicies.cpp
index 53dfcf95a..2e0a1713b 100644
--- a/toolsrc/src/PostBuildLint_BuildPolicies.cpp
+++ b/toolsrc/src/PostBuildLint_BuildPolicies.cpp
@@ -8,6 +8,7 @@ namespace vcpkg::PostBuildLint::BuildPolicies
static const std::string NAME_EMPTY_PACKAGE = "PolicyEmptyPackage";
static const std::string NAME_DLLS_WITHOUT_LIBS = "PolicyDLLsWithoutLIBs";
+ static const std::string NAME_NO_DEBUG_BINARIES = "PolicyNoDebugBinaries";
const std::string& type::toString() const
{
@@ -17,6 +18,8 @@ namespace vcpkg::PostBuildLint::BuildPolicies
return NAME_EMPTY_PACKAGE;
case DLLS_WITHOUT_LIBS:
return NAME_DLLS_WITHOUT_LIBS;
+ case NO_DEBUG_BINARIES:
+ return NAME_NO_DEBUG_BINARIES;
case NULLVALUE:
return NULLVALUE_STRING;
default:
@@ -28,6 +31,7 @@ namespace vcpkg::PostBuildLint::BuildPolicies
{
static const std::string CMAKE_VARIABLE_EMPTY_PACKAGE = "VCPKG_POLICY_EMPTY_PACKAGE";
static const std::string CMAKE_VARIABLE_DLLS_WITHOUT_LIBS = "VCPKG_POLICY_DLLS_WITHOUT_LIBS";
+ static const std::string CMAKE_VARIABLE_NO_DEBUG_BINARIES = "VCPKG_POLICY_NO_DEBUG_BINARIES";
switch (this->backing_enum)
{
@@ -35,6 +39,8 @@ namespace vcpkg::PostBuildLint::BuildPolicies
return CMAKE_VARIABLE_EMPTY_PACKAGE;
case DLLS_WITHOUT_LIBS:
return CMAKE_VARIABLE_DLLS_WITHOUT_LIBS;
+ case NO_DEBUG_BINARIES:
+ return CMAKE_VARIABLE_NO_DEBUG_BINARIES;
case NULLVALUE:
Enums::nullvalue_used(ENUM_NAME);
default:
@@ -54,6 +60,11 @@ namespace vcpkg::PostBuildLint::BuildPolicies
return BuildPolicies::DLLS_WITHOUT_LIBS;
}
+ if (s == NAME_NO_DEBUG_BINARIES)
+ {
+ return BuildPolicies::NO_DEBUG_BINARIES;
+ }
+
return BuildPolicies::NULLVALUE;
}
}