Skip to content

Commit 0b74499

Browse files
committed
remove big pch
compilation is slower but can import modules now
1 parent d577257 commit 0b74499

File tree

337 files changed

+1692
-1557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

337 files changed

+1692
-1557
lines changed

main.sharpmake.cs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public virtual void ConfigureAll(Configuration conf, CustomTarget target)
6262
{
6363
conf.ProjectFileName = "[project.Name]";
6464
conf.ProjectPath = @"[project.RootPath]";
65-
65+
conf.IncludePaths.Add(@"[project.SourceRootPath]");
66+
6667
conf.Options.Add(Options.Vc.Compiler.CppLanguageStandard.Latest);
6768
conf.Options.Add(Options.Vc.Compiler.Exceptions.Enable);
6869
conf.Options.Add(Options.Vc.Compiler.RTTI.Enable);
@@ -205,7 +206,7 @@ public override void ConfigureAll(Configuration conf, CustomTarget target)
205206
conf.PrecompHeader = "pch.h";
206207
conf.PrecompSource = "pch.cpp";
207208

208-
conf.AddPrivateDependency<Core>(target);
209+
conf.AddPublicDependency<Core>(target);
209210
}
210211
}
211212

@@ -235,7 +236,7 @@ public override void ConfigureAll(Configuration conf, CustomTarget target)
235236
conf.TargetCopyFiles.Add(@"[project.SourceRootPath]\dxil.dll");
236237

237238

238-
conf.AddPrivateDependency<FileSystem>(target);
239+
conf.AddPublicDependency<FileSystem>(target);
239240
conf.AddPublicDependency<Aftermath>(target);
240241

241242
}
@@ -257,7 +258,7 @@ public override void ConfigureAll(Configuration conf, CustomTarget target)
257258
conf.PrecompHeader = "pch.h";
258259
conf.PrecompSource = "pch.cpp";
259260

260-
conf.AddPrivateDependency<DirectXFramework>(target);
261+
conf.AddPublicDependency<DirectXFramework>(target);
261262
}
262263
}
263264

@@ -277,8 +278,8 @@ public override void ConfigureAll(Configuration conf, CustomTarget target)
277278
conf.PrecompHeader = "pch.h";
278279
conf.PrecompSource = "pch.cpp";
279280

280-
conf.AddPrivateDependency<DirectXFramework>(target);
281-
conf.AddPrivateDependency<FlowGraph>(target);
281+
conf.AddPublicDependency<DirectXFramework>(target);
282+
conf.AddPublicDependency<FlowGraph>(target);
282283
}
283284
}
284285

@@ -332,8 +333,8 @@ public override void ConfigureAll(Configuration conf, CustomTarget target)
332333
conf.VcxprojUserFile = new Project.Configuration.VcxprojUserFileSettings ();
333334
conf.VcxprojUserFile.LocalDebuggerWorkingDirectory = @"[project.SharpmakeCsPath]\workdir";
334335

335-
conf.AddPrivateDependency<DirectXFramework>(target);
336-
conf.AddPrivateDependency<RenderSystem>(target);
336+
conf.AddPublicDependency<DirectXFramework>(target);
337+
conf.AddPublicDependency<RenderSystem>(target);
337338
}
338339
}
339340

sources/Core/Allocators/Allocators.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#include "pch.h"
2+
#include "Allocators.h"
3+
#include "Math/ScalarMath.h"
24

35
CommonAllocator::CommonAllocator(size_t size /*= std::numeric_limits<size_t>::max()*/) :size(size)
46
{

sources/Core/Allocators/Allocators.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#pragma once
2+
#include "DebugInfo/Debug.h"
3+
#include "Math/ScalarMath.h"
24

35
struct AllocationHandle;
46
struct MemoryInfo

sources/Core/Application/Application.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "pch.h"
22

3+
#include "Application.h"
34
Application::Application()
45
{
56
alive = true;

sources/Core/Application/Application.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#pragma once
2+
#include "patterns/Singleton.h"
23

34
class Application : public Singleton<Application>
45
{

sources/Core/Application/app.ixx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
export module app;
3+
4+
export void MyFunc();

sources/Core/Data/Data.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "pch.h"
22

3+
4+
#include "Data.h"
35
namespace DataPacker
46
{
57

sources/Core/Data/Data.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#pragma once
2+
#include <DebugInfo/Exceptions.h>
3+
14
namespace DataPacker
25
{
36

sources/Core/Data/md5.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
/* interface header */
3434
#include "pch.h"
3535

36+
#include "md5.h"
3637

3738
/* system implementation headers */
3839
#include <stdio.h>

sources/Core/Data/md5.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
#include <string>
3737
#include <iostream>
38+
#include "Serialization/Serializer.h"
3839

3940

4041
// a small class for calculating MD5 hashes of strings or byte arrays

0 commit comments

Comments
 (0)