aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/PostBuildLint_BuildInfo.h
blob: 44776d918fcf9d92be6f8bd9569a4f9cfaecd238 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "filesystem_fs.h"
#include "vcpkg_Files.h"
#include "PostBuildLint_BuildPolicies.h"
#include "OptBool.h"
#include "PostBuildLint_LinkageType.h"

namespace vcpkg::PostBuildLint
{
    struct BuildInfo
    {
        static BuildInfo create(std::unordered_map<std::string, std::string> pgh);

        LinkageType::Type crt_linkage;
        LinkageType::Type library_linkage;

        std::map<BuildPolicies::Type, OptBoolT> policies;
    };

    BuildInfo read_build_info(const Files::Filesystem& fs, const fs::path& filepath);
}