######################################################################################## # 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 Configure def build(bld): import lumberyard_sdks nvcloth_lib = '' nvcloth_uselib = [] nvcloth_win_lib = [] if bld.check_platform_uselib_compatibility('CUDA') and bld.check_platform_uselib_compatibility('NVCLOTH_CUDA_LIB'): nvcloth_lib = 'NVCLOTH_CUDA_LIB' nvcloth_uselib.extend([nvcloth_lib,'CUDA']) nvcloth_win_lib.extend(['delayimp']) else: nvcloth_lib = 'NVCLOTH_LIB' nvcloth_uselib.extend([nvcloth_lib]) nvcloth_file_list = [] nvcloth_file_list_editor = [] if bld.env['PLATFORM'] == 'project_generator' or isinstance(bld,Configure.ConfigurationContext): nvcloth_file_list.extend(['nvcloth.waf_files', 'nvcloth_unsupported.waf_files']) nvcloth_file_list_editor.extend(['nvcloth.waf_files', 'nvcloth_editor.waf_files', 'nvcloth_unsupported.waf_files']) else: if bld.check_platform_uselib_compatibility(nvcloth_lib): nvcloth_file_list.extend(['nvcloth.waf_files']) nvcloth_file_list_editor.extend(['nvcloth.waf_files', 'nvcloth_editor.waf_files']) else: nvcloth_file_list.extend(['nvcloth_unsupported.waf_files']) nvcloth_file_list_editor.extend(['nvcloth_unsupported.waf_files']) bld.DefineGem( file_list = nvcloth_file_list, disable_pch = True, win_features = ['crcfix'], includes = [bld.Path('Code/CryEngine/CryCommon')], test_includes = ['Tests', bld.Path('Gems/EMotionFX/Code/Source')], # Dependencies use = ['EMotionFXStaticLib'], test_all_use = ['AzTestShared'], uselib = nvcloth_uselib, win_lib = nvcloth_win_lib, # Editor Module editor = dict( file_list = nvcloth_file_list_editor, disable_pch = True, win_features = ['crcfix'], defines = ['NVCLOTH_EDITOR'], includes = [bld.Path('Code/Tools'), bld.Path('Code/CryEngine/CryCommon')], test_includes = ['Tests', bld.Path('Gems/EMotionFX/Code/Source')], # Dependencies use = ['SceneCore', 'EMotionFXStaticLib'], test_all_use = ['AzToolsFrameworkTestCommon'], uselib = nvcloth_uselib, win_lib = nvcloth_win_lib ) )