Skip to content

Commit c38db72

Browse files
Merge pull request #38 from Neko-Box-Coder/BetterWatchUpdates
Better watch updates
2 parents 114cfe9 + f9a2e8e commit c38db72

19 files changed

+165
-57
lines changed

Include/Tests/BuildsManager/MockComponents.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#ifndef RUNCPP2_UNIT_TESTS_BUILDS_MANAGER_MOCK_COMPONENTS_HPP
22
#define RUNCPP2_UNIT_TESTS_BUILDS_MANAGER_MOCK_COMPONENTS_HPP
33

4+
#if !defined(NOMINMAX)
5+
#define NOMINMAX 1
6+
#endif
47
#include "ghc/filesystem.hpp"
58

69
#include "CppOverride.hpp"

Include/Tests/IncludeManager/MockComponents.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#ifndef RUNCPP2_UNIT_TESTS_INCLUDE_MANAGER_MOCK_COMPONENTS_HPP
22
#define RUNCPP2_UNIT_TESTS_INCLUDE_MANAGER_MOCK_COMPONENTS_HPP
33

4+
#if !defined(NOMINMAX)
5+
#define NOMINMAX 1
6+
#endif
47
#include "ghc/filesystem.hpp"
58
#include "CppOverride.hpp"
69

@@ -104,4 +107,4 @@ namespace std
104107
#undef getline
105108
#endif
106109

107-
#endif
110+
#endif

Include/runcpp2/BuildsManager.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#ifndef RUNCPP2_BUILDS_MANAGER_HPP
22
#define RUNCPP2_BUILDS_MANAGER_HPP
33

4+
#if !defined(NOMINMAX)
5+
#define NOMINMAX 1
6+
#endif
47
#include "ghc/filesystem.hpp"
58

69
#include <unordered_map>

Include/runcpp2/CompilingLinking.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
#include "runcpp2/Data/Profile.hpp"
55
#include "runcpp2/Data/ScriptInfo.hpp"
66

7+
#if !defined(NOMINMAX)
8+
#define NOMINMAX 1
9+
#endif
10+
711
#include "ghc/filesystem.hpp"
812

913
#include <string>

Include/runcpp2/Data/ProfilesProcessPaths.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
#include "runcpp2/YamlLib.hpp"
77

8-
#define NOMINMAX 1
8+
#if !defined(NOMINMAX)
9+
#define NOMINMAX 1
10+
#endif
911
#include "ghc/filesystem.hpp"
1012

1113
#include <unordered_map>

Include/runcpp2/Data/ScriptInfo.hpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
#ifndef RUNCPP2_DATA_SCRIPT_INFO_HPP
22
#define RUNCPP2_DATA_SCRIPT_INFO_HPP
33

4+
45
#include "runcpp2/Data/DependencyInfo.hpp"
56
#include "runcpp2/Data/ProfilesFlagsOverride.hpp"
6-
#include "runcpp2/Data/ParseCommon.hpp"
77
#include "runcpp2/Data/ProfilesProcessPaths.hpp"
88
#include "runcpp2/Data/ProfilesDefines.hpp"
99
#include "runcpp2/Data/ProfilesCommands.hpp"
1010

11+
#if !defined(NOMINMAX)
12+
#define NOMINMAX 1
13+
#endif
14+
15+
#include "ghc/filesystem.hpp"
16+
1117
#include <string>
1218
#include <vector>
1319
#include <unordered_map>
@@ -38,8 +44,12 @@ namespace runcpp2
3844
std::unordered_map<PlatformName, ProfilesCommands> PostBuild;
3945
std::unordered_map<PlatformName, ProfilesCommands> Cleanup;
4046

47+
//Internal tracking
4148
bool Populated = false;
4249

50+
ghc::filesystem::file_time_type LastWriteTime =
51+
ghc::filesystem::file_time_type::min();
52+
4353
bool ParseYAML_Node(ryml::ConstNodeRef& node);
4454
std::string ToString(std::string indentation) const;
4555
bool Equals(const ScriptInfo& other) const;

Include/runcpp2/DependenciesHelper.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#include "runcpp2/Data/ScriptInfo.hpp"
66
#include "runcpp2/Data/Profile.hpp"
77

8+
#if !defined(NOMINMAX)
9+
#define NOMINMAX 1
10+
#endif
11+
812
#include "ghc/filesystem.hpp"
913
#include <vector>
1014

Include/runcpp2/IncludeManager.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#ifndef RUNCPP2_INCLUDE_MANAGER_HPP
22
#define RUNCPP2_INCLUDE_MANAGER_HPP
33

4+
#if !defined(NOMINMAX)
5+
#define NOMINMAX 1
6+
#endif
7+
48
#include "ghc/filesystem.hpp"
59
#include <unordered_map>
610
#include <vector>
@@ -41,4 +45,4 @@ namespace runcpp2
4145
};
4246
}
4347

44-
#endif
48+
#endif

Include/runcpp2/PipelineSteps.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
#include "runcpp2/BuildsManager.hpp"
1111
#include "runcpp2/IncludeManager.hpp"
1212

13+
#if !defined(NOMINMAX)
14+
#define NOMINMAX 1
15+
#endif
1316
#include "ghc/filesystem.hpp"
1417

1518
#include <string>
@@ -125,10 +128,9 @@ namespace runcpp2
125128

126129
using SourceIncludeMap = std::unordered_map<std::string, std::vector<ghc::filesystem::path>>;
127130

128-
bool GatherFilesIncludes( const std::vector<ghc::filesystem::path>& files,
131+
bool GatherFilesIncludes( const std::vector<ghc::filesystem::path>& sourceFiles,
129132
const std::vector<ghc::filesystem::path>& includePaths,
130133
SourceIncludeMap& outSourceIncludes);
131134
}
132135

133-
134136
#endif

Include/runcpp2/PlatformUtil.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
#include "runcpp2/Data/ParseCommon.hpp"
55
#include "runcpp2/Data/Profile.hpp"
6+
7+
#if !defined(NOMINMAX)
8+
#define NOMINMAX 1
9+
#endif
10+
611
#include "System2.h"
712

813
#include <cstdint>

0 commit comments

Comments
 (0)