Skip to content

Commit e8840f5

Browse files
committed
Release 6.6.0
* GLES2, GLES3, Vulkan.SdfFonts * Added support for MTSDF fonts * Added contour rendering * Vulkan.AntiAliasing * App failed to run on on Android Pixel6 due to incorrect descriptor pool size allocations. * Enabled on all platforms. * Vulkan.Gears converted to use the common vulkan demo host. * VulkanInfo added vulkan profiles support * Misc * Arcball camera control can now be inverted. * Google Angle compatibility testing. * BitmapFont V4 with support for MSDF & MTSDF fonts. * Vulkan demo host fixed a validation layer warning. * Updated to latest Android Studio version. * Updated OpenCV to 4.1.0 * Updated RapidVulkan to 1.3.296 * Updated PuxiXML top 1.15 * Updated FMT to 11.1.2 Change-Id: I11db6be934ed88d20fd5b6993008c85e7b2d941b
1 parent cb849f5 commit e8840f5

File tree

292 files changed

+3741
-1029
lines changed

Some content is hidden

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

292 files changed

+3741
-1029
lines changed

.Config/FslBuildGen/BuildExternal/Commands/PackageRecipeValidateCommandAddTool.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
from FslBuildGen.DataTypes import BuildRecipeValidateMethod
3939

