# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or the license accompanying this file. Do not # remove or modify any license notices. This file is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # ly_add_target( NAME Camera.Static STATIC NAMESPACE Gem FILES_CMAKE camera_files.cmake INCLUDE_DIRECTORIES PRIVATE Source BUILD_DEPENDENCIES PUBLIC Gem::Atom_RPI.Public AZ::AtomCore PRIVATE Legacy::CryCommon ) ly_add_target( NAME Camera ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE} NAMESPACE Gem FILES_CMAKE camera_shared_files.cmake INCLUDE_DIRECTORIES PRIVATE Source BUILD_DEPENDENCIES PRIVATE Legacy::CryCommon Gem::Camera.Static ) # clients and servers use the above module: ly_create_alias(NAME Camera.Clients NAMESPACE Gem TARGETS Gem::Camera) ly_create_alias(NAME Camera.Servers NAMESPACE Gem TARGETS Gem::Camera) if (PAL_TRAIT_BUILD_HOST_TOOLS) ly_add_target( NAME Camera.Editor GEM_MODULE NAMESPACE Gem FILES_CMAKE camera_editor_files.cmake COMPILE_DEFINITIONS PRIVATE CAMERA_EDITOR INCLUDE_DIRECTORIES PRIVATE Source BUILD_DEPENDENCIES PRIVATE Legacy::CryCommon Legacy::Editor.Headers Legacy::EditorCommon AZ::AzToolsFramework Gem::Camera.Static ) # tools and builders use the above module. ly_create_alias(NAME Camera.Tools NAMESPACE Gem TARGETS Gem::Camera.Editor) ly_create_alias(NAME Camera.Builders NAMESPACE Gem TARGETS Gem::Camera.Editor) # The DefaultPrefab contains an EditorCameraComponent which makes this gem required ly_enable_gems(GEMS Camera VARIANTS Tools TARGETS Editor) ly_enable_gems(GEMS Camera VARIANTS Builders TARGETS AssetBuilder AssetProcessor AssetProcessorBatch) endif() # Added dependencies to the Client and Server Launchers get_property(LY_PROJECTS_TARGET_NAME GLOBAL PROPERTY LY_PROJECTS_TARGET_NAME) foreach(project_name IN LISTS LY_PROJECTS_TARGET_NAME) # Add gem as a dependency of the Clients Launcher ly_enable_gems(PROJECT_NAME ${project_name} GEMS Camera VARIANTS Clients TARGETS ${project_name}.GameLauncher) # Add gem as a dependency of the Servers Launcher if(PAL_TRAIT_BUILD_SERVER_SUPPORTED) ly_enable_gems(PROJECT_NAME ${project_name} GEMS Camera VARIANTS Servers TARGETS ${project_name}.ServerLauncher) endif() endforeach()