Skip to content

Commit 49ac327

Browse files
Moving methods in runcpp2 out
1 parent d191d9c commit 49ac327

23 files changed

+1347
-1354
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#ifndef RUNCPP2_COMPILER_PROFILE_HELPER_HPP
2+
#define RUNCPP2_COMPILER_PROFILE_HELPER_HPP
3+
4+
#include "runcpp2/Data/CompilerProfile.hpp"
5+
#include "runcpp2/Data/ScriptInfo.hpp"
6+
namespace runcpp2
7+
{
8+
bool IsProfileAvailableOnSystem(const CompilerProfile& profile);
9+
10+
bool IsProfileValidForScript( const CompilerProfile& profile,
11+
const ScriptInfo& scriptInfo,
12+
const std::string& scriptPath);
13+
14+
std::vector<ProfileName> GetAvailableProfiles( const std::vector<CompilerProfile>& profiles,
15+
const ScriptInfo& scriptInfo,
16+
const std::string& scriptPath);
17+
18+
int GetPreferredProfileIndex( const std::string& scriptPath,
19+
const ScriptInfo& scriptInfo,
20+
const std::vector<CompilerProfile>& profiles,
21+
const std::string& configPreferredProfile);
22+
}
23+
24+
#endif
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#ifndef RUNCPP2_COMPILING_LINKING_HPP
2+
#define RUNCPP2_COMPILING_LINKING_HPP
3+
4+
#include "runcpp2/Data/CompilerProfile.hpp"
5+
#include "runcpp2/Data/ScriptInfo.hpp"
6+
#include <string>
7+
8+
namespace runcpp2
9+
{
10+
bool CompileAndLinkScript( const std::string& scriptPath,
11+
const ScriptInfo& scriptInfo,
12+
const CompilerProfile& profile);
13+
}
14+
15+
#endif

Include/runcpp2/ConfigParsing.hpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#ifndef RUNCPP2_CONFIG_PARSING_HPP
2+
#define RUNCPP2_CONFIG_PARSING_HPP
3+
4+
#include "runcpp2/Data/CompilerProfile.hpp"
5+
#include "runcpp2/Data/ScriptInfo.hpp"
6+
#include <string>
7+
#include <vector>
8+
namespace runcpp2
9+
{
10+
bool ParseCompilerProfiles( const std::string& compilerProfilesString,
11+
std::vector<CompilerProfile>& outProfiles,
12+
std::string& outPreferredProfile);
13+
14+
bool ReadUserConfig(std::vector<CompilerProfile>& outProfiles,
15+
std::string& outPreferredProfile);
16+
17+
bool ParseScriptInfo( const std::string& scriptInfo,
18+
ScriptInfo& outScriptInfo);
19+
}
20+
21+
#endif

Include/runcpp2/Data/CompilerInfo.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef RUNCPP2_COMPILER_INFO_HPP
2-
#define RUNCPP2_COMPILER_INFO_HPP
1+
#ifndef RUNCPP2_DATA_COMPILER_INFO_HPP
2+
#define RUNCPP2_DATA_COMPILER_INFO_HPP
33

44
#include "yaml-cpp/yaml.h"
55

Include/runcpp2/Data/CompilerProfile.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef RUNCPP2_COMPILER_PROFILE_HPP
2-
#define RUNCPP2_COMPILER_PROFILE_HPP
1+
#ifndef RUNCPP2_DATA_COMPILER_PROFILE_HPP
2+
#define RUNCPP2_DATA_COMPILER_PROFILE_HPP
33

44
#include "runcpp2/Data/CompilerInfo.hpp"
55
#include "runcpp2/Data/LinkerInfo.hpp"

Include/runcpp2/Data/DependencyInfo.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef RUNCPP2_DEPENDENCY_INFO_HPP
2-
#define RUNCPP2_DEPENDENCY_INFO_HPP
1+
#ifndef RUNCPP2_DATA_DEPENDENCY_INFO_HPP
2+
#define RUNCPP2_DATA_DEPENDENCY_INFO_HPP
33

44
#include "runcpp2/Data/DependencyLibraryType.hpp"
55
#include "runcpp2/Data/DependencySource.hpp"

Include/runcpp2/Data/DependencyLibraryType.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef RUNCPP2_DEPENDENCY_LIBRARY_TYPE_HPP
2-
#define RUNCPP2_DEPENDENCY_LIBRARY_TYPE_HPP
1+
#ifndef RUNCPP2_DATA_DEPENDENCY_LIBRARY_TYPE_HPP
2+
#define RUNCPP2_DATA_DEPENDENCY_LIBRARY_TYPE_HPP
33

44
namespace runcpp2
55
{

Include/runcpp2/Data/DependencySearchProperty.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef RUNCPP2_DEPENDENCY_SEARCH_PROPERTY_HPP
2-
#define RUNCPP2_DEPENDENCY_SEARCH_PROPERTY_HPP
1+
#ifndef RUNCPP2_DATA_DEPENDENCY_SEARCH_PROPERTY_HPP
2+
#define RUNCPP2_DATA_DEPENDENCY_SEARCH_PROPERTY_HPP
33

44
#include "yaml-cpp/yaml.h"
55
#include <string>

Include/runcpp2/Data/DependencySetup.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef RUNCPP2_DEPENDENCY_SETUP_HPP
2-
#define RUNCPP2_DEPENDENCY_SETUP_HPP
1+
#ifndef RUNCPP2_DATA_DEPENDENCY_SETUP_HPP
2+
#define RUNCPP2_DATA_DEPENDENCY_SETUP_HPP
33

44
#include "runcpp2/Data/ParseCommon.hpp"
55

Include/runcpp2/Data/DependencySource.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef RUNCPP2_DEPENDENCY_SOURCE_HPP
2-
#define RUNCPP2_DEPENDENCY_SOURCE_HPP
1+
#ifndef RUNCPP2_DATA_DEPENDENCY_SOURCE_HPP
2+
#define RUNCPP2_DATA_DEPENDENCY_SOURCE_HPP
33

44
#include "runcpp2/Data/DependencySourceType.hpp"
55
#include "yaml-cpp/yaml.h"

0 commit comments

Comments
 (0)