-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependenciesHelper.hpp
More file actions
52 lines (41 loc) · 2.6 KB
/
Copy pathDependenciesHelper.hpp
File metadata and controls
52 lines (41 loc) · 2.6 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
#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"
#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);
bool BuildDependencies( const runcpp2::Data::Profile& profile,
const Data::ScriptInfo& scriptInfo,
const std::vector<Data::DependencyInfo*>& availableDependencies,
const std::vector<std::string>& dependenciesLocalCopiesPaths);
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);
}
#endif