-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependenciesHelper.hpp
More file actions
72 lines (58 loc) · 3.38 KB
/
Copy pathDependenciesHelper.hpp
File metadata and controls
72 lines (58 loc) · 3.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef RUNCPP2_DEPENDENCIES_SETUP_HELPER_HPP
#define RUNCPP2_DEPENDENCIES_SETUP_HELPER_HPP
#include "runcpp2/Data/DependencyInfo.hpp"
#include "runcpp2/Data/ScriptInfo.hpp"
#include "runcpp2/Data/Profile.hpp"
#if !defined(NOMINMAX)
#define NOMINMAX 1
#endif
#include "DSResult/DSResult.hpp"
#include "ghc/filesystem.hpp"
#include <vector>
namespace runcpp2
{
DS::Result<void>
GetDependenciesPaths( const std::vector<Data::DependencyInfo*>& availableDependencies,
std::vector<std::string>& outCopiesPaths,
std::vector<std::string>& outSourcesPaths,
const ghc::filesystem::path& scriptPath,
const ghc::filesystem::path& buildDir);
bool IsDependencyAvailableForThisPlatform(const Data::DependencyInfo& dependency);
DS::Result<void>
CleanupDependencies(const runcpp2::Data::Profile& profile,
const Data::ScriptInfo& scriptInfo,
const std::vector<Data::DependencyInfo*>& availableDependencies,
const std::vector<std::string>& dependenciesLocalCopiesPaths,
const std::string& dependenciesToReset);
DS::Result<void>
SetupDependenciesIfNeeded( const runcpp2::Data::Profile& profile,
const ghc::filesystem::path& buildDir,
const Data::ScriptInfo& scriptInfo,
std::vector<Data::DependencyInfo*>& availableDependencies,
const std::vector<std::string>& dependenciesLocalCopiesPaths,
const std::vector<std::string>& dependenciesSourcePaths,
const int maxThreads);
DS::Result<void>
BuildDependencies( const runcpp2::Data::Profile& profile,
const Data::ScriptInfo& scriptInfo,
const std::vector<Data::DependencyInfo*>& availableDependencies,
const std::vector<std::string>& dependenciesLocalCopiesPaths,
const int maxThreads);
DS::Result<void>
GatherDependenciesBinaries( const std::vector<Data::DependencyInfo*>& availableDependencies,
const std::vector<std::string>& dependenciesCopiesPaths,
const Data::Profile& profile,
std::vector<std::string>& outBinariesPaths);
DS::Result<void> HandleImport( Data::DependencyInfo& dependency,
const ghc::filesystem::path& basePath);
DS::Result<void> ResolveImports(Data::ScriptInfo& scriptInfo,
const ghc::filesystem::path& scriptPath,
const ghc::filesystem::path& buildDir);
DS::Result<void> SyncLocalDependency( const Data::DependencyInfo& dependency,
const ghc::filesystem::path& sourcePath,
const ghc::filesystem::path& copyPath);
DS::Result<void> SyncLocalDependencies(const std::vector<Data::DependencyInfo*>& dependencies,
const std::vector<std::string>& dependenciesSourcePaths,
const std::vector<std::string>& dependenciesCopiesPaths);
}
#endif