4040
class PackageRecipeValidateCommandAddTool(PackageRecipeValidateCommand):
41-
def __init__(self, name: str, minVersion: Optional[str], versionCommand: Optional[str], versionRegEx: Optional[str], help: Optional[str]) -> None:
41+
def __init__(self, name: str, minVersion: Optional[str], versionCommand: Optional[str], versionRegEx: Optional[str],
42+
versionSplitChar: str, help: Optional[str]) -> None:
4243
super().__init__("AddTool", BuildRecipeValidateCommand.AddTool, help)
4344
if '\\' in name:
4445
raise Exception("A path can not contain backslash '\\': '{0}'".format(name))
@@ -49,6 +50,7 @@ def __init__(self, name: str, minVersion: Optional[str], versionCommand: Optiona
4950
self.MinVersion = minVersion
5051
self.VersionCommand = versionCommand
5152
self.VersionRegEx = versionRegEx
53+
self.VersionSplitChar = versionSplitChar
5254
self.__ValidateVersionCheck()
5355

5456
def __ValidateVersionCheck(self) -> None:

.Config/FslBuildGen/BuildExternal/Commands/PackageRecipeValidateCommandFindExecutableFileInPath.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
from FslBuildGen.DataTypes import BuildRecipeValidateCommand
4242

4343
class PackageRecipeValidateCommandFindExecutableFileInPath(PackageRecipeValidateCommand):
44-
def __init__(self, name: str, alternatives: List[str], expectedPath: Optional[str], minVersion: Optional[str], versionCommand: Optional[str], versionRegEx: Optional[str],
44+
def __init__(self, name: str, alternatives: List[str], expectedPath: Optional[str], minVersion: Optional[str], versionCommand: Optional[str],
45+
versionRegEx: Optional[str], versionSplitChar: str,
4546
addOnErrorWarning: List[PackageRecipeValidateCommandFindExecutableFileInPathAddOnErrorWarning], help: Optional[str]) -> None:
4647
super().__init__("FindFileInPath", BuildRecipeValidateCommand.FindExecutableFileInPath, help)
4748

@@ -63,6 +64,7 @@ def __init__(self, name: str, alternatives: List[str], expectedPath: Optional[st
6364
self.MinVersion = minVersion
6465
self.VersionCommand = versionCommand
6566
self.VersionRegEx = versionRegEx
67+
self.VersionSplitChar = versionSplitChar
6668

6769
self.AddOnErrorWarning = addOnErrorWarning
6870

.Config/FslBuildGen/BuildExternal/PackageRecipeInstallationUtil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def ToPackageRecipeValidateCommandAddLib(pathBuilder: PathBuilder, command: XmlR
8282

8383
@staticmethod
8484
def ToPackageRecipeValidateCommandAddTool(pathBuilder: PathBuilder, command: XmlRecipeValidateCommandAddTool) -> PackageRecipeValidateCommandAddTool:
85-
return PackageRecipeValidateCommandAddTool(command.Name, command.MinVersion, command.VersionCommand, command.VersionRegEx, command.Help)
85+
return PackageRecipeValidateCommandAddTool(command.Name, command.MinVersion, command.VersionCommand, command.VersionRegEx, command.VersionSplitChar, command.Help)
8686

8787
@staticmethod
8888
def ToPackageRecipeValidateCommandEnvironmentVariable(command: XmlRecipeValidateCommandEnvironmentVariable) -> PackageRecipeValidateCommandEnvironmentVariable:
@@ -105,7 +105,7 @@ def ToPackageRecipeValidateCommandFindExecutableFileInPath(command: XmlRecipeVal
105105
addOnErrorWarningList = PackageRecipeInstallationUtil.ToPackageRecipeValidateCommandFindExecutableFileInPathAddOnErrorWarningList(command.AddOnErrorWarning)
106106
return PackageRecipeValidateCommandFindExecutableFileInPath(command.Name, command.Alternatives, command.ExpectedPath,
107107
command.MinVersion, command.VersionCommand, command.VersionRegEx,
108-
addOnErrorWarningList, command.Help)
108+
command.VersionSplitChar, addOnErrorWarningList, command.Help)
109109

110110
@staticmethod
111111
def ToPackageRecipeValidateCommandFindFileInPath(command: XmlRecipeValidateCommandFindFileInPath) -> PackageRecipeValidateCommandFindFileInPath:

.Config/FslBuildGen/BuildExternal/ValidationEngine.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,8 @@ def __CheckOnErrorWarnings(self, foundVersionList: List[int], versionRegEx: str,
318318
self.__CheckOnErrorWarning(foundVersionList, versionRegEx, warning)
319319

320320
def __TryValidateCommandVersion(self, cmd: str, versionCommand: str, versionRegEx: str, minVersion: Optional[str],
321-
addOnErrorWarning: List[PackageRecipeValidateCommandFindExecutableFileInPathAddOnErrorWarning]) -> List[int]:
321+
addOnErrorWarning: List[PackageRecipeValidateCommandFindExecutableFileInPathAddOnErrorWarning],
322+
versionSplitChar: str) -> List[int]:
322323
output = ""
323324
try:
324325
runCmd = [cmd, versionCommand]
@@ -343,11 +344,16 @@ def __TryValidateCommandVersion(self, cmd: str, versionCommand: str, versionRegE
343344
if len(match.groups()) != 1:
344345
self.__Log.DoPrintWarning("The regex '{0}' did not capture a group with version information".format(versionRegEx))
345346
matchResult = match.group(1)
347+
return self.__TryParseVersion(versionRegEx, minVersion, addOnErrorWarning, matchResult, versionSplitChar)
348+
349+
350+
def __TryParseVersion(self, versionRegEx: str, minVersion: Optional[str],
351+
addOnErrorWarning: List[PackageRecipeValidateCommandFindExecutableFileInPathAddOnErrorWarning], matchResult: str, splitChar: str) -> List[int]:
346352
try:
347353
# time to parse the version string
348-
foundVersionList = Util.ParseVersionString(matchResult, maxValues=4)
354+
foundVersionList = Util.ParseVersionString(matchResult, splitChar=splitChar, maxValues=4)
349355
if minVersion is not None:
350-
minVersionList = Util.ParseVersionString(minVersion, maxValues=4)
356+
minVersionList = Util.ParseVersionString(minVersion, splitChar=splitChar, maxValues=4)
351357
if len(minVersionList) > len(foundVersionList):
352358
self.__Log.DoPrintWarning("The regex '{0}' did not capture the enough version number elements to compare against the min version '{1}'".format(versionRegEx, minVersion))
353359
return []
@@ -383,7 +389,8 @@ def __ValidateFindExecutableFileInPath(self, rErrorRecordList: List[ErrorRecord]
383389
if result and value is not None and command.VersionCommand is not None:
384390
if command.VersionCommand is None or command.VersionRegEx is None:
385391
raise Exception("Internal error")
386-
foundVersion = self.__TryValidateCommandVersion(value, command.VersionCommand, command.VersionRegEx, command.MinVersion, command.AddOnErrorWarning)
392+
foundVersion = self.__TryValidateCommandVersion(value, command.VersionCommand, command.VersionRegEx, command.MinVersion,
393+
command.AddOnErrorWarning, command.VersionSplitChar)
387394
result = len(foundVersion) > 0
388395

389396
# Cache information about what we discovered
@@ -489,7 +496,7 @@ def __ValidateAddTool(self, rErrorRecordList: List[ErrorRecord],
489496
if result and value is not None and command.VersionCommand is not None:
490497
if command.VersionCommand is None or command.VersionRegEx is None:
491498
raise Exception("Internal error")
492-
foundVersion = self.__TryValidateCommandVersion(value, command.VersionCommand, command.VersionRegEx, command.MinVersion, [])
499+
foundVersion = self.__TryValidateCommandVersion(value, command.VersionCommand, command.VersionRegEx, command.MinVersion, [], command.VersionSplitChar)
493500
result = len(foundVersion) > 0
494501

495502
exeRecord = PackageRecipeResultFoundExecutable(command.Name, command.Name, value, self.__ToVersion(foundVersion))

.Config/FslBuildGen/Config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def __init__(self, log: Log,
8686
self.GroupException = True # type: bool
8787
# Variant extension is getting closer to working, so lets enable it
8888
self.AllowVariantExtension = True # type: bool
89+
self.AllowExeDependency = toolConfig.ProjectRootConfig.AllowExeDependency # type: bool
8990
self.GenFileName = toolConfig.GenFileName
9091

9192
self.AllowDevelopmentPlugins = allowDevelopmentPlugins

.Config/FslBuildGen/Generator/CMakeGeneratorUtil.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def __init__(self, sdkConfigTemplatePath: str, strTemplatePath: str, overrideDir
108108
self.PackageDependencyTargetLinkLibraries = self.__ReadFile("PackageDependency_target_link_libraries.txt")
109109
self.PackageDependencyTargetCompileDefinitions = self.__ReadFile("PackageDependency_target_compile_definitions.txt")
110110
self.PackageDependencyFindPackage = self.__ReadFile("PackageDependency_find_package.txt")
111+
self.PackageDependencyFindPackageInternal = self.__ReadOptionalFile("PackageDependency_find_package_internal.txt", self.PackageDependencyFindPackage)
111112
self.SnippetTargetCompileOptionsDefault = self.__ReadFile("Snippet_TargetCompileOptions_Default.txt")
112113
self.SnippetTargetCompileFeaturesDefault = self.__ReadFile("Snippet_TargetCompileFeatures_Default.txt")
113114
self.SnippetTargetCompileFeaturesInterface = self.__ReadFile("Snippet_TargetCompileFeatures_Interface.txt")

.Config/FslBuildGen/Generator/GeneratorAndroidGradleCMake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def __GenerateCMakeFile(self, config: Config,
213213
sourceFiles = CMakeGeneratorUtil.ExpandPathAndJoin(toolConfig, package, package.ResolvedBuildSourceFiles)
214214
linkLibrariesDirectDependencies = CMakeGeneratorUtil.BuildTargetLinkLibrariesForDirectDependencies(config, package,
215215
template.PackageDependencyTargetLinkLibraries,
216-
template.PackageDependencyFindPackage,
216+
template.PackageDependencyFindPackageInternal,
217217
ignoreLibs)
218218
linkLibrariesDirectDependencies = linkLibrariesDirectDependencies.replace(Variable.RecipeVariant, "${ANDROID_ABI}")
219219
directDefinitions = CMakeGeneratorUtil.BuildDirectDefinitions(config, package, template.PackageDependencyTargetCompileDefinitions)

.Config/FslBuildGen/Generator/GeneratorCMake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __GenerateCMakeFile(self, log: Log, toolConfig: ToolConfig, cmakeBuildPackag
217217

218218
linkLibrariesDirectDependencies = CMakeGeneratorUtil.BuildTargetLinkLibrariesForDirectDependencies(log, package,
219219
template.PackageDependencyTargetLinkLibraries,
220-
template.PackageDependencyFindPackage)
220+
template.PackageDependencyFindPackageInternal)
221221

222222
extraDefines = None
223223
if generatorMode == CMakeGeneratorMode.Tidy and not package.IsVirtual:

.Config/FslBuildGen/Main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,15 @@ def Resolve(self, platformContext: PlatformContext,
165165
configIsDryRun = self.Config.IsDryRun
166166
configIgnoreNotSupported = self.Config.IgnoreNotSupported
167167
configAllowVariantExtension = self.Config.AllowVariantExtension
168+
configAllowExeDependency = self.Config.AllowExeDependency
168169
configGroupException = self.Config.GroupException
169170
toolConfig = self.Config.ToolConfig
170171

171172
packageResolver = PackageResolver(log, configBuildDir, configIsDryRun, configIgnoreNotSupported, configAllowVariantExtension,
172173
configGroupException, toolConfig, platformContext, sourceGenFiles, autoAddRecipeExternals, fullResolve,
173174
self.MarkExternalLibFirstUse,
174175
packageFilters.RecipeFilterManager, packageManagerFilter, externalVariantConstraints,
175-
engineResolveConfig, self.__writeGraph, filterMode)
176+
engineResolveConfig, self.__writeGraph, filterMode, configAllowExeDependency)
176177
self.IsFullResolve = fullResolve
177178
self.Packages = packageResolver.Packages
178179
return self.Packages

.Config/FslBuildGen/PackageBuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(self, log: Log, configBuildDir: str, configIgnoreNotSupported: bool
6565
platformName: str, hostPlatformName: str, basicBuildConfig: BasicBuildConfig, generatorInfo: GeneratorInfo,
6666
genFiles: List[XmlGenFile], packageManagerFilter: PackageManagerFilter,
6767
externalVariantConstraints: ExternalVariantConstraints, engineResolveConfig: EngineResolveConfig,
68-
filterMode: FilterMode,
68+
filterMode: FilterMode, allowExeDependency: bool,
6969
logVerbosity: int = 1, writeGraph: bool = False) -> None:
7070
super().__init__()
7171

@@ -74,7 +74,7 @@ def __init__(self, log: Log, configBuildDir: str, configIgnoreNotSupported: bool
7474

7575
packageManager = PackageManager(log, configBuildDir, configIgnoreNotSupported, toolConfig, platformName, hostPlatformName, basicBuildConfig,
7676
generatorInfo, genFiles, packageManagerFilter, externalVariantConstraints, engineResolveConfig,
77-
writeGraph, filterMode)
77+
writeGraph, filterMode, allowExeDependency)
7878
packages = packageManager.Packages
7979

8080
# Build a graph containing all packages

0 commit comments

Comments
 (0)