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

#include "filesystem_fs.h"
#include "PostBuildLint_BuildPolicies.h"
#include "opt_bool.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, opt_bool_t> policies;
    };

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