Create Deploy Script that can copy a Project Game Release Layout to a standalone location
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -278,7 +278,7 @@ namespace AZ
|
||||
|
||||
#define AZ_Printf(window, ...) AZ::Debug::Trace::Instance().Printf(window, __VA_ARGS__);
|
||||
|
||||
#if !defined(RELEASE) || defined(PERFORMANCE_BUILD)
|
||||
#if !defined(RELEASE)
|
||||
// Unconditional critical error log, enabled up to Performance config
|
||||
#define AZ_Fatal(window, format, ...) AZ::Debug::Trace::Instance().Printf(window, "[FATAL] " format "\n", ##__VA_ARGS__);
|
||||
#define AZ_Crash() AZ::Debug::Trace::Instance().Crash();
|
||||
|
||||
@@ -1290,13 +1290,13 @@ namespace AZ
|
||||
|
||||
const EventArray& GetEvents() const;
|
||||
|
||||
#if defined(PERFORMANCE_BUILD) || !defined(_RELEASE) // m_scriptPath is only available in non-Release mode
|
||||
#if !defined(_RELEASE) // m_scriptPath is only available in non-Release mode
|
||||
AZStd::string m_scriptPath;
|
||||
#endif
|
||||
|
||||
AZStd::string GetScriptPath() const
|
||||
{
|
||||
#if defined(PERFORMANCE_BUILD) || !defined(_RELEASE) // m_scriptPath is only available in non-Release mode
|
||||
#if !defined(_RELEASE) // m_scriptPath is only available in non-Release mode
|
||||
return m_scriptPath;
|
||||
#else
|
||||
return{};
|
||||
@@ -1305,7 +1305,7 @@ namespace AZ
|
||||
|
||||
void SetScriptPath(const char* scriptPath)
|
||||
{
|
||||
#if defined(PERFORMANCE_BUILD) || !defined(_RELEASE) // m_scriptPath is only available in non-Release mode
|
||||
#if !defined(_RELEASE) // m_scriptPath is only available in non-Release mode
|
||||
m_scriptPath = scriptPath;
|
||||
#else
|
||||
AZ_UNUSED(scriptPath);
|
||||
|
||||
@@ -3727,7 +3727,7 @@ LUA_API const Node* lua_getDummyNode()
|
||||
|
||||
if (m_handler)
|
||||
{
|
||||
#if defined(PERFORMANCE_BUILD) || !defined(_RELEASE)
|
||||
#if !defined(_RELEASE)
|
||||
const AZStd::string_view luaString("Lua");
|
||||
lua_Debug info;
|
||||
for (int level = 0; lua_getstack(m_lua, level, &info); ++level)
|
||||
@@ -3739,7 +3739,7 @@ LUA_API const Node* lua_getDummyNode()
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif//defined(PERFORMANCE_BUILD) || !defined(_RELEASE)
|
||||
#endif
|
||||
|
||||
BindEvents(scriptTable);
|
||||
|
||||
|
||||
@@ -987,7 +987,7 @@ namespace AzFramework
|
||||
void AssetCatalog::AddCatalogEntry(AZStd::shared_ptr<AzFramework::AssetRegistry> deltaCatalog)
|
||||
{
|
||||
AZStd::lock_guard<AZStd::recursive_mutex> lock(m_deltaCatalogMutex);
|
||||
#if defined(PERFORMANCE_BUILD) || !defined(_RELEASE)
|
||||
#if !defined(_RELEASE)
|
||||
for (const auto& thisElement : m_deltaCatalogList)
|
||||
{
|
||||
if (thisElement == deltaCatalog)
|
||||
@@ -1010,7 +1010,7 @@ namespace AzFramework
|
||||
AZ_Warning("AssetCatalog", false, "Catalog name %p can't be inserted at slot %u", deltaCatalog.get(), catalogIndex);
|
||||
return;
|
||||
}
|
||||
#if defined(PERFORMANCE_BUILD) || !defined(_RELEASE)
|
||||
#if !defined(_RELEASE)
|
||||
for (const auto& thisElement : m_deltaCatalogList)
|
||||
{
|
||||
if (thisElement == deltaCatalog)
|
||||
|
||||
@@ -111,6 +111,7 @@ ly_install_directory(
|
||||
Platform/${PAL_PLATFORM_NAME}
|
||||
Platform/Common
|
||||
DESTINATION LauncherGenerator/Platform
|
||||
VERBATIM
|
||||
)
|
||||
ly_install_files(
|
||||
FILES FindLauncherGenerator.cmake
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#define AZ_RESTRICTED_SECTION PROJECTDEFINES_H_SECTION_STATS_AGENT
|
||||
#include AZ_RESTRICTED_FILE(ProjectDefines_h)
|
||||
#elif defined(WIN32) || defined(WIN64)
|
||||
#if !defined(_RELEASE) || defined(PERFORMANCE_BUILD)
|
||||
#if !defined(_RELEASE)
|
||||
#define ENABLE_STATS_AGENT
|
||||
#endif
|
||||
#endif
|
||||
@@ -71,7 +71,7 @@
|
||||
#define REMOTE_ASSET_PROCESSOR
|
||||
#endif
|
||||
|
||||
#if (!defined(_RELEASE) || defined(PERFORMANCE_BUILD))
|
||||
#if !defined(_RELEASE)
|
||||
#define USE_HTTP_WEBSOCKETS 0
|
||||
#endif
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if (!defined(_RELEASE) || defined(PERFORMANCE_BUILD))
|
||||
#if !defined(_RELEASE)
|
||||
#ifndef ENABLE_PROFILING_CODE
|
||||
#define ENABLE_PROFILING_CODE
|
||||
#endif
|
||||
|
||||
@@ -1433,10 +1433,6 @@ AZ_POP_DISABLE_WARNING
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(PERFORMANCE_BUILD)
|
||||
LoadConfiguration("performance.cfg");
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
if (g_cvars.sys_asserts == 0)
|
||||
{
|
||||
|
||||
@@ -297,7 +297,7 @@ void CXConsole::Init(ISystem* pSystem)
|
||||
AzFramework::InputChannelEventListener::Connect();
|
||||
AzFramework::InputTextEventListener::Connect();
|
||||
|
||||
#if defined(_RELEASE) && !defined(PERFORMANCE_BUILD)
|
||||
#if defined(_RELEASE)
|
||||
static const int kDeactivateConsoleDefault = 1;
|
||||
#else
|
||||
static const int kDeactivateConsoleDefault = 0;
|
||||
|
||||
@@ -6,6 +6,10 @@
|
||||
#
|
||||
#
|
||||
|
||||
if(LY_MONOLITHIC_GAME)
|
||||
return()
|
||||
endif()
|
||||
|
||||
ly_add_target(
|
||||
NAME TestImpact.Frontend.Console.Static STATIC
|
||||
NAMESPACE AZ
|
||||
|
||||
Reference in New Issue
Block a user