LYN-2524: Updates for PR feedback. Simplify path building, fix whitespace.
This commit is contained in:
+1
-10
@@ -35,16 +35,7 @@ namespace AzFramework::AssetSystem::Platform
|
||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||
{
|
||||
// Check for existence of one under a "bin" directory, i.e. engineRoot is an SDK structure.
|
||||
assetProcessorPath.Assign(engineRoot);
|
||||
assetProcessorPath /= "bin";
|
||||
#if defined(AZ_DEBUG_BUILD)
|
||||
assetProcessorPath /= "debug";
|
||||
#elif defined(AZ_PROFILE_BUILD)
|
||||
assetProcessorPath /= "profile";
|
||||
#else
|
||||
assetProcessorPath /= "release";
|
||||
#endif
|
||||
assetProcessorPath /= "AssetProcessor";
|
||||
assetProcessorPath = AZ::IO::FixedMaxPath{engineRoot} / "bin" / AZ_BUILD_CONFIGURATION_TYPE / "AssetProcessor";
|
||||
|
||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||
{
|
||||
|
||||
+1
-10
@@ -34,16 +34,7 @@ namespace AzFramework::AssetSystem::Platform
|
||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||
{
|
||||
// Check for existence of one under a "bin" directory, i.e. engineRoot is an SDK structure.
|
||||
assetProcessorPath.Assign(engineRoot);
|
||||
assetProcessorPath /= "bin";
|
||||
#if defined(AZ_DEBUG_BUILD)
|
||||
assetProcessorPath /= "debug";
|
||||
#elif defined(AZ_PROFILE_BUILD)
|
||||
assetProcessorPath /= "profile";
|
||||
#else
|
||||
assetProcessorPath /= "release";
|
||||
#endif
|
||||
assetProcessorPath /= "AssetProcessor.app";
|
||||
assetProcessorPath = AZ::IO::FixedMaxPath{engineRoot} / "bin" / AZ_BUILD_CONFIGURATION_TYPE / "AssetProcessor.app";
|
||||
|
||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||
{
|
||||
|
||||
+1
-10
@@ -71,16 +71,7 @@ namespace AzFramework::AssetSystem::Platform
|
||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||
{
|
||||
// Check for existence of one under a "bin" directory, i.e. engineRoot is an SDK structure.
|
||||
assetProcessorPath.Assign(engineRoot);
|
||||
assetProcessorPath /= "bin";
|
||||
#if defined(AZ_DEBUG_BUILD)
|
||||
assetProcessorPath /= "debug";
|
||||
#elif defined(AZ_PROFILE_BUILD)
|
||||
assetProcessorPath /= "profile";
|
||||
#else
|
||||
assetProcessorPath /= "release";
|
||||
#endif
|
||||
assetProcessorPath /= "AssetProcessor.exe";
|
||||
assetProcessorPath = AZ::IO::FixedMaxPath{engineRoot} / "bin" / AZ_BUILD_CONFIGURATION_TYPE / "AssetProcessor.exe";
|
||||
|
||||
if (!AZ::IO::SystemFile::Exists(assetProcessorPath.c_str()))
|
||||
{
|
||||
|
||||
@@ -184,7 +184,7 @@ function(ly_setup_cmake_install)
|
||||
|
||||
install(DIRECTORY "${CMAKE_SOURCE_DIR}/cmake"
|
||||
DESTINATION .
|
||||
REGEX "Findo3de.cmake" EXCLUDE
|
||||
REGEX "Findo3de.cmake" EXCLUDE
|
||||
REGEX "Platform\/.*\/BuiltInPackages_.*\.cmake" EXCLUDE
|
||||
)
|
||||
install(
|
||||
|
||||
Reference in New Issue
Block a user