Changeset View
Changeset View
Standalone View
Standalone View
build_files/build_environment/cmake/check_software.cmake
| # SPDX-License-Identifier: GPL-2.0-or-later | # SPDX-License-Identifier: GPL-2.0-or-later | ||||
| if(UNIX) | if(UNIX) | ||||
| if(APPLE) | if(APPLE) | ||||
| set(_libtoolize_name glibtoolize) | set(_libtoolize_name glibtoolize) | ||||
| else() | else() | ||||
| set(_libtoolize_name libtoolize) | set(_libtoolize_name libtoolize) | ||||
| endif() | endif() | ||||
| set(_required_software | set(_required_software | ||||
| autoconf | autoconf | ||||
| automake | automake | ||||
| bison | bison | ||||
| ${_libtoolize_name} | ${_libtoolize_name} | ||||
| meson | |||||
| ninja | |||||
| pkg-config | pkg-config | ||||
| tclsh | tclsh | ||||
| yasm | yasm | ||||
| ) | ) | ||||
| if(NOT APPLE) | |||||
| set(_required_software | |||||
| ${_required_software} | |||||
| # Needed for Mesa. | |||||
| meson | |||||
| ninja | |||||
| ) | |||||
| endif() | |||||
| foreach(_software ${_required_software}) | foreach(_software ${_required_software}) | ||||
| find_program(_software_find NAMES ${_software}) | find_program(_software_find NAMES ${_software}) | ||||
| if(NOT _software_find) | if(NOT _software_find) | ||||
| set(_software_missing "${_software_missing}${_software} ") | set(_software_missing "${_software_missing}${_software} ") | ||||
| endif() | endif() | ||||
| unset(_software_find CACHE) | unset(_software_find CACHE) | ||||
| endforeach() | endforeach() | ||||
| Show All 14 Lines | message( | ||||
| "\n" | "\n" | ||||
| "Missing software for building Blender dependencies:\n" | "Missing software for building Blender dependencies:\n" | ||||
| " ${_software_missing}\n" | " ${_software_missing}\n" | ||||
| "\n" | "\n" | ||||
| "On Debian and Ubuntu:\n" | "On Debian and Ubuntu:\n" | ||||
| " apt install autoconf automake libtool yasm tcl ninja-build meson python3-mako\n" | " apt install autoconf automake libtool yasm tcl ninja-build meson python3-mako\n" | ||||
| "\n" | "\n" | ||||
| "On macOS (with homebrew):\n" | "On macOS (with homebrew):\n" | ||||
| " brew install autoconf automake bison flex libtool pkg-config yasm\n" | " brew install autoconf automake bison flex libtool meson ninja pkg-config yasm\n" | ||||
| "\n" | "\n" | ||||
| "Other platforms:\n" | "Other platforms:\n" | ||||
| " Install equivalent packages.\n") | " Install equivalent packages.\n") | ||||
| message(FATAL_ERROR "Install missing software before continuing") | message(FATAL_ERROR "Install missing software before continuing") | ||||
| endif() | endif() | ||||
| endif() | endif() | ||||