You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cppAsScript.h
+47-7Lines changed: 47 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ class cppBuilder;
16
16
classcppProject {
17
17
protected:
18
18
std::vector<std::string> files;
19
+
std::vector<std::filesystem::path> paths;
19
20
std::string modulePath;
20
21
std::string log;
21
22
std::string _options;
@@ -28,6 +29,21 @@ class cppProject {
28
29
cppProject();
29
30
virtual~cppProject();
30
31
32
+
33
+
/**
34
+
* \brief Add the path where we seek for files if the relative path passed
35
+
* \param path the absolute path
36
+
* \param parent_depth we add the path, then add parent path and so on, repeat this parent_depth count. It is useful if executable nested somewhere deeply into project folder
37
+
*/
38
+
voidaddSearhPath(const std::filesystem::path& path, int parent_depth = 0);
39
+
40
+
/**
41
+
* \brief determines if path is local and tries to find the file in any folder defined previously with addSearhPath
42
+
* \param path relative or absolute path
43
+
* \return the file path if the file exists, empty path othervice
0 commit comments