3
0

CMakeLists.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. if(NOT PAL_TRAIT_BUILD_HOST_TOOLS)
  9. return()
  10. endif()
  11. set(common_source_dir ${CMAKE_CURRENT_LIST_DIR}/Source/Platform/Common)
  12. include(${CMAKE_CURRENT_SOURCE_DIR}/Source/Platform/${PAL_PLATFORM_NAME}/PAL_${PAL_PLATFORM_NAME_LOWERCASE}.cmake)
  13. if(NOT PAL_TRAIT_BUILD_QTFORPYTHON_SUPPORTED)
  14. return()
  15. endif()
  16. ly_add_target(
  17. NAME QtForPython.Editor.Static STATIC
  18. NAMESPACE Gem
  19. FILES_CMAKE
  20. qtforpython_editor_files.cmake
  21. ${CMAKE_CURRENT_SOURCE_DIR}/Source/Platform/${PAL_PLATFORM_NAME}/qtforpython_editor_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
  22. PLATFORM_INCLUDE_FILES
  23. ${common_source_dir}/${PAL_TRAIT_COMPILER_ID}/qtforpython_${PAL_TRAIT_COMPILER_ID_LOWERCASE}.cmake
  24. INCLUDE_DIRECTORIES
  25. PUBLIC
  26. Include
  27. Source
  28. BUILD_DEPENDENCIES
  29. PUBLIC
  30. AZ::AzCore
  31. AZ::AzFramework
  32. AZ::AzToolsFramework
  33. 3rdParty::Qt::Widgets
  34. Gem::EditorPythonBindings.Static
  35. RUNTIME_DEPENDENCIES
  36. 3rdParty::pyside2
  37. 3rdParty::Qt::Test
  38. )
  39. ly_add_target(
  40. NAME QtForPython.Editor GEM_MODULE
  41. NAMESPACE Gem
  42. FILES_CMAKE
  43. qtforpython_shared_files.cmake
  44. INCLUDE_DIRECTORIES
  45. PRIVATE
  46. ${CMAKE_CURRENT_SOURCE_DIR}/Source/Platform/${PAL_PLATFORM_NAME}
  47. BUILD_DEPENDENCIES
  48. PRIVATE
  49. Gem::QtForPython.Editor.Static
  50. RUNTIME_DEPENDENCIES
  51. 3rdParty::pyside2::Tools
  52. Gem::EditorPythonBindings.Editor
  53. )
  54. # the above target is used in both builders like AssetProcessor and Tools like the Editor
  55. # but is not used in clients or servers
  56. ly_create_alias(NAME QtForPython.Tools NAMESPACE Gem TARGETS Gem::QtForPython.Editor)
  57. ly_create_alias(NAME QtForPython.Builders NAMESPACE Gem TARGETS Gem::QtForPython.Editor)