diff options
| author | Curtis.Bezault <curtbezault@gmail.com> | 2019-07-16 15:34:13 -0700 |
|---|---|---|
| committer | Curtis.Bezault <curtbezault@gmail.com> | 2019-07-16 15:34:13 -0700 |
| commit | 44dcc3d4f3d2bc56cc9f6d0371a141ad0145d537 (patch) | |
| tree | 32599f0c2ada63695259f896bc2fc10b3d1e6435 /toolsrc/include | |
| parent | a22242e837cc1af63ff754545512f5a754a70426 (diff) | |
| download | vcpkg-44dcc3d4f3d2bc56cc9f6d0371a141ad0145d537.tar.gz vcpkg-44dcc3d4f3d2bc56cc9f6d0371a141ad0145d537.zip | |
First pass at port settings
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/build.h | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/toolsrc/include/vcpkg/build.h b/toolsrc/include/vcpkg/build.h index e26597376..0d10d12a4 100644 --- a/toolsrc/include/vcpkg/build.h +++ b/toolsrc/include/vcpkg/build.h @@ -140,29 +140,6 @@ namespace vcpkg::Build {"VCPKG_ENV_PASSTHROUGH", VcpkgTripletVar::ENV_PASSTHROUGH}, }; - /// <summary> - /// Settings from the triplet file which impact the build environment and post-build checks - /// </summary> - struct PreBuildInfo - { - /// <summary> - /// Runs the triplet file in a "capture" mode to create a PreBuildInfo - /// </summary> - static PreBuildInfo from_triplet_file(const VcpkgPaths& paths, const Triplet& triplet); - - std::string triplet_abi_tag; - std::string target_architecture; - std::string cmake_system_name; - std::string cmake_system_version; - Optional<std::string> platform_toolset; - Optional<fs::path> visual_studio_path; - Optional<std::string> external_toolchain_file; - Optional<ConfigurationType> build_type; - std::vector<std::string> passthrough_env_vars; - }; - - std::string make_build_env_cmd(const PreBuildInfo& pre_build_info, const Toolset& toolset); - struct ExtendedBuildResult { ExtendedBuildResult(BuildResult code); @@ -200,6 +177,31 @@ namespace vcpkg::Build const BuildPackageConfig& config, const StatusParagraphs& status_db); + /// <summary> + /// Settings from the triplet file which impact the build environment and post-build checks + /// </summary> + struct PreBuildInfo + { + /// <summary> + /// Runs the triplet file in a "capture" mode to create a PreBuildInfo + /// </summary> + static PreBuildInfo from_triplet_file(const VcpkgPaths& paths, + const Triplet& triplet, + Optional<const std::string&> port = nullopt); + + std::string triplet_abi_tag; + std::string target_architecture; + std::string cmake_system_name; + std::string cmake_system_version; + Optional<std::string> platform_toolset; + Optional<fs::path> visual_studio_path; + Optional<std::string> external_toolchain_file; + Optional<ConfigurationType> build_type; + std::vector<std::string> passthrough_env_vars; + }; + + std::string make_build_env_cmd(const PreBuildInfo& pre_build_info, const Toolset& toolset); + enum class BuildPolicy { EMPTY_PACKAGE, |
