LYN-4128 EditorPythonBindings.Editor in debug does not load (missing python_d.dll)

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

@ -13,24 +13,11 @@ if(NOT PAL_TRAIT_BUILD_HOST_TOOLS)
return() return()
endif() endif()
set(static_files pythonassetbuilder_common_files.cmake)
set(editor_files pythonassetbuilder_editor_files.cmake)
set(shared_files pythonassetbuilder_shared_files.cmake)
set(static_dependencies
3rdParty::Python
Gem::EditorPythonBindings.Static
AZ::AssetBuilderSDK
)
set(editor_dependencies
Gem::EditorPythonBindings.Static
AZ::AssetBuilderSDK
)
ly_add_target( ly_add_target(
NAME PythonAssetBuilder.Static STATIC NAME PythonAssetBuilder.Static STATIC
NAMESPACE Gem NAMESPACE Gem
FILES_CMAKE FILES_CMAKE
${static_files} pythonassetbuilder_common_files.cmake
PLATFORM_INCLUDE_FILES PLATFORM_INCLUDE_FILES
Source/Platform/Common/${PAL_TRAIT_COMPILER_ID}/pythonassetbuilder_static_${PAL_TRAIT_COMPILER_ID_LOWERCASE}.cmake Source/Platform/Common/${PAL_TRAIT_COMPILER_ID}/pythonassetbuilder_static_${PAL_TRAIT_COMPILER_ID_LOWERCASE}.cmake
INCLUDE_DIRECTORIES INCLUDE_DIRECTORIES
@ -43,7 +30,9 @@ ly_add_target(
PRIVATE PRIVATE
AZ::AzCore AZ::AzCore
PUBLIC PUBLIC
${static_dependencies} 3rdParty::Python
Gem::EditorPythonBindings.Static
AZ::AssetBuilderSDK
AZ::AzToolsFramework AZ::AzToolsFramework
) )
@ -52,8 +41,8 @@ ly_add_target(
NAMESPACE Gem NAMESPACE Gem
FILES_CMAKE FILES_CMAKE
${editor_files} pythonassetbuilder_editor_files.cmake
${shared_files} pythonassetbuilder_shared_files.cmake
PLATFORM_INCLUDE_FILES PLATFORM_INCLUDE_FILES
Source/Platform/Common/${PAL_TRAIT_COMPILER_ID}/pythonassetbuilder_static_${PAL_TRAIT_COMPILER_ID_LOWERCASE}.cmake Source/Platform/Common/${PAL_TRAIT_COMPILER_ID}/pythonassetbuilder_static_${PAL_TRAIT_COMPILER_ID_LOWERCASE}.cmake
INCLUDE_DIRECTORIES INCLUDE_DIRECTORIES
@ -64,7 +53,8 @@ ly_add_target(
Include Include
BUILD_DEPENDENCIES BUILD_DEPENDENCIES
PRIVATE PRIVATE
${editor_dependencies} Gem::EditorPythonBindings.Static
AZ::AssetBuilderSDK
RUNTIME_DEPENDENCIES RUNTIME_DEPENDENCIES
Gem::EditorPythonBindings.Editor Gem::EditorPythonBindings.Editor
) )

@ -105,7 +105,7 @@ function(ly_get_runtime_dependencies ly_RUNTIME_DEPENDENCIES ly_TARGET)
set(skip_imported TRUE) set(skip_imported TRUE)
endif() endif()
endif() endif()
if(target_type MATCHES "(INTERFACE_LIBRARY|STATIC_LIBRARY)") if(target_type MATCHES "(STATIC_LIBRARY)")
# No need to copy these dependencies since the outputs are not used at runtime # No need to copy these dependencies since the outputs are not used at runtime
set(skip_imported TRUE) set(skip_imported TRUE)
endif() endif()

Loading…
Cancel
Save