Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-01-29Tests, docs: Use sanitizer options from environment too.Ankit Meel
Don't overwrite environment variables that may contain options like suppression files, symboliser etc. It's similar to rBa181b156399a13fa429159112e30c8005d5e8a59 and rBA589d13408a60cbec34a8bc3cc798c586043743ae . For Blender Add-ons repo, see the equivalent in D9816. Reviewed By: Blendify Differential Revision: https://developer.blender.org/D9815
2021-01-27CMake: Detect Clang-Tidy 11 and 12Sergey Sharybin
2021-01-26Fix: incomplete integration of PugiXML and Potrace build optionsBrecht Van Lommel
Add them to the standard build configurations, disable properly when library not found and print as part of configuration overview.
2021-01-25Buildbot: Fixed crash when building RC buildsJeroen Bakker
Building RC builds would parse `BLENDER_VERSION_CYCLE_NUMBER` that doesn't exist anymore. It was removed by {D7748}. This change removes it from `buildbot_utils.py`.
2021-01-20Cleanup: spelling & cleanup for cmake_consistency_checkCampbell Barton
Much more could be done here, some obvious corrections.
2021-01-20CMake: update checking utility to ignore nanovdb filesCampbell Barton
2021-01-14Fix automated tests when building with GCC and march=nativeSebastian Parborg
When building with more aggressive optimization flags, GCC will add FMA (Fused Multiply Add) instructions that will slightly alter the floating point operation results. This causes some automated tests to fail in blender. In clang and the intel compiler ffp-contract is set to off per default it seems from my research. (They do not have the exact same setting, but the default seems to match the off behavior) Reviewed By: Brecht Differential Revision: http://developer.blender.org/D9047
2021-01-13Cleanup: clang-format, trailing spaceCampbell Barton
2021-01-12Cycles: upgrade to OptiX SDK version 7.1 on buildbotBrecht Van Lommel
This means that NVIDIA driver version 450 or newer is now required for Cycles OptiX rendering. This upgrade is required to take advantage of new features and improvements. Ref T81431
2021-01-11Tests: run suites instead of individual test casesSybren A. Stüvel
Group all tests of a test suite into a single test command invocation. This reduces the number of invocations by `ctest` by an order of magnitude. Since rB56aa5b0d8c6b663, `bin/tests/blender_test` was run for every individual test. Having over a 1000 tests made testing slower than necessary. Individual tests can still be run if desired by invocation of `bin/tests/blender_test --gtest_filter=suitename.testname`. NOTE: For this commit to have an immediate effect, it may be necessary to remove the `tests` and `Testing` directories and some CMake files from your build directory and rebuild. Run `ctest -N` to see the list of tests; there should be less than 200. Reviewed By: sergey, LazyDodo, sebbas Maniphest Tasks: T83222 Differential Revision: https://developer.blender.org/D9649
2021-01-04Fix clang_array_check checking utilityCampbell Barton
Use python3 which is now supported, only use CLANG_BIND_DIR & CLANG_LIB_DIR when they are set. Also add immediate mode GPU API function calls.
2020-12-21install-deps: Install OIIO utils, re-enable package on RPMs.Bastien Montagne
OIIO utils are mandatory for a whole set of tests (Cycles, VSE), and it's a small package, no reason to not install it. Also re-enabling package handling of OIIO on RPM-based distro, not sure why it was disabled but this has become a fairly stable and standard library now, would not expect issues anymore.
2020-12-21Unix/macOS: support building with CcacheMatt Hill
This adds an option (WITH_COMPILER_CCACHE) to build using Ccache if it's found. Makefiles-based, Ninja-based and Xcode generators are supported. Pass `-DWITH_COMPILER_CCACHE=ON` to cmake to enable Ccache. Utility option in GNUmakefile is also added: for e.g., `make ninja ccache`. Reviewed By: brecht, ankitm Differential Revision: https://developer.blender.org/D9665
2020-12-14Fix several issues with handling of numpy in CMake.Bastien Montagne
Issues were: * Abusing of `WITH_PYTHON_INSTALL_NUMPY` by both Audaspace and Mantaflow. - `PYTHON_INSTALL` options only decide whether we copy python (and some extra modules) in our Blender installation. On linux it makes much more sense to use global python installation. - Now we have instead a proper `WITH_PYTHON_NUMPY` * Bad assumptions regarding path of headers relative to path of python module. - In current Debian testing, modules are under `python3.9` directory, while headers are under `python3` directory. - Now we properly `find_path` for headers as well, modifying `find_python_package` to take an optional argument for headers. Note that the required changes done to `extern` libraries are in blender-specific files that do not exist upstream. Differential Revision: https://developer.blender.org/D9773
2020-12-14Revert "Fix several issues with handling of numpy in CMake."Bastien Montagne
This reverts commit 5d570c875eda8fb9aa3635f7f4edac0dc1eaedc8. Buildbots are still borken, need more time to investigate.
2020-12-14Fix several issues with handling of numpy in CMake.Bastien Montagne
Issues were: * Abusing of `WITH_PYTHON_INSTALL_NUMPY` by both Audaspace and Mantaflow. - `PYTHON_INSTALL` options only decide whether we copy python (and some extra modules) in our Blender installation. On linux it makes much more sense to use global python installation. - Now we have instead a proper `WITH_PYTHON_NUMPY` * Bad assumptions regarding path of headers relative to path of python module. - In current Debian testing, modules are under `python3.9` directory, while headers are under `python3` directory. - Now we properly `find_path` for headers as well, modifying `find_python_package` to take an optional argument for headers. Note that the required changes done to `extern` libraries are in blender-specific files that do not exist upstream. Differential Revision: https://developer.blender.org/D9773
2020-12-11Cleanup: trailing spaceCampbell Barton
2020-12-04macOS deps: Support building clang tidyAnkit Meel
This patch builds clang-extra-tools on macOS for the clang-tidy binary. The script "run-clang-tidy.py" is also harvested because using the `CMAKE_C[XX]_CLANG_TIDY` option can miss out some files (like makesrna), and using the script is faster as it does not compile the files. Thanks to `@LazyDodo` for the base patch D8502. Reviewed By: LazyDodo, sebbas, #platform_macos Differential Revision: https://developer.blender.org/D9450
2020-12-03MSVC: Enable clang-tidy analyserRay Molenkamp
This enables the use of clang-tidy in the VS IDE. To use it: 1 - Enable WITH_CLANG_TIDY in your cmake configuration 2 - From the Analyse pull down menu select Run Code Analysis on... The analyser is currently not enabled by default on build given it is quite slow and there are quite a few problems it reports that we still need to deal with.
2020-12-02Deps: Additional changes for PugiXML on macOSSebastián Barschkis
This commit expands the Windows-specific code in rBdca9aa0053f7 and Linux-specific code in rB33b7d53df08a. It also fixes a capitalization issue in FindPugiXML.cmake
2020-12-01Codesign: Allo non-zero exit code for signtool on WindowsSergey Sharybin
2020-12-01Deps: Add PugiXML as an official dependencySybren A. Stüvel
PugiXML was historically shipped hidden embedded into OIIO, the Grease Pencil team had a requirement for an XML library recently so pugi seems like a natural choice since it's not really a 'new' library, we just turn an implicit dependency into an explicit one. This commit expands the Windows-specific code in rBdca9aa0053f7 to include Linux. macOS support will be handled in a later commit. NOTE: run `cmake -U'*PUGIXML*' .` in the build directory to ensure CMake finds PugiXML in the new location. For details see D8628
2020-11-30Windows/Ninja: allow parameters for rebuild.cmdRay Molenkamp
The windows build leaves a convenience helper script in the build folder called, rebuild.cmd. This change passes any parameters you give rebuild.cmd to ninja so you can easily pass it additional parameters without having to edit the batch file manually.
2020-11-30Deps: PugiXML 1.10Ray Molenkamp
This separates out PugiXML that was previously bundled by OIIO. As this linux/mac libs are not available this commit only contains the builder and windows changes, and the option to enable pugixml is guarded by a platform if, this can be removed once all platforms have committed the svn libs. For details see D8628
2020-11-29CMake/macOS: Use custom LIBDIR if set on CLIRebecca Dengate
Reviewed By: ankitm Maniphest Tasks: T83174 Differential Revision: https://developer.blender.org/D9664
2020-11-26Cleanup: clearer marking of what was changed in GTestAddTests.cmakeSybren A. Stüvel
Replace `Blender` with `BLENDER` so that it's more clearly a marker, and not just the name. No functional changes.
2020-11-26macOS: Patch OpenImageIO's ustring for ARM.Stefan Werner
OpenImageIO's ustring makes assumptions about the interals of std::string which aren't true on macOS/ARM. A patch for OpenImageIO addresses this for macOS/ARM builds only, at the expense of potentially duplicated allocations of strings.
2020-11-26macOS: Added new location for Homebrew.Stefan Werner
The build script for macOS dependencies expects to find bison provided by Homebrew under /usr/local. Since the default install location for Homebrew changes on macOS/ARM, the script now looks at the host architecture and switches to /opt/homebrew on Macs with Apple Silicon.
2020-11-23Cleanup: CMake: use string(APPEND..), not set(..)Ankit Meel
Left out in {rB7f28a99dd5a57216fb477d844ae1fec5510ad5d5}
2020-11-23CMake/macOS: Replace -Xlinker with -Wl.Ankit Meel
Causes link issues on Xcode's "New Build System" which was introduced in Xcode 10 and is default on Xcode 12. https://devtalk.blender.org/t/16273 Differential Revision: https://developer.blender.org/D9624 Reviewed by: brecht, #platform_macos
2020-11-13Revert "Codesign: Versioning code to support older branches"Sergey Sharybin
This reverts commit 9d172f007eeb5ade5ddad03e1f71fa4c373855f8. Got a second thought and remembered why it was not done in the first place. The issue here is that the server needs to communicate codesign result back and that must happen within the new protocol. So if the client talks old protocol it is possible to receieve data from it, but is not possible to communicate result back to it.
2020-11-13Codesign: Versioning code to support older branchesSergey Sharybin
Turns out it is easier to have suboptimal versioning code on the server side than to deal with branches where changes are to be merged into.
2020-11-12Fix NanoVDB not being enabled/disabled correctly in CMake profilesPatrick Mours
This caused warnings when e.g. building the lite profile because NanoVDB was not disabled, but OpenVDB was. This Fixes this by setting the "WITH_NANOVDB" flag too.
2020-11-12Codesign: Report codesign errors from server to workerSergey Sharybin
Pass codesign errors (if any) from codesign buildbot server to the buildbot worker, so that the latter one can abort build process if the error happens. This solves issues when non-properly-notarized DMG package gets uploaded to the buildbot website.
2020-11-11Fix T82521: Bump OpenImageIO minimum version 1.8 > 2.2.1 for install_deps.shBastien Montagne
Since rB6fdcca8de64cd70f, we need at least OpenImageIO 2.1.12 to build Blender.
2020-11-10Windows: Fix build issue with VCPKGRay Molenkamp
For blender we disable VCPKG to prevent it from picking up the wrong libraries from VCPKG rather than our lib folder some of the cycles tests needed this to link correctly. reported by @alef on chat
2020-11-10install_deps: fix a typo in argument handling of new nanovdb option.Bastien Montagne
Spotted by Patrick Mours (@pmoursnv), thanks!
2020-11-09install_deps: add support for NanoVDB.Bastien Montagne
re T81454.
2020-11-09Install_deps: update URLS for OpenVDB repo/sources.Bastien Montagne
2020-11-06Clang-Tidy: error out when executable not foundSybren A. Stüvel
Stop with an error when the Clang-Tidy executable cannot be found. Without this check, CMake will happily report "Found Clang-Tidy" but with the fallback version (0, 0, 0), when `CLANG_TIDY_EXECUTABLE` points to a non-existing executable.
2020-11-06CMake: configue_file() to pass strings for build-infoCampbell Barton
Using configue_file(..) would have avoided the breakage from 1daa3c3f0a1cfd, caused by buildinfo not properly escaping quotes. Rely on CMake to escaping strings instead using configure_file().
2020-11-06Cleanup: use string APPEND/PREPENDCampbell Barton
Replace 'set' with 'string(APPEND/PREPEND ...)'. This avoids duplicating the variable name.
2020-11-04CMake: add path_ensure_trailing_slash utility macroCampbell Barton
2020-11-03Merge branch 'blender-v2.91-release' into masterAnkit Meel
2020-11-03macOS: find Jack framework in system directoriesAnkit Meel
Until it is decided whether to ship JACK with pre-compiled libraries, search for the same in system directories. Ref T79261 Reviewed By: brecht Differential Revision: https://developer.blender.org/D9436
2020-10-29Simplify and enable NanoVDB dependency installationPatrick Mours
Changes NanoVDB to be a standalone dependency that is independent of the OpenVDB one. It works by downloading the "feature/nanovdb" branch of OpenVDB, but using the NanoVDB CMake in the "nanovdb" subdirectory. Since it is header-only, only the install target is used. Reviewed By: brecht Differential Revision: https://developer.blender.org/D9383
2020-10-28Merge branch 'blender-v2.91-release' into masterAnkit Meel
2020-10-28macOS: use -fno-strict-aliasing for all build types.Ankit Meel
The old code was added in {rBbaa4a9c7d4dd} While the hotfix committed in {rB2ddecfffc3d3a3a1db4ae45e8665ca} fixed the id_management test, the correct reason was found at https://bugs.llvm.org/show_bug.cgi?id=47984 This matches the behavior on Linux.
2020-10-22Fix build error Python module build and Embree on macOSBrecht Van Lommel
Setting the stack size only works for executables, for shared libraries the host application controls it.
2020-10-20CMake/Windows: Compile GMP library as fat libraryRay Molenkamp