Asset Processor: Remove gem loading from AP (#6488)
* AssetBuilder sends builder registration network message to AP Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Add AP activating status message Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * First builder handles registration. Fixed deadlock caused by AP and AssetBuilder waiting on each other when registering by moving AP builder start code to a thread Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Clean up external builder registration Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Add thread description for builder manager idle thread Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Remove gem loading Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Clean up builder registration and remove unused functions Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Remove PostActivate call from batch application since it will be called after builders are registered Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Removal external builder dependency scanning since we no longer support builder dlls Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Fix missing bus disconnect Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Remove unused variable Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Moved AP-AssetBuilder specific types into AssetBuilder.Static library. Also removed some unused/old code Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
This commit is contained in:
@@ -231,44 +231,6 @@ bool ApplicationManager::InitiatedShutdown() const
|
||||
return m_duringShutdown;
|
||||
}
|
||||
|
||||
void ApplicationManager::GetExternalBuilderFileList(QStringList& externalBuilderModules)
|
||||
{
|
||||
externalBuilderModules.clear();
|
||||
|
||||
static const char* builder_folder_name = "Builders";
|
||||
|
||||
// LY_ASSET_BUILDERS is defined by the CMakeLists.txt. The asset builders add themselves to a variable that
|
||||
// is populated to allow selective building of those asset builder targets.
|
||||
// This allows left over Asset builders in the output directory to not be loaded by the AssetProcessor
|
||||
#if !defined(LY_ASSET_BUILDERS)
|
||||
#error LY_ASSET_BUILDERS was not defined for ApplicationManager.cpp
|
||||
#endif
|
||||
|
||||
QDir builderDir = QDir::toNativeSeparators(QString(this->m_frameworkApp.GetExecutableFolder()));
|
||||
builderDir.cd(QString(builder_folder_name));
|
||||
if (builderDir.exists())
|
||||
{
|
||||
AZStd::vector<AZStd::string> tokens;
|
||||
AZ::StringFunc::Tokenize(AZStd::string_view(LY_ASSET_BUILDERS), tokens, ',');
|
||||
AZStd::string builderLibrary;
|
||||
for (const AZStd::string& token : tokens)
|
||||
{
|
||||
QString assetBuilderPath(token.c_str());
|
||||
if (builderDir.exists(assetBuilderPath))
|
||||
{
|
||||
externalBuilderModules.push_back(builderDir.absoluteFilePath(assetBuilderPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (externalBuilderModules.empty())
|
||||
{
|
||||
AZ_TracePrintf(AssetProcessor::ConsoleChannel, "AssetProcessor was unable to locate any external builders\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
QDir ApplicationManager::GetSystemRoot() const
|
||||
{
|
||||
return m_systemRoot;
|
||||
@@ -459,15 +421,6 @@ void ApplicationManager::PopulateApplicationDependencies()
|
||||
m_filesOfInterest.push_back(dir.absoluteFilePath(pathWithPlatformExtension));
|
||||
}
|
||||
|
||||
// Get the external builder modules to add to the files of interest
|
||||
QStringList builderModuleFileList;
|
||||
GetExternalBuilderFileList(builderModuleFileList);
|
||||
for (const QString& builderModuleFile : builderModuleFileList)
|
||||
{
|
||||
m_filesOfInterest.push_back(builderModuleFile);
|
||||
}
|
||||
|
||||
|
||||
QDir assetRoot;
|
||||
AssetUtilities::ComputeAssetRoot(assetRoot);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user