aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-03-31 17:40:08 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-31 17:40:08 -0700
commit4792821a1d5d5fec764241f3d97284ec1579ce3a (patch)
tree6c1652b91be5e65754cb297bc99229f1ada3cee8 /toolsrc/include
parentc84765601bbe49a6ec2e252ec681fe843212230f (diff)
downloadvcpkg-4792821a1d5d5fec764241f3d97284ec1579ce3a.tar.gz
vcpkg-4792821a1d5d5fec764241f3d97284ec1579ce3a.zip
Move Environment:: functions into vcpkg_paths. Remove Environment.h/cpp
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg_Environment.h15
-rw-r--r--toolsrc/include/vcpkg_paths.h8
2 files changed, 8 insertions, 15 deletions
diff --git a/toolsrc/include/vcpkg_Environment.h b/toolsrc/include/vcpkg_Environment.h
deleted file mode 100644
index 32ab28391..000000000
--- a/toolsrc/include/vcpkg_Environment.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#pragma once
-#include "vcpkg_paths.h"
-
-namespace vcpkg::Environment
-{
- const fs::path& get_dumpbin_exe(const vcpkg_paths& paths);
-
- struct vcvarsall_and_platform_toolset
- {
- fs::path path;
- std::wstring platform_toolset;
- };
-
- const vcvarsall_and_platform_toolset& get_vcvarsall_bat(const vcpkg_paths& paths);
-}
diff --git a/toolsrc/include/vcpkg_paths.h b/toolsrc/include/vcpkg_paths.h
index ae91a8e2f..9577abd01 100644
--- a/toolsrc/include/vcpkg_paths.h
+++ b/toolsrc/include/vcpkg_paths.h
@@ -7,6 +7,12 @@
namespace vcpkg
{
+ struct vcvarsall_and_platform_toolset
+ {
+ fs::path path;
+ std::wstring platform_toolset;
+ };
+
struct vcpkg_paths
{
static expected<vcpkg_paths> create(const fs::path& vcpkg_root_dir);
@@ -40,6 +46,8 @@ namespace vcpkg
const fs::path& get_cmake_exe() const;
const fs::path& get_git_exe() const;
const fs::path& get_nuget_exe() const;
+ const fs::path& get_dumpbin_exe() const;
+ const vcvarsall_and_platform_toolset& get_vcvarsall_bat() const;
private:
lazy<fs::path> cmake_exe;