# # 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. # # Original file Copyright Crytek GMBH or its affiliates, used under license. # # System Imports import os # waflib imports from waflib.Configure import conf, Logs # being a _host file, this means that these settings apply to any build at all that is # being done from this kind of host PLATFORM = 'linux_x64' @conf def load_linux_x64_host_settings(conf): """ Setup any environment settings you want to apply globally any time the host doing the building is linux x64 """ v = conf.env azcg_dir = conf.Path('Tools/AzCodeGenerator/bin/linux') v['CODE_GENERATOR_EXECUTABLE'] = 'AzCodeGenerator' v['CODE_GENERATOR_PATH'] = [ azcg_dir ] v['CODE_GENERATOR_PYTHON_PATHS'] = [conf.Path('Tools/Python/3.7.10/linux_x64/lib/python3.7'), conf.Path('Tools/Python/3.7.10/linux_x64/lib'), conf.Path('Tools/Python/3.7.10/linux_x64/lib/python3.7/lib-dynload'), conf.ThirdPartyPath('markupsafe', 'x64'), conf.ThirdPartyPath('jinja2', 'x64')] v['CODE_GENERATOR_PYTHON_DEBUG_PATHS'] = [conf.Path('Tools/Python/3.7.10/linux_x64/lib/python3.7'), conf.Path('Tools/Python/3.7.10/linux_x64/lib/python3.7/lib-dynload'), conf.ThirdPartyPath('markupsafe', 'x64'), conf.ThirdPartyPath('jinja2', 'x64')] v['EMBEDDED_PYTHON_HOME_RELATIVE_PATH'] = 'Tools/Python/3.7.10/linux_x64' v['CODE_GENERATOR_PYTHON_HOME'] = conf.Path(v['EMBEDDED_PYTHON_HOME_RELATIVE_PATH']) v['CODE_GENERATOR_PYTHON_HOME_DEBUG'] = conf.Path('Tools/Python/3.7.10/linux_x64') v['CODE_GENERATOR_INCLUDE_PATHS'] = [conf.ThirdPartyPath('Clang', 'linux_x64/release/lib/clang/6.0.1/include')] v['EMBEDDED_PYTHON_HOME'] = v['CODE_GENERATOR_PYTHON_HOME'] # Set include path to the pymalloc build v['EMBEDDED_PYTHON_INCLUDE_PATH'] = os.path.join(v['EMBEDDED_PYTHON_HOME'], 'include/python3.7m') v['EMBEDDED_PYTHON_LIBPATH'] = os.path.join(v['EMBEDDED_PYTHON_HOME'], 'lib') v['EMBEDDED_PYTHON_SHARED_OBJECT'] = os.path.join(v['EMBEDDED_PYTHON_HOME'], 'lib/libpython3.7m.so.1.0') # Detect the QT binaries, if the current capabilities selected requires it. _, enabled, _, _ = conf.tp.get_third_party_path(PLATFORM, 'qt') if enabled: conf.find_qt5_binaries(PLATFORM)