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
2019-10-07CMake: Add support for building with OpenMP support for clang on windows.Ray Molenkamp
mostly minor c/cxx/linker flags, only tested with clang 9.0.0 Differential Revision: https://developer.blender.org/D5976 Reviewers: brecht, jesterking
2019-10-05Make this link again; needs more work for orbis to work.Howard Trickey
2019-10-04Add Opus audio library and configure FFmpeg to use itSybren A. Stüvel
Opus support was enabled in 2ddfd51810e0. This commit adds the Opus library and configures FFmpeg to be compiled with Opus support. NOTE: It may be required to run `cmake -U '*FFMPEG_LIBRARIES*' .` in your Blender build directory in order to refresh the `FFMPEG_LIBRARIES` setting and add libopus.
2019-10-03Fix: Unit tests on windows.Ray Molenkamp
Problem was twofold 1) `GENERATOR_IS_MULTI_CONFIG` is a property not a variable so the test for it would always be false, unless you set a custom CMAKE_INSTALL_PREFIX (like the buildbot does) the unit tests would have a wrong working directory and complain about missing dlls or blender executable 2) Tests added outside of `/test` (like libmv) would have no working folder set since the variable would not be visible for them. consulted @sergey who voiced the opinion that duplicating the code to the test macro was slightly less evil than moving it to the main CMakeLists.txt
2019-09-19Use cmake TIMESTAMP for BUILD_DATE+TIMEBernhard M. Wiedemann
Use cmake TIMESTAMP for BUILD_DATE+TIME this simplifies code a lot and even makes it more portable to other platforms TIMESTAMP is available since cmake-2.8.11 ; blender already requires cmake>=3.5 so that is fine. Note that with CMake>=3.8, if defined, the SOURCE_DATE_EPOCH envvar will be used by CMake here. Reviewers: mont29, campbellbarton Reviewed By: mont29, campbellbarton Differential Revision: https://developer.blender.org/D5760
2019-09-13Cycles: add Optix device backendPatrick Mours
This uses hardware-accelerated raytracing on NVIDIA RTX graphics cards. It is still currently experimental. Most features are supported, but a few are still missing like baking, branched path tracing and using CPU memory. https://wiki.blender.org/wiki/Reference/Release_Notes/2.81/Cycles#NVIDIA_RTX For building with Optix support, the Optix SDK must be installed. See here for build instructions: https://wiki.blender.org/wiki/Building_Blender/CUDA Differential Revision: https://developer.blender.org/D5363
2019-09-13Add QuadriFlow remesherSebastian Parborg
2019-09-09Cleanup: trailing space, remove tabs, pep8Campbell Barton
2019-09-07Fix GTests failing on Windows buildbotBrecht Van Lommel
Run these tests from the install directory so they can find dlls.
2019-09-07Fix missing LLVM include directories on macOSBrecht Van Lommel
These are not used in master yet, but they are needed for the functions branch.
2019-09-02CMake: De-duplicate test target name constructionSergey Sharybin
2019-09-02Fix noisy GFlags warnings when building testsSergey Sharybin
Split include directories into regular and system ones, which makes it so strict flags are properly cancelled out for GFlags headers.
2019-09-02CMake: Cleanup, unset temporary variablesSergey Sharybin
Was happening in macros, polluting the namespace. No functional changes, just making things cleaner.
2019-08-22Cmake/MSVC: Enable Edit and Continue for debug builds.Lazydodo
This change switches the debug symbol format from /Zi to /ZI for debug builds of blender, allowing Edit and Continue to work. This allows limited [1] code changes in the debugger without having to stop the process and recompile a new binary leading to improved developer productivity. All MSVC versions we support support this flag, Clang on windows does not mind the /ZI flag, but doesn't currently emit the required information to have this feature work. [1] https://docs.microsoft.com/en-us/visualstudio/debugger/supported-code-changes-cpp
2019-08-19Fix build error with OpenImageDenoise after recent changes for dynamic linkingBrecht Van Lommel
CMake variables are case sensitive.
2019-08-19Fix building with shared OIDN librariesSebastian Parborg
Previously cmake would error out if it couldn't find the static libraries even though it can build with shared libraries just fine.
2019-08-15Windows/MSI: Rework MSI installer.Lazydodo
The installer always upgraded the last version installed and did not allow for two versions to be installed side by side. The reworked installer will allow side by side installs install order: ``` 2.81 -> 2.81a -> 2.82 : Allowed , will result in both 2.82 and 2.81a being installed 2.82 -> 2.81 -> 2.81a : Allowed , will result in both 2.82 and 2.81a being installed 2.82 -> 2.81a : Allowed , will result in both 2.82 and 2.81a being installed 2.82 -> 2.81a -> 2.81 : Not Allowed, 2.81 will only install if you manually remove 2.81a first. ``` Do note though that this will not apply to any previously issued installers and even for 2.80a this is not something we can fix. This patch is for landing in 2.81 *only* and should be excluded from any possible 2.80a release. Second change is a change to the compression level, building the MSI takes 30 minutes, which is crazy, perhaps worth it if the compression actually pays of. ``` MSI - none 1:35 247.0 MB (260,025,634 bytes) MSI - mszip 2:02 89.6 MB ( 94,022,946 bytes) MSI - low 2:35 81.6 MB ( 85,646,626 bytes) MSI - medium 4:11 77.3 MB ( 81,136,930 bytes) MSI - high 28:01 74.7 MB ( 78,384,418 bytes) zip 1:32 93.2 MB ( 97,732,293 bytes) 7Z 2:22 65.0 MB ( 68,171,614 bytes) ``` It didn't, so I lowered it to medium, seemed reasonable. Differential Revision: https://developer.blender.org/D5494 Reviewers: brecht, jesterking
2019-08-15Build: enable OpenImageDenoise, now that we have libraries for all platformsBrecht Van Lommel
Note that we are still missing an update for install_deps.sh to easily build this on Linux. Only "make deps" has it for now.
2019-08-15Fix T56843 : fix case sensitive filenames on win10Lazydodo
When building with case sensitive folders there were some linker errors.
2019-08-15msvc: Enable /bigobj on all object files.Lazydodo
bf_intern_openvdb makes a significant number of template instantiations causing it go over the maximum number of sections (int16) in a coff file when doing a debug build. This change switches the compiler to use the extended coff format which has this field extended (int32) all linkers post msvc2005 can process this format so there's no reason not to turn this on globally. Clang on windows does not need this change since clang switches implicitly to the extended format when required. [1] [1] https://reviews.llvm.org/rL217812
2019-08-14Compositor: Added denoising nodeBrecht Van Lommel
This node is built on Intel's OpenImageDenoise library. Other denoisers could be integrated, for example Lukas' Cycles denoiser. Compositor: Made OpenImageDenoise optional, added CMake and build_env files to find OIDN Compositor: Fixed some warnings in the denoising operator build_environment: Updated OpenImageDenoise to 0.8.1 build_environment: Updated OpenImageDenoise in `make deps` for macOS Reviewers: sergey, jbakker, brecht Reviewed By: brecht Subscribers: YAFU, LazyDodo, Zen_YS, slumber, samgreen, tjvoll, yeus, ponomarovmax, getrad, coder.kalyan, vitos1k, Yegor, DeepBlender, kumaran7, Darkfie9825, aliasguru, aafra, ace_dragon, juang3d, pandrodor, cdog, lordodin, jtheninja, mavek, marcog, 5k1n2, Atair, rawalanche, 0o00o0oo, filibis, poor, lukasstockner97 Tags: #compositing Differential Revision: https://developer.blender.org/D4304
2019-08-14deps: python 3.7.4 for windows.Lazydodo
This also updates to a new packaging method where python is runnable from the library folder rather than having tarballs in the release folder.
2019-08-05Cleanup/windows: Remove 32 bit support from make.bat helper scriptLazydodo
This change removes 32 bit support from the helper make.bat scripts as we are dropping official 32 bit support, you can still build for 32 bit by configuring your build yourself using cmake and pointing the LIBDIR cmake variable to your own 32 bit library folder.
2019-08-05Build: add config for developersBrecht Van Lommel
This has faster builds, error checks and tests. The number of cmake options for this type of thing has grown over the years and it's convenient to be able to point new developers to a single target. Previously the combination of all these options did not work correctly, now all tests should pass. The easiest way to use this is with the make wrapper, for example: make full developer debug Or set it manually with CMake: cmake -C ../blender/build_files/cmake/config/blender_developer.cmake . Differential Revision: https://developer.blender.org/D5149
2019-08-02Tests: also don't fail on memory leaks for gtestsBrecht Van Lommel
2019-07-31Spelling fixes in comments and descriptions, patch by luzpazBrecht Van Lommel
Differential Revision: https://developer.blender.org/D3744
2019-07-30cleanup: Fix typo in last commitLazydodo
Accidentally took the C flags as a base.
2019-07-30CMake/Windows: Enable JMC on compilers that support it.Lazydodo
JMC [1] enables more productive debugging of C++ code in visual studio this change enables it on debug builds for builds with visual studio 15.8 or higher. [1] https://devblogs.microsoft.com/cppblog/announcing-jmc-stepping-in-visual-studio/
2019-07-19CMake: Fix WITH_CODEC_SNDFILE detectionCampbell Barton
D5296 by @frispete
2019-06-29Cleanup: Fix build warnings with MSVCRay Molenkamp
gflags emits a few unused variable warnings since the main CMakeLists.txt raised the warning from w4 down to w3. This restores it back to w4 in the remove_strict_flags macro.
2019-06-28Fix OpenMP library for tests on macOSBrecht Van Lommel
2019-06-26MSVC: Don't share pch between debug and release builds.Ray Molenkamp
Precompiled headers were sharing the PCH file between debug and release builds which is 'bad'. Adding the configuration to the path fixes the issue. Reported on chat by @mano-wii
2019-06-19Cleanup: style, indentationCampbell Barton
2019-06-19CMake: cleanup, unset temporary var after useCampbell Barton
2019-06-18Fix T65852: Cmake fails with paths containing special characters.mano-wii
MATHES performs a regular expression which in this case is unnecessary.
2019-06-16Fix Cmake Error.mano-wii
`LAST_EXT` only works in versions 3.14 or greater.
2019-06-15Cmake: Add `WINDOWS_USE_VISUAL_STUDIO_SOURCE_FOLDERS` optionmano-wii
This allows grouping files in a filter corresponding to the source files name. Differential Revision: https://developer.blender.org/D5077
2019-06-15Cmake: rename `WINDOWS_USE_VISUAL_STUDIO_FOLDERS` option to ↵mano-wii
`WINDOWS_USE_VISUAL_STUDIO_PROJECT_FOLDERS`. Suggested by @LazyDodo
2019-06-15QtCreator/Visual Studio: Group glsl files in Shaders group.mano-wii
2019-06-06cmake/msvc: Add ninja support for precompiled headersRay Molenkamp
Ninja was unable to see the dependency between the cpp that generated the pch and the compile units that used it. Explicitly managing this now makes precompiled headers work with both msvc and clang, with both msbuild and ninja based generators.
2019-06-06Fix: Build error with ninja on windowsRay Molenkamp
Ninja has issues detecting the implicit dependency on the precompiled header output for freestyle. Disabled ninja support for now until a proper solution can be found.
2019-06-06Cleanup: indentationCampbell Barton
Also add comment to `FRS_precomp.h`.
2019-06-06Freestyle: Use precompiled headers with MSVC.Ray Molenkamp
This brings down the build time for freestyle with MSVC from a minute to 10-20 seconds. vs2019 bf_freestyle debug before: 60464 ms after: 11028 ms vs2019 bf_freestyle release before: 56984 ms after: 20526 ms Differential Revision: https://developer.blender.org/D2606 Reviewed By: brecht , sergey
2019-06-06CMake: pass link deps to library targets with INTERFACECampbell Barton
Introduced since removing BLENDER_SORTED_LIBS. This caused building a library to build all it's dependencies.
2019-06-02macOS: fix viewport lagging, by using CAMetalLayer instead of NSOpenGLViewTomoaki Kawada
On GPUs that support it, we now present OpenGL contents via CAMetalLayer. This fixes frame skipping issues found in T60043. If the system does not have a Metal capable GPU, NSOpenGLView will continue to be used. Patch by Tomoaki Kawada, with some changes by Brecht Van Lommel. Differential Revision: https://developer.blender.org/D4619
2019-06-02macOS: increase minimum required version to 10.11Brecht Van Lommel
This is in preparation of an the upcoming fix where we need to use a Metal layer to avoid performance issue when drawing with OpenGL. Note that we already only officially support 10.12+, the difference with this change is that Blender will not start at all on 10.9 and 10.10.
2019-05-27cmake: Fix building with clang on windows.Ray Molenkamp
2019-05-26Fix building with ninja on windowsRay Molenkamp
Broken by rB161908157d67ee8bcfa0c26917cccdc40e0c67ea
2019-05-25CMake/MSVC: Mark headers in the libdir as system headers.Ray Molenkamp
This marks the headers in the LIBDIR as system headers and changes the warn to /W0 on msvc versions that support it. This resolves some warnings we would had to completely repress otherwise.
2019-05-08CMake: Add support of Ninja's pools to ease building on limited amount of RAM.Bastien Montagne
Many modern computers support a lot of threads (parrallel building jobs), but are somewhat restricted in memory, when some building jobs can require several GB each. Ninja builder has pools, which extend the usual `-j X` make parallelizing option, by allowing to specify different numbers of parallel jobs for different targets. This commit defines three pools, one for linking, one for usual compile, and one for compiling some 'heavy' cpp libs, when a single file can require GB of RAM in full debug builds. Simply enabling WITH_NINJA_POOL_JOBS will try to set default sensible values for those three pools based on your machine specifications, you can then tweak further the values of NINJA_MAX_NUM_PARALLEL_ settings, if you like. On my system (8 cores, 16GB RAM), it allows to build a full debug with all ASAN options build with roughly 7GB of RAM used at most, pretty much as quickly as without that option (which would require up to 11GB of available RAM at some points). Review task: D4780.