Commit Graph

265 Commits

Author SHA1 Message Date
Devin Doucette
e3600df4ee DDC: Added UE::DerivedData::FBuildInput
FBuildInput and the associated builder type collect the inputs for a build.

#rb Zousar.Shaker
#rnx

[CL 16406497 by Devin Doucette in ue5-main branch]
2021-05-20 13:53:48 -04:00
Devin Doucette
5e17eb1966 DDC: Moved IBuildFunction configuration into a new Configure() function instead of several virtual functions
Also added CancelAsyncBuild and clarified the comments on how async builds work.

#rb Zousar.Shaker
#rnx

[CL 16406496 by Devin Doucette in ue5-main branch]
2021-05-20 13:53:45 -04:00
Devin Doucette
134df5e821 DDC: Reordered EPriority to make operations like Min and Max make sense with it
#rb Tim.Smith
#rnx

[CL 16405468 by Devin Doucette in ue5-main branch]
2021-05-20 12:37:08 -04:00
Devin Doucette
8efdaccd3f DDC: Added HasConstants() and HasInputs() to FBuildAction to mirror FBuildDefinition
#rb Tim.Smith
#rnx

[CL 16405466 by Devin Doucette in ue5-main branch]
2021-05-20 12:37:01 -04:00
geoff evans
b1c54a1182 Add Trace Cpu Events and Counters to FileSystem DDC backend.
#jira none
#rb devin.doucette
#preflight 60a4337db7ccb000013e0fd6

[CL 16378052 by geoff evans in ue5-main branch]
2021-05-18 18:50:43 -04:00
David Harvey
31caaa7217 compile fix for Windows-based platform extensions.
#jira none
#rb nuno.leiria
#rnx

[CL 16346948 by David Harvey in ue5-main branch]
2021-05-17 06:33:02 -04:00
Devin Doucette
2a6278e430 DDC: Fixed a build error caught by Clang
#rb trivial
#rnx

[CL 16333256 by Devin Doucette in ue5-main branch]
2021-05-14 15:08:12 -04:00
Devin Doucette
8ce8977949 DDC: Added optional versions of BuildAction, BuildDefinition, BuildOutput, CacheRecord
- Optional versions are now returned from operations that may fail.
- Fixed a bug in the cache where a null record could be dereferenced.
- Improved validation when loading build types.

#rb Zousar.Shaker
#rnx

[CL 16332909 by Devin Doucette in ue5-main branch]
2021-05-14 14:47:11 -04:00
Devin Doucette
6094cdaca4 DDC: Temporary workaround for static analysis issue with Get<T> on 2-tuples
#rb trivial
#rnx

[CL 16326041 by Devin Doucette in ue5-main branch]
2021-05-13 23:24:10 -04:00
Devin Doucette
09748c85e3 DDC: Added a missing #include
#rb trivial
#rnx

[CL 16326010 by Devin Doucette in ue5-main branch]
2021-05-13 23:22:40 -04:00
Devin Doucette
8310ac341e DDC: Changed the builder types to delete themselves on Build()
#rb Zousar.Shaker
#rnx

[CL 16317751 by Devin Doucette in ue5-main branch]
2021-05-13 16:09:45 -04:00
Devin Doucette
31e8388cb0 DDC: Added UE::DerivedData::FBuildAction
FBuildAction and the associated builder type define the exact action to be executed, including the function and its version, and the inputs referenced by hash.

#rb Zousar.Shaker
#rnx
#preflight 609cbaed7ebade00018f29c9

[CL 16317116 by Devin Doucette in ue5-main branch]
2021-05-13 15:36:50 -04:00
Devin Doucette
56502c549e DDC: Organized functions for consistency and fixed includes of Templates/Function.h
#rb trivial
#rnx
#preflight 609c4284dc97da000146a5e1

[CL 16306812 by Devin Doucette in ue5-main branch]
2021-05-12 17:57:54 -04:00
Devin Doucette
1e8cdcdb46 DDC: Forward constructor arguments through TBuildFunctionFactory
#rb Zousar.Shaker
#rnx

[CL 16304994 by Devin Doucette in ue5-main branch]
2021-05-12 16:01:41 -04:00
Devin Doucette
cf09b53604 DDC: Added UE::DerivedData::FBuildOutput
FBuildOutput and the associated builder type define the output of a derived data build as a collection of payloads and diagnostic messages.

#rb Zousar.Shaker
#rnx
#preflight 609c0fc05b35c60001cbc2e3

[CL 16304655 by Devin Doucette in ue5-main branch]
2021-05-12 15:46:19 -04:00
Devin Doucette
dd9e1ec58b DDC: Added support for cache records with null data
#rb Zousar.Shaker
#rnx
#preflight 609b6698b16d45000155cb04

[CL 16298475 by Devin Doucette in ue5-main branch]
2021-05-12 09:28:05 -04:00
Devin Doucette
93b6c72b40 DDC: Added UE::DerivedData::IBuildFunction and related types
IBuildFunction and the associated build context types define the interface for new derived data build functions. The inputs to a build function are referenced by FBuildDefinition. This only includes the functionality required to implement and register a build function, and does not include the functionality required to execute a build starting from a build definition.

#rb Zousar.Shaker
#rnx

[CL 16278733 by Devin Doucette in ue5-main branch]
2021-05-11 16:23:40 -04:00
Devin Doucette
3b56f37300 DDC: Minor updates to formatting of code and asserts
#rb trivial
#rnx

[CL 16278716 by Devin Doucette in ue5-main branch]
2021-05-11 16:19:37 -04:00
Devin Doucette
536b5fa4dc DDC: Updated documentation and removed unnecessary explicit hash construction
#rb trivial
#rnx

[CL 16207037 by Devin Doucette in ue5-main branch]
2021-05-05 10:15:34 -04:00
Devin Doucette
70a7cb25a8 DDC: Added raw size to the payload
#rb Zousar.Shaker
#rnx
#preflight 609229cb58c4790001a048f0

[CL 16207035 by Devin Doucette in ue5-main branch]
2021-05-05 10:15:26 -04:00
Devin Doucette
3f40f504cf DDC: Changed Put to take a const array of cache records now that records are copyable
#rb Zousar.Shaker
#rnx

[CL 16184736 by Devin Doucette in ue5-main branch]
2021-05-03 12:05:18 -04:00
Devin Doucette
e39324b347 DDC: Changed FCacheRecord to be reference-counted instead of uniquely owned
#rb Zousar.Shaker
#rnx

[CL 16184511 by Devin Doucette in ue5-main branch]
2021-05-03 11:41:14 -04:00
Devin Doucette
0a560db3a0 DDC: Added FPayload::Null and FPayloadId::Null
#rb Zousar.Shaker
#rnx

[CL 16184503 by Devin Doucette in ue5-main branch]
2021-05-03 11:40:06 -04:00
Devin Doucette
7149637a27 DDC: Moved Private::CreateBuildDefinition[Builder] out of the header to avoid them being used externally
#rb Zousar.Shaker
#rnx

[CL 16184493 by Devin Doucette in ue5-main branch]
2021-05-03 11:38:45 -04:00
Devin Doucette
0baafa125a DDC: Added the start of the new build interface UE::DerivedData::IBuild
This only includes the functionality required to create a build definition, and does not include the functionalty required to execute a build from the build definition.

#rb Zousar.Shaker
#rnx
#preflight 608cf5ef7343ea00016e58f4

[CL 16183533 by Devin Doucette in ue5-main branch]
2021-05-03 09:25:48 -04:00