-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependenciesHelper.hpp
More file actions
65 lines (51 loc) · 3.21 KB
/
Copy pathDependenciesHelper.hpp
File metadata and controls
65 lines (51 loc) · 3.21 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
#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 "ghc/filesystem.hpp"
#include <vector>
namespace runcpp2
{
bool 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);
bool 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);
bool 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);
bool 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);
bool GatherDependenciesBinaries(const std::vector<Data::DependencyInfo*>& availableDependencies,
const std::vector<std::string>& dependenciesCopiesPaths,
const Data::Profile& profile,
std::vector<std::string>& outBinariesPaths);
bool HandleImport(Data::DependencyInfo& dependency, const ghc::filesystem::path& basePath);
bool ResolveImports(Data::ScriptInfo& scriptInfo,
const ghc::filesystem::path& scriptPath,
const ghc::filesystem::path& buildDir);
bool SyncLocalDependency( const Data::DependencyInfo& dependency,
const ghc::filesystem::path& sourcePath,
const ghc::filesystem::path& copyPath);
bool SyncLocalDependencies( const std::vector<Data::DependencyInfo*>& dependencies,
const std::vector<std::string>& dependenciesSourcePaths,
const std::vector<std::string>& dependenciesCopiesPaths);
}
#endif