Changeset View
Changeset View
Standalone View
Standalone View
build_files/buildbot/worker_compile.py
| Show All 18 Lines | |||||
| # <pep8 compliant> | # <pep8 compliant> | ||||
| import os | import os | ||||
| import shutil | import shutil | ||||
| import buildbot_utils | import buildbot_utils | ||||
| def get_cmake_options(builder): | def get_cmake_options(builder): | ||||
| post_install_script = os.path.join( | codesign_script = os.path.join( | ||||
| builder.blender_dir, 'build_files', 'buildbot', 'worker_codesign.cmake') | builder.blender_dir, 'build_files', 'buildbot', 'worker_codesign.cmake') | ||||
| config_file = "build_files/cmake/config/blender_release.cmake" | config_file = "build_files/cmake/config/blender_release.cmake" | ||||
| options = ['-DCMAKE_BUILD_TYPE:STRING=Release', | options = ['-DCMAKE_BUILD_TYPE:STRING=Release', | ||||
| '-DWITH_GTESTS=ON'] | '-DWITH_GTESTS=ON'] | ||||
| if builder.platform == 'mac': | if builder.platform == 'mac': | ||||
| options.append('-DCMAKE_OSX_ARCHITECTURES:STRING=x86_64') | options.append('-DCMAKE_OSX_ARCHITECTURES:STRING=x86_64') | ||||
| options.append('-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9') | options.append('-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9') | ||||
| elif builder.platform == 'win': | elif builder.platform == 'win': | ||||
| options.extend(['-G', 'Visual Studio 16 2019', '-A', 'x64']) | options.extend(['-G', 'Visual Studio 16 2019', '-A', 'x64']) | ||||
| options.extend(['-DPOSTINSTALL_SCRIPT:PATH=' + post_install_script]) | if builder.codesign: | ||||
| options.extend(['-DPOSTINSTALL_SCRIPT:PATH=' + codesign_script]) | |||||
| elif builder.platform == 'linux': | elif builder.platform == 'linux': | ||||
| config_file = "build_files/buildbot/config/blender_linux.cmake" | config_file = "build_files/buildbot/config/blender_linux.cmake" | ||||
| optix_sdk_dir = os.path.join(builder.blender_dir, '..', '..', 'NVIDIA-Optix-SDK') | optix_sdk_dir = os.path.join(builder.blender_dir, '..', '..', 'NVIDIA-Optix-SDK') | ||||
| options.append('-DOPTIX_ROOT_DIR:PATH=' + optix_sdk_dir) | options.append('-DOPTIX_ROOT_DIR:PATH=' + optix_sdk_dir) | ||||
| options.append("-C" + os.path.join(builder.blender_dir, config_file)) | options.append("-C" + os.path.join(builder.blender_dir, config_file)) | ||||
| options.append("-DCMAKE_INSTALL_PREFIX=%s" % (builder.install_dir)) | options.append("-DCMAKE_INSTALL_PREFIX=%s" % (builder.install_dir)) | ||||
| ▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines | |||||