Bug and improvements to Editor/AP debugging settings (#1146)

main
Esteban Papp 5 years ago committed by GitHub
parent 4a8375748f
commit 50d6e36ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -191,8 +191,8 @@ ly_add_translations(
) )
ly_add_dependencies(Editor AssetProcessor) ly_add_dependencies(Editor AssetProcessor)
if(LY_FIRST_PROJECT_PATH) if(LY_DEFAULT_PROJECT_PATH)
set_property(TARGET Editor APPEND PROPERTY VS_DEBUGGER_COMMAND_ARGUMENTS "--project-path=\"${LY_FIRST_PROJECT_PATH}\"") set_property(TARGET Editor APPEND PROPERTY VS_DEBUGGER_COMMAND_ARGUMENTS "--project-path=\"${LY_DEFAULT_PROJECT_PATH}\"")
endif() endif()
################################################################################ ################################################################################

@ -125,8 +125,8 @@ ly_add_target(
AZ::AssetProcessorBatch.Static AZ::AssetProcessorBatch.Static
) )
if(LY_FIRST_PROJECT_PATH) if(LY_DEFAULT_PROJECT_PATH)
set_property(TARGET AssetProcessor AssetProcessorBatch APPEND PROPERTY VS_DEBUGGER_COMMAND_ARGUMENTS "--project-path=\"${LY_FIRST_PROJECT_PATH}\"") set_property(TARGET AssetProcessor AssetProcessorBatch APPEND PROPERTY VS_DEBUGGER_COMMAND_ARGUMENTS "--project-path=\"${LY_DEFAULT_PROJECT_PATH}\"")
endif() endif()
# Adds the AssetProcessorBatch target as a C preprocessor define so that it can be used as a Settings Registry # Adds the AssetProcessorBatch target as a C preprocessor define so that it can be used as a Settings Registry

@ -167,9 +167,6 @@ endfunction()
# Add the projects here so the above function is found # Add the projects here so the above function is found
foreach(project ${LY_PROJECTS}) foreach(project ${LY_PROJECTS})
file(REAL_PATH ${project} full_directory_path BASE_DIRECTORY ${CMAKE_SOURCE_DIR}) file(REAL_PATH ${project} full_directory_path BASE_DIRECTORY ${CMAKE_SOURCE_DIR})
if(NOT LY_FIRST_PROJECT)
ly_set(LY_FIRST_PROJECT_PATH ${full_directory_path})
endif()
string(SHA256 full_directory_hash ${full_directory_path}) string(SHA256 full_directory_hash ${full_directory_path})
# Truncate the full_directory_hash down to 8 characters to avoid hitting the Windows 260 character path limit # Truncate the full_directory_hash down to 8 characters to avoid hitting the Windows 260 character path limit
@ -182,4 +179,13 @@ foreach(project ${LY_PROJECTS})
ly_generate_project_build_path_setreg(${full_directory_path}) ly_generate_project_build_path_setreg(${full_directory_path})
add_project_json_external_subdirectories(${full_directory_path}) add_project_json_external_subdirectories(${full_directory_path})
endforeach() endforeach()
# If just one project is defined we pass it as a parameter to the applications
list(LENGTH LY_PROJECTS projects_length)
if(projects_length EQUAL "1")
list(GET LY_PROJECTS 0 project)
file(REAL_PATH ${project} full_directory_path BASE_DIRECTORY ${CMAKE_SOURCE_DIR})
ly_set(LY_DEFAULT_PROJECT_PATH ${full_directory_path})
endif()
ly_set(LY_PROJECTS_FOLDER_NAME ${LY_PROJECTS_FOLDER_NAME}) ly_set(LY_PROJECTS_FOLDER_NAME ${LY_PROJECTS_FOLDER_NAME})

Loading…
Cancel
Save