2023-08-16 00:20:26 +10:00
|
|
|
# SPDX-FileCopyrightText: 2023 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
#
|
2022-02-11 09:07:11 +11:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
2017-07-25 16:37:55 +02:00
|
|
|
|
2022-11-03 12:10:16 +11:00
|
|
|
##################################################################################################
|
2017-07-25 16:37:55 +02:00
|
|
|
#
|
2024-06-20 02:30:22 +02:00
|
|
|
# This is a build system used by platform maintainers to build library dependencies.
|
2024-09-20 13:14:57 +10:00
|
|
|
# For users building Blender, we recommend using the pre-compiled libraries from `lib/`
|
2024-06-20 02:30:22 +02:00
|
|
|
# on all platforms.
|
2017-07-25 16:37:55 +02:00
|
|
|
#
|
2024-06-20 02:30:22 +02:00
|
|
|
# This CMake project is usually built through wrappers:
|
2024-09-20 13:14:57 +10:00
|
|
|
# * Windows: `build_files/build_environment/windows/build_deps.cmd`.
|
|
|
|
|
# * macOS and Linux: `make deps` from the blender directory.
|
2017-07-25 16:37:55 +02:00
|
|
|
#
|
2022-11-03 12:10:16 +11:00
|
|
|
##################################################################################################
|
2017-07-25 16:37:55 +02:00
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.5)
|
2024-01-23 20:21:12 +01:00
|
|
|
project("BlenderDependencies")
|
2022-12-05 23:18:54 +01:00
|
|
|
if(POLICY CMP0135)
|
|
|
|
|
cmake_policy(SET CMP0135 NEW) # CMake 3.24+ Set the date/time for extracted files to time of extraction
|
|
|
|
|
endif()
|
2017-07-25 16:37:55 +02:00
|
|
|
include(ExternalProject)
|
2024-02-08 15:23:14 +01:00
|
|
|
|
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake/Modules")
|
|
|
|
|
|
2019-08-29 17:46:04 +02:00
|
|
|
include(cmake/check_software.cmake)
|
2022-04-19 18:08:51 +02:00
|
|
|
include(cmake/options.cmake)
|
2022-11-03 12:10:16 +11:00
|
|
|
# `versions.cmake` needs to be included after `options.cmake`
|
|
|
|
|
# due to the `BLENDER_PLATFORM_ARM` variable being needed.
|
2022-06-30 16:44:38 +02:00
|
|
|
include(cmake/versions.cmake)
|
2021-03-16 14:10:30 +01:00
|
|
|
include(cmake/download.cmake)
|
2022-06-29 12:58:04 +02:00
|
|
|
include(cmake/macros.cmake)
|
2024-11-27 19:01:02 +11:00
|
|
|
# `setup_msys2.cmake` to install `perl`,
|
|
|
|
|
# which HIP needs to function for the compiler detection to work properly,
|
|
|
|
|
# hence needs to be included before `check_compilers.cmake`.
|
2023-06-14 21:57:48 +02:00
|
|
|
if(ENABLE_MSYS2)
|
|
|
|
|
include(cmake/setup_msys2.cmake)
|
2018-08-10 18:50:15 +03:00
|
|
|
else()
|
|
|
|
|
set(mingw_LIBDIR ${LIBDIR})
|
|
|
|
|
endif()
|
2024-11-25 08:51:22 -07:00
|
|
|
include(cmake/check_compilers.cmake)
|
|
|
|
|
include(cmake/harvest.cmake)
|
|
|
|
|
|
2022-12-05 23:18:54 +01:00
|
|
|
include(cmake/ssl.cmake)
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/zlib.cmake)
|
2021-07-14 18:22:23 -06:00
|
|
|
include(cmake/zstd.cmake)
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/openal.cmake)
|
|
|
|
|
include(cmake/png.cmake)
|
|
|
|
|
include(cmake/jpeg.cmake)
|
|
|
|
|
include(cmake/blosc.cmake)
|
|
|
|
|
include(cmake/pthreads.cmake)
|
2023-12-21 19:16:11 +01:00
|
|
|
include(cmake/deflate.cmake)
|
2022-04-19 18:08:51 +02:00
|
|
|
include(cmake/imath.cmake)
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/openexr.cmake)
|
2022-01-21 10:26:05 -07:00
|
|
|
include(cmake/brotli.cmake)
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/freetype.cmake)
|
2022-08-15 14:58:04 +02:00
|
|
|
include(cmake/epoxy.cmake)
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/alembic.cmake)
|
|
|
|
|
include(cmake/opensubdiv.cmake)
|
|
|
|
|
include(cmake/sdl.cmake)
|
|
|
|
|
include(cmake/opencollada.cmake)
|
2018-08-09 17:57:12 +03:00
|
|
|
if(APPLE)
|
|
|
|
|
include(cmake/openmp.cmake)
|
2020-09-16 12:44:17 +02:00
|
|
|
endif()
|
|
|
|
|
if(UNIX)
|
2020-07-07 10:47:09 +02:00
|
|
|
include(cmake/nasm.cmake)
|
2018-08-09 17:57:12 +03:00
|
|
|
endif()
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/tiff.cmake)
|
2021-07-27 10:15:31 +02:00
|
|
|
if(WIN32)
|
|
|
|
|
include(cmake/flexbison.cmake)
|
2021-08-09 16:46:57 +02:00
|
|
|
elseif(UNIX AND NOT APPLE)
|
2021-07-27 10:15:31 +02:00
|
|
|
include(cmake/flex.cmake)
|
|
|
|
|
endif()
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/tbb.cmake)
|
|
|
|
|
include(cmake/python.cmake)
|
2022-06-17 09:38:25 -06:00
|
|
|
include(cmake/llvm.cmake)
|
2022-12-05 23:18:54 +01:00
|
|
|
include(cmake/osl.cmake)
|
2023-03-22 18:01:43 +01:00
|
|
|
include(cmake/numpy.cmake)
|
2017-09-21 10:16:40 -06:00
|
|
|
include(cmake/python_site_packages.cmake)
|
2019-08-13 17:02:19 -06:00
|
|
|
include(cmake/package_python.cmake)
|
2022-12-05 23:18:54 +01:00
|
|
|
include(cmake/openimageio.cmake)
|
USD: Introducing a simple USD Exporter
This commit introduces the first version of an exporter to Pixar's
Universal Scene Description (USD) format.
Reviewed By: sergey, LazyDodo
Differential Revision: https://developer.blender.org/D6287
- The USD libraries are built by `make deps`, but not yet built by
install_deps.sh.
- Only experimental support for instancing; by default all duplicated
objects are made real in the USD file. This is fine for exporting a
linked-in posed character, not so much for thousands of pebbles etc.
- The way materials and UV coordinates and Normals are exported is going
to change soon.
- This patch contains LazyDodo's fixes for building on Windows in D5359.
== Meshes ==
USD seems to support neither per-material nor per-face-group
double-sidedness, so we just use the flag from the first non-empty
material slot. If there is no material we default to double-sidedness.
Each UV map is stored on the mesh in a separate primvar. Materials can
refer to these UV maps, but this is not yet exported by Blender. The
primvar name is the same as the UV Map name. This is to allow the
standard name "st" for texture coordinates by naming the UV Map as such,
without having to guess which UV Map is the "standard" one.
Face-varying mesh normals are written to USD. When the mesh has custom
loop normals those are written. Otherwise the poly flag `ME_SMOOTH` is
inspected to determine the normals.
The UV maps and mesh normals take up a significant amount of space, so
exporting them is optional. They're still enabled by default, though.
For comparison: a shot of Spring (03_035_A) is 1.2 GiB when exported
with UVs and normals, and 262 MiB without. We probably have room for
optimisation of written UVs and normals.
The mesh subdivision scheme isn't using the default value 'Catmull
Clark', but uses 'None', indicating we're exporting a polygonal mesh.
This is necessary for USD to understand our normals; otherwise the mesh
is always rendered smooth. In the future we may want to expose this
choice of subdivision scheme to the user, or auto-detect it when we
actually support exporting pre-subdivision meshes.
A possible optimisation could be to inspect whether all polygons are
smooth or flat, and mark the USD mesh as such. This can be added when
needed.
== Animation ==
Mesh and transform animation are now written when passing
`animation=True` to the export operator. There is no inspection of
whether an object is actually animated or not; USD can handle
deduplication of static values for us.
The administration of which timecode to use for the export is left to
the file-format-specific concrete subclasses of
`AbstractHierarchyIterator`; the abstract iterator itself doesn't know
anything about the passage of time. This will allow subclasses for the
frame-based USD format and time-based Alembic format.
== Support for simple preview materials ==
Very simple versions of the materials are now exported, using only the
viewport diffuse RGB, metallic, and roughness.
When there are multiple materials, the mesh faces are stored as geometry
subset and each material is assigned to the appropriate subset. If there
is only one material this is skipped.
The first material if any) is always applied to the mesh itself
(regardless of the existence of geometry subsets), because the Hydra
viewport doesn't support materials on subsets. See
https://github.com/PixarAnimationStudios/USD/issues/542 for more info.
Note that the geometry subsets are not yet time-sampled, so it may break
when an animated mesh changes topology.
Materials are exported as a flat list under a top-level '/_materials'
namespace. This inhibits instancing of the objects using those
materials, so this is subject to change.
== Hair ==
Only the parent strands are exported, and only with a constant colour.
No UV coordinates, no information about the normals.
== Camera ==
Only perspective cameras are supported for now.
== Particles ==
Particles are only written when they are alive, which means that they
are always visible (there is currently no code that deals with marking
them as invisible outside their lifespan).
Particle-system-instanced objects are exported by suffixing the object
name with the particle's persistent ID, giving each particle XForm a
unique name.
== Instancing/referencing ==
This exporter has experimental support for instancing/referencing.
Dupli-object meshes are now written to USD as references to the original
mesh. This is still very limited in correctness, as there are issues
referencing to materials from a referenced mesh.
I am still committing this, as it gives us a place to start when
continuing the quest for proper instancing in USD.
== Lights ==
USD does not directly support spot lights, so those aren't exported yet.
It's possible to add this in the future via the UsdLuxShapingAPI. The
units used for the light intensity are also still a bit of a mystery.
== Fluid vertex velocities ==
Currently only fluid simulations (not meshes in general) have explicit
vertex velocities. This is the most important case for exporting
velocities, though, as the baked mesh changes topology all the time, and
thus computing the velocities at import time in a post-processing step
is hard.
== The Building Process ==
- USD is built as monolithic library, instead of 25 smaller libraries.
We were linking all of them as 'whole archive' anyway, so this doesn't
affect the final file size. It does, however, make life easier with
respect to linking order, and handling upstream changes.
- The JSON files required by USD are installed into datafiles/usd; they
are required on every platform. Set the `PXR_PATH_DEBUG` to any value
to have the USD library print the paths it uses to find those files.
- USD is patched so that it finds the aforementioned JSON files in a path
that we pass to it from Blender.
- USD is patched to have a `PXR_BUILD_USD_TOOLS` CMake option to disable
building the tools in its `bin` directory. This is sent as a pull
request at https://github.com/PixarAnimationStudios/USD/pull/1048
2019-12-13 10:27:40 +01:00
|
|
|
include(cmake/usd.cmake)
|
2022-12-05 23:18:54 +01:00
|
|
|
include(cmake/materialx.cmake)
|
|
|
|
|
include(cmake/openvdb.cmake)
|
2020-09-15 13:16:37 -06:00
|
|
|
include(cmake/potrace.cmake)
|
2021-02-01 21:58:57 +05:30
|
|
|
include(cmake/haru.cmake)
|
2020-11-29 14:01:33 -07:00
|
|
|
include(cmake/pugixml.cmake)
|
2022-12-05 23:18:54 +01:00
|
|
|
include(cmake/fribidi.cmake)
|
|
|
|
|
include(cmake/harfbuzz.cmake)
|
2020-06-30 17:53:16 +02:00
|
|
|
if(NOT APPLE)
|
|
|
|
|
include(cmake/xr_openxr.cmake)
|
2024-09-17 15:26:27 +02:00
|
|
|
if(NOT BLENDER_PLATFORM_ARM)
|
2024-11-08 08:11:26 -07:00
|
|
|
if(HIP_FOUND)
|
|
|
|
|
include(cmake/hiprt.cmake)
|
2024-11-26 12:38:10 +11:00
|
|
|
else()
|
2024-11-08 08:11:26 -07:00
|
|
|
message(STATUS "Missing HIP compiler, skipping HIPRT build")
|
|
|
|
|
endif()
|
2024-03-06 15:45:51 +01:00
|
|
|
include(cmake/dpcpp.cmake)
|
|
|
|
|
include(cmake/dpcpp_deps.cmake)
|
2024-07-12 12:01:29 +02:00
|
|
|
if(NOT WIN32)
|
|
|
|
|
include(cmake/igc.cmake)
|
|
|
|
|
include(cmake/gmmlib.cmake)
|
|
|
|
|
include(cmake/ocloc.cmake)
|
|
|
|
|
endif()
|
2022-06-29 12:58:04 +02:00
|
|
|
endif()
|
2020-06-30 17:53:16 +02:00
|
|
|
endif()
|
2023-03-29 13:10:23 +02:00
|
|
|
include(cmake/ispc.cmake)
|
2024-09-17 14:57:04 +02:00
|
|
|
if(BLENDER_PLATFORM_WINDOWS_ARM)
|
|
|
|
|
include(cmake/openpgl_windows_arm.cmake)
|
|
|
|
|
else()
|
2024-03-06 15:45:51 +01:00
|
|
|
include(cmake/openpgl.cmake)
|
|
|
|
|
endif()
|
2024-09-20 13:14:57 +10:00
|
|
|
# EMBREE needs to be included after `dpcpp` as it uses it for compiling with GPU support
|
2024-03-06 15:45:51 +01:00
|
|
|
if(BLENDER_PLATFORM_WINDOWS_ARM)
|
2024-09-20 13:14:57 +10:00
|
|
|
# WoA needs EMBREE to be built with the VS Generator + LLVM,
|
2024-03-07 16:20:36 -05:00
|
|
|
# put it in its own file to avoid clutter.
|
2024-03-06 15:45:51 +01:00
|
|
|
include(cmake/embree_windows_arm.cmake)
|
|
|
|
|
else()
|
|
|
|
|
include(cmake/embree.cmake)
|
|
|
|
|
endif()
|
2023-03-29 13:10:23 +02:00
|
|
|
include(cmake/fmt.cmake)
|
|
|
|
|
include(cmake/robinmap.cmake)
|
|
|
|
|
include(cmake/xml2.cmake)
|
OpenColorIO: upgrade to version 2.0.0
Ref T84819
Build System
============
This is an API breaking new version, and the updated code only builds with
OpenColorIO 2.0 and later. Adding backwards compatibility was too complicated.
* Tinyxml was replaced with Expat, adding a new dependency.
* Yaml-cpp is now built as a dependency on Unix, as was already done on Windows.
* Removed currently unused LCMS code.
* Pystring remains built as part of OCIO itself, since it has no good build system.
* Linux and macOS check for the OpenColorIO verison, and disable it if too old.
Ref D10270
Processors and Transforms
=========================
CPU processors now need to be created to do CPU processing. These are cached
internally, but the cache lookup is not fast enough to execute per pixel or
texture sample, so for performance these are now also exposed in the C API.
The C API for transforms will no longer be needed afer all changes, so remove
it to simplify the API and fallback implementation.
Ref D10271
Display Transforms
==================
Needs a bit more manual work constructing the transform. LegacyViewingPipeline
could also have been used, but isn't really any simpler and since it's legacy
we better not rely on it.
We moved more logic into the opencolorio module, to simplify the API. There is
no need to wrap a dozen functions just to be able to do this in C rather than C++.
It's also tightly coupled to the GPU shader logic, and so should be in the same
module.
Ref D10271
GPU Display Shader
==================
To avoid baking exposure and gamma into the GLSL shader and requiring slow
recompiles when tweaking, we manually apply them in the shader. This leads
to some logic duplicaton between the CPU and GPU display processor, but it
seems unavoidable.
Caching was also changed. Previously this was done both on the imbuf and
opencolorio module levels. Now it's all done in the opencolorio module by
simply matching color space names. We no longer use cacheIDs from OpenColorIO
since computing them is expensive, and they are unlikely to match now that
more is baked into the shader code.
Shaders can now use multiple 2D textures, 3D textures and uniforms, rather
than a single 3D texture. So allocating and binding those adds some code.
Color space conversions for blending with overlays is now hardcoded in the
shader. This was using harcoded numbers anyway, if this every becomes a
general OpenColorIO transform it can be changed, but for now there is no
point to add code complexity.
Ref D10273
CIE XYZ
=======
We need standard CIE XYZ values for rendering effects like blackbody emission.
The relation to the scene linear role is based on OpenColorIO configuration.
In OpenColorIO 2.0 configs roles can no longer have the same name as color
spaces, which means our XYZ role and colorspace in the configuration give an
error.
Instead use the new standard aces_interchange role, which relates scene linear
to a known scene referred color space. Compatibility with the old XYZ role is
preserved, if the configuration file has no conflicting names.
Also includes a non-functional change to the configuraton file to use an
XYZ-to-ACES matrix instead of REC709-to-ACES, makes debugging a little easier
since the matrix is the same one we have in the code now and that is also
found easily in the ACES specs.
Ref D10274
2021-01-31 19:35:00 +01:00
|
|
|
# OpenColorIO and dependencies.
|
|
|
|
|
include(cmake/expat.cmake)
|
2022-04-19 18:08:51 +02:00
|
|
|
include(cmake/pystring.cmake)
|
OpenColorIO: upgrade to version 2.0.0
Ref T84819
Build System
============
This is an API breaking new version, and the updated code only builds with
OpenColorIO 2.0 and later. Adding backwards compatibility was too complicated.
* Tinyxml was replaced with Expat, adding a new dependency.
* Yaml-cpp is now built as a dependency on Unix, as was already done on Windows.
* Removed currently unused LCMS code.
* Pystring remains built as part of OCIO itself, since it has no good build system.
* Linux and macOS check for the OpenColorIO verison, and disable it if too old.
Ref D10270
Processors and Transforms
=========================
CPU processors now need to be created to do CPU processing. These are cached
internally, but the cache lookup is not fast enough to execute per pixel or
texture sample, so for performance these are now also exposed in the C API.
The C API for transforms will no longer be needed afer all changes, so remove
it to simplify the API and fallback implementation.
Ref D10271
Display Transforms
==================
Needs a bit more manual work constructing the transform. LegacyViewingPipeline
could also have been used, but isn't really any simpler and since it's legacy
we better not rely on it.
We moved more logic into the opencolorio module, to simplify the API. There is
no need to wrap a dozen functions just to be able to do this in C rather than C++.
It's also tightly coupled to the GPU shader logic, and so should be in the same
module.
Ref D10271
GPU Display Shader
==================
To avoid baking exposure and gamma into the GLSL shader and requiring slow
recompiles when tweaking, we manually apply them in the shader. This leads
to some logic duplicaton between the CPU and GPU display processor, but it
seems unavoidable.
Caching was also changed. Previously this was done both on the imbuf and
opencolorio module levels. Now it's all done in the opencolorio module by
simply matching color space names. We no longer use cacheIDs from OpenColorIO
since computing them is expensive, and they are unlikely to match now that
more is baked into the shader code.
Shaders can now use multiple 2D textures, 3D textures and uniforms, rather
than a single 3D texture. So allocating and binding those adds some code.
Color space conversions for blending with overlays is now hardcoded in the
shader. This was using harcoded numbers anyway, if this every becomes a
general OpenColorIO transform it can be changed, but for now there is no
point to add code complexity.
Ref D10273
CIE XYZ
=======
We need standard CIE XYZ values for rendering effects like blackbody emission.
The relation to the scene linear role is based on OpenColorIO configuration.
In OpenColorIO 2.0 configs roles can no longer have the same name as color
spaces, which means our XYZ role and colorspace in the configuration give an
error.
Instead use the new standard aces_interchange role, which relates scene linear
to a known scene referred color space. Compatibility with the old XYZ role is
preserved, if the configuration file has no conflicting names.
Also includes a non-functional change to the configuraton file to use an
XYZ-to-ACES matrix instead of REC709-to-ACES, makes debugging a little easier
since the matrix is the same one we have in the code now and that is also
found easily in the ACES specs.
Ref D10274
2021-01-31 19:35:00 +01:00
|
|
|
include(cmake/yamlcpp.cmake)
|
2022-12-05 23:18:54 +01:00
|
|
|
include(cmake/minizipng.cmake)
|
OpenColorIO: upgrade to version 2.0.0
Ref T84819
Build System
============
This is an API breaking new version, and the updated code only builds with
OpenColorIO 2.0 and later. Adding backwards compatibility was too complicated.
* Tinyxml was replaced with Expat, adding a new dependency.
* Yaml-cpp is now built as a dependency on Unix, as was already done on Windows.
* Removed currently unused LCMS code.
* Pystring remains built as part of OCIO itself, since it has no good build system.
* Linux and macOS check for the OpenColorIO verison, and disable it if too old.
Ref D10270
Processors and Transforms
=========================
CPU processors now need to be created to do CPU processing. These are cached
internally, but the cache lookup is not fast enough to execute per pixel or
texture sample, so for performance these are now also exposed in the C API.
The C API for transforms will no longer be needed afer all changes, so remove
it to simplify the API and fallback implementation.
Ref D10271
Display Transforms
==================
Needs a bit more manual work constructing the transform. LegacyViewingPipeline
could also have been used, but isn't really any simpler and since it's legacy
we better not rely on it.
We moved more logic into the opencolorio module, to simplify the API. There is
no need to wrap a dozen functions just to be able to do this in C rather than C++.
It's also tightly coupled to the GPU shader logic, and so should be in the same
module.
Ref D10271
GPU Display Shader
==================
To avoid baking exposure and gamma into the GLSL shader and requiring slow
recompiles when tweaking, we manually apply them in the shader. This leads
to some logic duplicaton between the CPU and GPU display processor, but it
seems unavoidable.
Caching was also changed. Previously this was done both on the imbuf and
opencolorio module levels. Now it's all done in the opencolorio module by
simply matching color space names. We no longer use cacheIDs from OpenColorIO
since computing them is expensive, and they are unlikely to match now that
more is baked into the shader code.
Shaders can now use multiple 2D textures, 3D textures and uniforms, rather
than a single 3D texture. So allocating and binding those adds some code.
Color space conversions for blending with overlays is now hardcoded in the
shader. This was using harcoded numbers anyway, if this every becomes a
general OpenColorIO transform it can be changed, but for now there is no
point to add code complexity.
Ref D10273
CIE XYZ
=======
We need standard CIE XYZ values for rendering effects like blackbody emission.
The relation to the scene linear role is based on OpenColorIO configuration.
In OpenColorIO 2.0 configs roles can no longer have the same name as color
spaces, which means our XYZ role and colorspace in the configuration give an
error.
Instead use the new standard aces_interchange role, which relates scene linear
to a known scene referred color space. Compatibility with the old XYZ role is
preserved, if the configuration file has no conflicting names.
Also includes a non-functional change to the configuraton file to use an
XYZ-to-ACES matrix instead of REC709-to-ACES, makes debugging a little easier
since the matrix is the same one we have in the code now and that is also
found easily in the ACES specs.
Ref D10274
2021-01-31 19:35:00 +01:00
|
|
|
include(cmake/opencolorio.cmake)
|
|
|
|
|
|
2021-04-20 14:00:05 +02:00
|
|
|
if(BLENDER_PLATFORM_ARM)
|
2021-02-15 17:30:59 +01:00
|
|
|
include(cmake/sse2neon.cmake)
|
|
|
|
|
endif()
|
|
|
|
|
|
2022-04-19 18:08:51 +02:00
|
|
|
include(cmake/webp.cmake)
|
|
|
|
|
if(NOT APPLE)
|
|
|
|
|
include(cmake/level-zero.cmake)
|
2017-09-22 13:57:21 -06:00
|
|
|
endif()
|
2018-09-10 14:25:06 +02:00
|
|
|
|
2023-06-14 21:57:48 +02:00
|
|
|
if(NOT WIN32 OR ENABLE_MSYS2)
|
2020-07-31 09:34:26 -06:00
|
|
|
include(cmake/gmp.cmake)
|
2017-09-22 13:57:21 -06:00
|
|
|
include(cmake/openjpeg.cmake)
|
2019-01-14 15:09:48 +01:00
|
|
|
if(NOT WIN32 OR BUILD_MODE STREQUAL Release)
|
2023-12-23 11:45:11 -07:00
|
|
|
include(cmake/openimagedenoise.cmake)
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/lame.cmake)
|
|
|
|
|
include(cmake/ogg.cmake)
|
|
|
|
|
include(cmake/vorbis.cmake)
|
|
|
|
|
include(cmake/theora.cmake)
|
2019-10-04 16:29:37 +02:00
|
|
|
include(cmake/opus.cmake)
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/vpx.cmake)
|
|
|
|
|
include(cmake/x264.cmake)
|
2024-06-05 09:29:28 -06:00
|
|
|
include(cmake/x265.cmake)
|
2022-07-26 13:17:23 +02:00
|
|
|
include(cmake/aom.cmake)
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/ffmpeg.cmake)
|
|
|
|
|
include(cmake/fftw.cmake)
|
2023-06-14 21:57:48 +02:00
|
|
|
include(cmake/flac.cmake)
|
2017-07-25 16:37:55 +02:00
|
|
|
include(cmake/sndfile.cmake)
|
|
|
|
|
if(UNIX)
|
|
|
|
|
if(NOT APPLE)
|
|
|
|
|
include(cmake/spnav.cmake)
|
|
|
|
|
include(cmake/jemalloc.cmake)
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
|
2018-09-10 14:25:06 +02:00
|
|
|
if(UNIX)
|
2018-08-28 12:17:04 +02:00
|
|
|
include(cmake/bzip2.cmake)
|
2018-08-28 18:53:59 +02:00
|
|
|
include(cmake/ffi.cmake)
|
2018-08-28 12:17:04 +02:00
|
|
|
include(cmake/lzma.cmake)
|
|
|
|
|
include(cmake/sqlite.cmake)
|
2018-08-27 18:09:30 +02:00
|
|
|
endif()
|
|
|
|
|
|
2019-10-09 12:36:40 +02:00
|
|
|
if(UNIX AND NOT APPLE)
|
|
|
|
|
include(cmake/libglu.cmake)
|
|
|
|
|
include(cmake/mesa.cmake)
|
2021-06-29 23:36:23 +01:00
|
|
|
include(cmake/wayland_protocols.cmake)
|
2022-09-27 11:54:35 +10:00
|
|
|
# Can be removed when the build-bot upgrades to v1.20.x or newer.
|
2022-09-27 14:09:12 +02:00
|
|
|
include(cmake/wayland.cmake)
|
2022-10-08 07:54:22 +11:00
|
|
|
include(cmake/wayland_libdecor.cmake)
|
2023-11-07 12:57:45 +11:00
|
|
|
include(cmake/wayland_weston.cmake)
|
2019-10-09 12:36:40 +02:00
|
|
|
endif()
|
2022-12-05 23:18:54 +01:00
|
|
|
include(cmake/shaderc_deps.cmake)
|
|
|
|
|
include(cmake/shaderc.cmake)
|
|
|
|
|
include(cmake/vulkan.cmake)
|
|
|
|
|
include(cmake/pybind11.cmake)
|
2025-02-06 14:53:16 +01:00
|
|
|
include(cmake/nanobind.cmake)
|
|
|
|
|
# Keep these last
|
2023-07-20 16:09:27 +02:00
|
|
|
include(cmake/deps_html.cmake)
|
2022-10-10 11:48:05 -06:00
|
|
|
include(cmake/cve_check.cmake)
|