######################################################################################## # 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. # ######################################################################################## from waflib import Logs def build(bld): if bld.path.find_resource('../External/Include/rad_tm.h'): bld.DefineGem( pch = "", disable_pch = True, uselib = ['RAD_TELEMETRY'], includes = [bld.Path('Code/CryEngine/CryCommon') ], export_internal_3rd_party_libs = True, export_includes = [bld.Path('Gems/RADTelemetry/External/Include')], debug_export_defines = ['AZ_PROFILE_TELEMETRY'], profile_export_defines =['AZ_PROFILE_TELEMETRY'], platform_roots = [bld.PlatformRoot('Source/Platform', export_includes=False)] ) else: Logs.warn("[WARNING] rad_tm.h not found in Gems/RadTelemetry/External/Include/rad_tm.h, building without RADTelemetry, If the RADTelemetry gem is enabled for the game project, the game will fail to load.")