123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- #
- # Copyright (c) Contributors to the Open 3D Engine Project.
- # For complete copyright and license terms please see the LICENSE at the root of this distribution.
- #
- # SPDX-License-Identifier: Apache-2.0 OR MIT
- #
- #
- o3de_pal_dir(core_pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME} "${gem_restricted_path}" "${gem_path}" "${gem_parent_relative_path}")
- o3de_pal_dir(editor_pal_dir ${CMAKE_CURRENT_LIST_DIR}/Editor/Platform/${PAL_PLATFORM_NAME} "${gem_restricted_path}" "${gem_path}" "${gem_parent_relative_path}")
- set(editor_common_dir ${CMAKE_CURRENT_LIST_DIR}/Editor/Platform/Common)
- ly_add_target(
- NAME ${gem_name}StaticLib STATIC
- NAMESPACE Gem
- FILES_CMAKE
- emotionfx_shared_files.cmake
- MCore/mcore_files.cmake
- EMotionFX/emotionfx_files.cmake
- EMotionFX/CommandSystem/commandsystem_files.cmake
- EMotionFX/Exporters/ExporterLib/exporterlib_files.cmake
- ${core_pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
- PLATFORM_INCLUDE_FILES
- ${core_pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}.cmake
- INCLUDE_DIRECTORIES
- PUBLIC
- .
- Include
- Source
- BUILD_DEPENDENCIES
- PUBLIC
- AZ::AzCore
- AZ::AzFramework
- Legacy::CryCommon
- PUBLIC
- AZ::AtomCore
- Gem::Atom_RPI.Public
- Gem::CommonFeaturesAtom.Static
- Gem::LmbrCentral
- COMPILE_DEFINITIONS
- PUBLIC
- EMFX_DEVELOPMENT_BUILD
- EMFX_ANIMGRAPH_PROFILER_ENABLED
- )
- ly_add_target(
- NAME ${gem_name}.Static STATIC
- NAMESPACE Gem
- FILES_CMAKE
- emotionfx_files.cmake
- BUILD_DEPENDENCIES
- PUBLIC
- Gem::${gem_name}StaticLib
- )
- ly_add_target(
- NAME ${gem_name} ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
- NAMESPACE Gem
- FILES_CMAKE
- Source/Integration/System/emotionfx_module_files.cmake
- BUILD_DEPENDENCIES
- PRIVATE
- Gem::${gem_name}.Static
- RUNTIME_DEPENDENCIES
- Gem::LmbrCentral
- )
- # Inject the gem name into the Module source file
- ly_add_source_properties(
- SOURCES
- Source/Integration/System/AnimationModule.cpp
- PROPERTY COMPILE_DEFINITIONS
- VALUES
- O3DE_GEM_NAME=${gem_name}
- O3DE_GEM_VERSION=${gem_version})
- # Clients and servers use the above ${gem_name} module
- ly_create_alias(NAME ${gem_name}.Clients NAMESPACE Gem TARGETS ${gem_name})
- ly_create_alias(NAME ${gem_name}.Servers NAMESPACE Gem TARGETS ${gem_name})
- ly_create_alias(NAME ${gem_name}.Unified NAMESPACE Gem TARGETS ${gem_name})
- if (PAL_TRAIT_BUILD_HOST_TOOLS)
-
- ly_add_target(
- NAME ${gem_name}.Editor.Static STATIC
- NAMESPACE Gem
- AUTOMOC
- AUTORCC
- FILES_CMAKE
- emotionfx_files.cmake
- emotionfx_editor_files.cmake
- MysticQt/mysticqt_files.cmake
- EMotionFX/Tools/EMotionStudio/EMStudioSDK/emstudiosdk_files.cmake
- EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/standardplugins_files.cmake
- EMotionFX/Pipeline/SceneAPIExt/sceneapi_ext_files.cmake
- EMotionFX/Pipeline/RCExt/rc_ext_files.cmake
- EMotionFX/Pipeline/EMotionFXBuilder/emotionfxbuilder_files.cmake
- ${editor_pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
- PLATFORM_INCLUDE_FILES
- ${editor_pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}.cmake
- INCLUDE_DIRECTORIES
- PRIVATE
- EMotionFX/Tools
- EMotionFX/Pipeline
- ${editor_pal_dir}
- BUILD_DEPENDENCIES
- PUBLIC
- ${gem_name}StaticLib
- 3rdParty::Qt::OpenGL
- 3rdParty::Qt::Widgets
- AZ::AssetBuilderSDK
- AZ::AzQtComponents
- AZ::SceneCore
- AZ::SceneData
- AZ::SceneUI
- AZ::AzToolsFramework
- Legacy::Editor.Headers
- 3rdParty::OpenGLInterface
- Gem::AtomToolsFramework.Static
- Gem::AtomToolsFramework.Editor
- Gem::GraphCanvasWidgets
- COMPILE_DEFINITIONS
- PUBLIC
- EMFX_EMSTUDIOLYEMBEDDED
- EMOTIONFXANIMATION_EDITOR
- )
- ly_add_target(
- NAME ${gem_name}.Editor GEM_MODULE
- NAMESPACE Gem
- FILES_CMAKE
- Source/Integration/System/emotionfx_module_files.cmake
- INCLUDE_DIRECTORIES
- PRIVATE
- EMotionFX/Tools
- EMotionFX/Pipeline
- BUILD_DEPENDENCIES
- PRIVATE
- Gem::${gem_name}.Editor.Static
- RUNTIME_DEPENDENCIES
- Gem::LmbrCentral.Editor
- )
- # builders and tools use the above ${gem_name}.Editor module
- ly_create_alias(NAME ${gem_name}.Builders NAMESPACE Gem TARGETS ${gem_name}.Editor)
- ly_create_alias(NAME ${gem_name}.Tools NAMESPACE Gem TARGETS ${gem_name}.Editor)
- endif()
- ################################################################################
- # Tests
- ################################################################################
- if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
- ly_add_target(
- NAME ${gem_name}.Tests.Static STATIC
- NAMESPACE Gem
- FILES_CMAKE
- emotionfx_shared_tests_files.cmake
- INCLUDE_DIRECTORIES
- PUBLIC
- Tests
- BUILD_DEPENDENCIES
- PRIVATE
- Gem::${gem_name}.Static
- )
- ly_add_target(
- NAME ${gem_name}.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
- NAMESPACE Gem
- FILES_CMAKE
- emotionfx_tests_files.cmake
- Source/Integration/System/emotionfx_module_files.cmake
- INCLUDE_DIRECTORIES
- PRIVATE
- Tests
- ${core_pal_dir}
- BUILD_DEPENDENCIES
- PRIVATE
- Legacy::CryCommon
- AZ::AzTest
- AZ::AzFramework
- AZ::AzTestShared
- Gem::${gem_name}.Static
- Gem::${gem_name}.Tests.Static
- )
- ly_add_googletest(
- NAME Gem::${gem_name}.Tests
- LABELS REQUIRES_tiaf
- )
- list(APPEND testTargets ${gem_name}.Tests)
- if (PAL_TRAIT_BUILD_HOST_TOOLS)
- ly_add_target(
- NAME ${gem_name}.Editor.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
- NAMESPACE Gem
- AUTOMOC
- FILES_CMAKE
- emotionfx_shared_tests_files.cmake
- emotionfx_editor_tests_files.cmake
- Source/Integration/System/emotionfx_module_files.cmake
- INCLUDE_DIRECTORIES
- PRIVATE
- Tests
- Source
- EMotionFX/Tools
- EMotionFX/Pipeline
- ${editor_pal_dir}
- BUILD_DEPENDENCIES
- PRIVATE
- AZ::AzTest
- AZ::AzToolsFramework.Tests
- 3rdParty::Qt::Test
- 3rdParty::Qt::Concurrent
- Gem::${gem_name}.Editor.Static
- )
- ly_add_googletest(
- NAME Gem::${gem_name}.Editor.Tests
- LABELS REQUIRES_tiaf
- )
- list(APPEND testTargets ${gem_name}.Editor.Tests)
- endif()
- ly_add_target_files(
- TARGETS
- ${testTargets}
- FILES
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/AnimGraphExample.animgraph
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/AnimGraphExampleNoDependency.animgraph
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/EmptyAnimGraphExample.animgraph
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/EmptyMotionSetExample.motionset
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/MotionSetExample.motionset
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/EMotionFXBuilderTestAssets/MotionSetExampleNoDependency.motionset
- OUTPUT_SUBDIRECTORY
- Test.Assets/Gems/${gem_name}/Code/Tests/TestAssets/EMotionFXBuilderTestAssets
- )
- ly_add_target_files(
- TARGETS
- ${testTargets}
- FILES
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin.actor
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin.animgraph
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin.emfxrecording
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin.motionset
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_come_to_stop.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_forward_dive_roll.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_idle.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_jump.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_readyattack_idle.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_run.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_run_turn_left.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_run_turn_right.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_shuffle_turn_left.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_shuffle_turn_right.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_stand_kick_punch_01.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_stand_kick_punch_02.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_stand_kick_punch_03.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_stand_kick_punch_04.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_stand_kick_punch_05.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_stand_kick_punch_06.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_turn_180.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_turn_180_clockwise.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_walk.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_walk_kick_01.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_walk_kick_02.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_walk_kick_03.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_walk_kick_04.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_walk_turn_left.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Rin/rin_walk_turn_right.motion
- OUTPUT_SUBDIRECTORY
- Test.Assets/Gems/${gem_name}/Code/Tests/TestAssets/Rin
- )
- ly_add_target_files(
- TARGETS
- ${testTargets}
- FILES
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Pendulum/pendulum.actor
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Pendulum/pendulum.animgraph
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Pendulum/pendulum.emfxrecording
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Pendulum/pendulum.motion
- ${CMAKE_CURRENT_SOURCE_DIR}/Tests/TestAssets/Pendulum/pendulum.motionset
- OUTPUT_SUBDIRECTORY
- Test.Assets/Gems/${gem_name}/Code/Tests/TestAssets/Pendulum
- )
- endif()
|