Initial commit

This commit is contained in:
alexpete
2021-03-05 11:26:34 -08:00
commit a10351f38d
27091 changed files with 5521199 additions and 0 deletions
@@ -0,0 +1,19 @@
; this is an override config that should "add" the provo platform
; and "remove" the server platform.
[Platform provo]
tags=console, renderer
[Platforms]
server=disabled
provo=enabled
; this ONLY overrides the "provo" value
; becuase this is being loaded on top of the defaults, this should LEAVE the others
; as they are.
[RC i_caf]
provo=copy
; this will remove "mov" from the default configuration
[RC mov]
ignore=true
@@ -0,0 +1,22 @@
; Used by unit tests. This is a broken configuration file.
[Platform pc]
tags=tools,renderer
[Platform osx_gl]
tags=tools,renderer
[Platforms]
es3=enabled ; note - bad platform - its not one of the above ones!
; without a scan folder, it is an invalid file.
[ScanFolder Game]
watch=@ROOT@/@GAMENAME@
recursive=1
order=0
; without at least one recognizer, its not an invalid file. (this is not what this unit test is checking)
[RC i_caf]
glob=*.i_caf
params=copy
priority=5
@@ -0,0 +1,13 @@
; Used by unit tests. This is a broken configuration file.
; without a scan folder, it is an invalid file.
[ScanFolder Game]
watch=@ROOT@/@GAMENAME@
recursive=1
order=0
; without at least one recognizer, its an invalid file.
[RC i_caf]
glob=*.i_caf
params=copy
priority=5
@@ -0,0 +1,15 @@
; Used by unit tests. This is a broken configuration file.
[Platform pc]
tags=tools,renderer
[Platform osx_gl]
tags=tools,renderer
; without a scan folder, it is an invalid file.
; without at least one recognizer, its not an invalid file. (this is not what this unit test is checking)
[RC i_caf]
glob=*.i_caf
params=copy
priority=5
@@ -0,0 +1,16 @@
; Used by unit tests. This is a broken configuration file.
[Platform pc]
tags=tools,renderer
[Platform osx_gl]
tags=tools,renderer
; without a scan folder, it is an invalid file.
[ScanFolder Game]
watch=@ROOT@/@GAMENAME@
recursive=1
order=0
; without at least one recognizer, its an invalid file.
@@ -0,0 +1,116 @@
; this is a regular config file that ought to load successfully.
[Platform pc]
tags=tools,renderer
[Platform es3]
tags=android,mobile,renderer
[Platform osx_gl]
tags=tools,renderer
[Platform server]
tags=server
; we define an xenia platform in order to make sure that it does NOT show up anywhere
[Platform xenia]
tags=console,renderer
; for the purposes of this test, we enable only server and es3, but we make sure the CURRENT_PLATFORM is auto enabled.
[Platforms]
;pc=enabled
es3=enabled
;ios=enabled
;osx_gl=enabled
;xenia=enabled
;provo=enabled
server=enabled
; ---- The number of worker jobs, 0 means use the number of Logical Cores
[Jobs]
minJobs=1
maxJobs=0
[MetaDataTypes]
exportsettings=
animsettings=i_caf
Animations/SkeletonList.xml=i_caf
cbc=abc
fbx.assetinfo=fbx
[ScanFolder Game]
watch=@ROOT@/@GAMENAME@
; use a special display name here to make sure macros work
display=@GAMENAME@ Scan Folder
recursive=1
order=0
; this test makes sure that those macros make sense and are present as well as that order is preserved.
; it also makes sure that the friendly name ("FeatureTests") is used, if no display is present and does not lose its case.
[ScanFolder FeatureTests]
watch=@ROOT@/@GAMENAME@FeatureTests
output=featuretestsoutputfolder
recursive=0
order=5000
; this test makes sure that the scan folders system uses the portable key of the scan Folder to find duplicates.
; (which is constructed from its name in the square brackets)
; instead of other attributes such as the watch folder, or output prefix.
[ScanFolder FeatureTests2]
watch=@ROOT@/@GAMENAME@FeatureTests
output=featuretestsoutputfolder
recursive=0
order=6000
[Exclude HoldFiles]
pattern=.*\\/Levels\\/.*_hold\\/.*
[Exclude TempFiles]
pattern=.*\\/\\$tmp[0-9]*_.*
[RC i_caf]
glob=*.i_caf
params=defaultparams
; server should not appear
server=skip
; es3 should have this overridden
es3=mobile
; xenia is allowed here but should be skipped
xenia=copy
; host should have defaultparams
; make sure priority is used.
priority=5
checkServer=true
[RC caf]
glob=*.caf
params=copy
; all platforms with 'renderer' tag should have these params applied. (so host platform and es3 but not server)
renderer=rendererparams
[RC mov]
glob=*.mov
params=copy
; this one proves that platforms override more broader tags (es3 has both the es3 platform and the renderer tag)
es3=platformspecificoverride
; hosts should use this
renderer=rendererparams
; this tests to make sure that even if "params" is missing, it is assumed to be default operation
; this is because if you wanted to skip a platform, we have a specific verb for that ('skip') and simply omitting the defaults means
; that you just want the default behavior. only the platforms indicated have a role
[RC rend]
glob=*.rend
renderer=rendererparams
; this tests to make sure that even if you have no params at all, it is assumed to be default operation
[RC alldefault]
glob=*.alldefault
; this tests to make sure if you set default to skip you can still specify one platform to compile on
[RC skipallbutone]
glob=*.files
params=skip
server=copy
@@ -0,0 +1,129 @@
; this is a regular config file that ought to load successfully.
[Platform pc]
tags=tools,renderer
[Platform es3]
tags=android,mobile,renderer
[Platform ios]
tags=mobile,renderer
[Platform osx_gl]
tags=tools,renderer
[Platform server]
tags=server
; we define an test platform in order to make sure that it does NOT show up anywhere
[Platform test]
tags=console,renderer
; for the purposes of this test, we enable only server and es3, but we make sure the CURRENT_PLATFORM is auto enabled.
[Platforms]
;pc=enabled
es3=enabled
ios=enabled
;osx_gl=enabled
;test=enabled
server=enabled
; ---- The number of worker jobs, 0 means use the number of Logical Cores
[Jobs]
minJobs=1
maxJobs=0
[MetaDataTypes]
exportsettings=
animsettings=i_caf
Animations/SkeletonList.xml=i_caf
cbc=abc
fbx.assetinfo=fbx
[ScanFolder Game]
watch=@ROOT@/@GAMENAME@
display=gameoutput
recursive=1
order=0
[ScanFolder Editor]
watch=@ENGINEROOT@/Editor
display=editoroutput
recursive=1
order=30000
include=tools,renderer
exclude=ios
[ScanFolder Folder1]
watch=@ENGINEROOT@/Folder1
display=folder1output
recursive=1
order=50000
include=es3
[ScanFolder Folder2]
watch=@ENGINEROOT@/Folder2
display=folder2output
recursive=1
order=60000
exclude=es3
[ScanFolder Folder3]
watch=@ENGINEROOT@/Folder3
display=folder3output
recursive=1
order=70000
include=test
[Exclude HoldFiles]
pattern=.*\\/Levels\\/.*_hold\\/.*
[Exclude TempFiles]
pattern=.*\\/\\$tmp[0-9]*_.*
[RC i_caf]
glob=*.i_caf
params=defaultparams
; server should not appear
server=skip
; es3 should have this overridden
es3=mobile
test=copy
; host should have defaultparams
; make sure priority is used.
priority=5
[RC caf]
glob=*.caf
params=copy
; all platforms with 'renderer' tag should have these params applied. (so host platform and es3 but not server)
renderer=rendererparams
[RC mov]
glob=*.mov
params=copy
; this one proves that platforms override more broader tags (es3 has both the es3 platform and the renderer tag)
es3=platformspecificoverride
; hosts should use this
renderer=rendererparams
; this tests to make sure that even if "params" is missing, it is assumed to be default operation
; this is because if you wanted to skip a platform, we have a specific verb for that ('skip') and simply omitting the defaults means
; that you just want the default behavior. only the platforms indicated have a role
[RC rend]
glob=*.rend
renderer=rendererparams
; this tests to make sure that even if you have no params at all, it is assumed to be default operation
[RC alldefault]
glob=*.alldefault
; this tests to make sure if you set default to skip you can still specify one platform to compile on
[RC skipallbutone]
glob=*.files
params=skip
server=copy
+12
View File
@@ -0,0 +1,12 @@
<RCC>
<qresource prefix="testdata">
<file>config_broken_badplatform/AssetProcessorPlatformConfig.ini</file>
<file>config_broken_noscans/AssetProcessorPlatformConfig.ini</file>
<file>config_broken_recognizers/AssetProcessorPlatformConfig.ini</file>
<file>config_broken_noplatform/AssetProcessorPlatformConfig.ini</file>
<file>config_regular/AssetProcessorPlatformConfig.ini</file>
<file>config_regular_platform_scanfolder/AssetProcessorPlatformConfig.ini</file>
<file>EmptyDummyProject/AssetProcessorGamePlatformConfig.ini</file>
<file>DummyProject/AssetProcessorGamePlatformConfig.ini</file>
</qresource>
</RCC>