Blender Git Loki

Git Commits -> Revision d07a769

Revision d07a769 by Sybren A. Stüvel (master)
March 16, 2021, 13:10 (GMT)
Fix T86124: Self-hosting external libraries packages

Allow downloading of source packages of Blender's dependencies, so that
it's easier to provide a "full source archive" that contains the blender
source + all dependencies archives. A `make` command for this will be
introduced soon.

This changes the deps builder slightly to be more flexible with the
origin of our source packages.

To support this a new CMake variable has been added called `PACKAGE_DIR`
where all sources archives will be stored.

default: a directory called `packages` in the build folder.

alternative-default: if a directory called `packages` exists in the
blender source folder that will be used. This is to support the "full
source archive" use case.

The download phase have been moved from the build phase to the configure
phase. Configure will download all sources validate the hashes while
downloading.

All `[depname].cmake` files have been changed to take a local
`file://[path_to_local_tarball]` path rather than a remote URI.

A second requirement was that there needed to be an option to grab the
sources from the blender SVN mirror rather than upstream. For this an
option has been added PACKAGE_USE_UPSTREAM_SOURCES (default ON). The
exact location in SVN still needs to be worked out, I tested with my
local webserver and codewise it checks out. The path that is in there
currently will not work (given there is no mirror there yet).

To build this mirror our local package caches can be used.

Reviewed By: lazydodo

Differential Revision: https://developer.blender.org/D10598

Commit Details:

Full Hash: d07a7697cfb064f5129469018082f43a8a86d92f
Parent Commit: 4d3cdb3
Lines Changed: +398, -161

1 Added Path:

/build_files/build_environment/cmake/download.cmake (+93, -0) (View)

72 Modified Paths:

/build_files/build_environment/cmake/alembic.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/blosc.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/boost.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/bzip2.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/clew.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/cuew.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/embree.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/expat.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/ffi.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/ffmpeg.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/fftw.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/flac.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/flexbison.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/freeglut.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/freetype.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/glew.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/glfw.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/gmp.cmake (+4, -4) (Diff)
/build_files/build_environment/cmake/haru.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/iconv.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/ispc.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/jemalloc.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/jpeg.cmake (+4, -4) (Diff)
/build_files/build_environment/cmake/lame.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/libglu.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/llvm.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/lzma.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/mesa.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/nanovdb.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/nasm.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/numpy.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/ogg.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/openal.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/opencollada.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/opencolorio.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/openexr.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/openimagedenoise.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/openimageio.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/openjpeg.cmake (+4, -4) (Diff)
/build_files/build_environment/cmake/openmp.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/opensubdiv.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/openvdb.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/options.cmake (+13, -1) (Diff)
/build_files/build_environment/cmake/opus.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/osl.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/png.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/potrace.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/pthreads.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/pugixml.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/python.cmake (+4, -4) (Diff)
/build_files/build_environment/cmake/sdl.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/sndfile.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/spnav.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/sqlite.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/ssl.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/tbb.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/theora.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/tiff.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/usd.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/versions.cmake (+145, -13) (Diff)
/build_files/build_environment/cmake/vorbis.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/vpx.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/webp.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/x264.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/xml2.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/xr_openxr.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/xvidcore.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/yamlcpp.cmake (+2, -2) (Diff)
/build_files/build_environment/cmake/zlib.cmake (+2, -3) (Diff)
/build_files/build_environment/cmake/zlib_mingw.cmake (+2, -2) (Diff)
/build_files/build_environment/CMakeLists.txt (+1, -0) (Diff)
/build_files/build_environment/windows/build_deps.cmd (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021