2008-04-17 00:40:48 +02:00
|
|
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
2006-11-17 03:27:12 +01:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
2008-04-17 00:40:48 +02:00
|
|
|
# of the License, or (at your option) any later version.
|
2006-11-17 03:27:12 +01:00
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
2012-02-11 05:05:00 +01:00
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2006-11-17 03:27:12 +01:00
|
|
|
#
|
|
|
|
# The Original Code is Copyright (C) 2006, Blender Foundation
|
|
|
|
# All rights reserved.
|
2008-04-17 00:40:48 +02:00
|
|
|
# ***** END GPL LICENSE BLOCK *****
|
2006-11-17 03:27:12 +01:00
|
|
|
|
2016-04-15 10:02:17 +02:00
|
|
|
# Libs that adhere to strict flags
|
|
|
|
add_subdirectory(curve_fit_nd)
|
|
|
|
|
2010-10-15 04:24:48 +02:00
|
|
|
# Otherwise we get warnings here that we cant fix in external projects
|
2010-10-24 05:57:07 +02:00
|
|
|
remove_strict_flags()
|
2006-11-17 03:27:12 +01:00
|
|
|
|
2016-07-11 07:27:48 +02:00
|
|
|
# Not a strict flag, but noisy for code we don't maintain
|
|
|
|
if(CMAKE_COMPILER_IS_GNUCC)
|
|
|
|
remove_cc_flag(
|
|
|
|
"-Wmisleading-indentation"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2012-12-30 19:20:52 +01:00
|
|
|
add_subdirectory(rangetree)
|
2013-03-12 08:25:53 +01:00
|
|
|
add_subdirectory(wcwidth)
|
2011-10-23 19:52:20 +02:00
|
|
|
|
2008-01-30 00:13:31 +01:00
|
|
|
if(WITH_BULLET)
|
2013-01-03 01:23:52 +01:00
|
|
|
if(NOT WITH_SYSTEM_BULLET)
|
|
|
|
add_subdirectory(bullet2)
|
|
|
|
endif()
|
2008-01-30 00:13:31 +01:00
|
|
|
endif()
|
Merge of apricot branch game engine changes into trunk, excluding GLSL.
GLEW
====
Added the GLEW opengl extension library into extern/, always compiled
into Blender now. This is much nicer than doing this kind of extension
management manually, and will be used in the game engine, for GLSL, and
other opengl extensions.
* According to the GLEW website it works on Windows, Linux, Mac OS X,
FreeBSD, Irix, and Solaris. There might still be platform specific
issues due to this commit, so let me know and I'll look into it.
* This means also that all extensions will now always be compiled in,
regardless of the glext.h on the platform where compilation happens.
Game Engine
===========
Refactoring of the use of opengl extensions and other drawing code
in the game engine, and cleaning up some hacks related to GLSL
integration. These changes will be merged into trunk too after this.
The game engine graphics demos & apricot level survived my tests,
but this could use some good testing of course.
For users: please test with the options "Generate Display Lists" and
"Vertex Arrays" enabled, these should be the fastest and are supposed
to be "unreliable", but if that's the case that's probably due to bugs
that can be fixed.
* The game engine now also uses GLEW for extensions, replacing the
custom opengl extensions code that was there. Removes a lot of
#ifdef's, but the runtime checks stay of course.
* Removed the WITHOUT_GLEXT environment variable. This was added to
work around a specific bug and only disabled multitexturing anyway.
It might also have caused a slowdown since it was retrieving the
environment variable for every vertex in immediate mode (bug #13680).
* Refactored the code to allow drawing skinned meshes with vertex
arrays too, removing some specific immediate mode drawing functions
for this that only did extra normal calculation. Now it always splits
vertices of flat faces instead.
* Refactored normal recalculation with some minor optimizations,
required for the above change.
* Removed some outdated code behind the __NLA_OLDDEFORM #ifdef.
* Fixed various bugs in setting of multitexture coordinates and vertex
attributes for vertex arrays. These were not being enabled/disabled
correct according to the opengl spec, leading to crashes. Also tangent
attributes used an immediate mode call for vertex arrays, which can't
work.
* Fixed use of uninitialized variable in RAS_TexVert.
* Exporting skinned meshes was doing O(n^2) lookups for vertices and
deform weights, now uses same trick as regular meshes.
2008-06-17 12:27:34 +02:00
|
|
|
|
2019-04-11 11:26:23 +02:00
|
|
|
if(WITH_DRACO)
|
|
|
|
add_subdirectory(draco)
|
|
|
|
endif()
|
|
|
|
|
2011-02-21 14:13:08 +01:00
|
|
|
if(WITH_BINRELOC)
|
2009-06-08 22:08:19 +02:00
|
|
|
add_subdirectory(binreloc)
|
2008-01-22 06:34:53 +01:00
|
|
|
endif()
|
Merge of apricot branch game engine changes into trunk, excluding GLSL.
GLEW
====
Added the GLEW opengl extension library into extern/, always compiled
into Blender now. This is much nicer than doing this kind of extension
management manually, and will be used in the game engine, for GLSL, and
other opengl extensions.
* According to the GLEW website it works on Windows, Linux, Mac OS X,
FreeBSD, Irix, and Solaris. There might still be platform specific
issues due to this commit, so let me know and I'll look into it.
* This means also that all extensions will now always be compiled in,
regardless of the glext.h on the platform where compilation happens.
Game Engine
===========
Refactoring of the use of opengl extensions and other drawing code
in the game engine, and cleaning up some hacks related to GLSL
integration. These changes will be merged into trunk too after this.
The game engine graphics demos & apricot level survived my tests,
but this could use some good testing of course.
For users: please test with the options "Generate Display Lists" and
"Vertex Arrays" enabled, these should be the fastest and are supposed
to be "unreliable", but if that's the case that's probably due to bugs
that can be fixed.
* The game engine now also uses GLEW for extensions, replacing the
custom opengl extensions code that was there. Removes a lot of
#ifdef's, but the runtime checks stay of course.
* Removed the WITHOUT_GLEXT environment variable. This was added to
work around a specific bug and only disabled multitexturing anyway.
It might also have caused a slowdown since it was retrieving the
environment variable for every vertex in immediate mode (bug #13680).
* Refactored the code to allow drawing skinned meshes with vertex
arrays too, removing some specific immediate mode drawing functions
for this that only did extra normal calculation. Now it always splits
vertices of flat faces instead.
* Refactored normal recalculation with some minor optimizations,
required for the above change.
* Removed some outdated code behind the __NLA_OLDDEFORM #ifdef.
* Fixed various bugs in setting of multitexture coordinates and vertex
attributes for vertex arrays. These were not being enabled/disabled
correct according to the opengl spec, leading to crashes. Also tangent
attributes used an immediate mode call for vertex arrays, which can't
work.
* Fixed use of uninitialized variable in RAS_TexVert.
* Exporting skinned meshes was doing O(n^2) lookups for vertices and
deform weights, now uses same trick as regular meshes.
2008-06-17 12:27:34 +02:00
|
|
|
|
2012-06-23 15:42:14 +02:00
|
|
|
if(NOT WITH_SYSTEM_GLEW)
|
2014-10-07 22:46:19 +02:00
|
|
|
if(WITH_GLEW_ES)
|
|
|
|
add_subdirectory(glew-es)
|
|
|
|
else()
|
|
|
|
add_subdirectory(glew)
|
|
|
|
endif()
|
2011-04-06 01:31:01 +02:00
|
|
|
endif()
|
2011-09-10 05:42:45 +02:00
|
|
|
|
2015-03-13 12:33:31 +01:00
|
|
|
if(WITH_LZO AND NOT WITH_SYSTEM_LZO)
|
2009-09-25 04:40:10 +02:00
|
|
|
add_subdirectory(lzo)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(WITH_LZMA)
|
|
|
|
add_subdirectory(lzma)
|
|
|
|
endif()
|
2011-11-07 13:55:18 +01:00
|
|
|
|
2015-07-20 16:08:06 +02:00
|
|
|
if(WITH_CYCLES OR WITH_COMPOSITOR OR WITH_OPENSUBDIV)
|
2014-08-05 09:57:50 +02:00
|
|
|
add_subdirectory(clew)
|
2016-01-14 08:24:09 +01:00
|
|
|
if(WITH_CUDA_DYNLOAD)
|
|
|
|
add_subdirectory(cuew)
|
|
|
|
endif()
|
2014-08-05 09:57:50 +02:00
|
|
|
endif()
|
|
|
|
|
2020-05-01 11:14:50 +02:00
|
|
|
if(WITH_GHOST_X11 AND WITH_GHOST_XDND)
|
2014-10-07 22:46:19 +02:00
|
|
|
add_subdirectory(xdnd)
|
2012-02-17 17:58:09 +01:00
|
|
|
endif()
|
2014-06-18 14:49:17 +02:00
|
|
|
|
2016-01-04 14:11:12 +01:00
|
|
|
if(WITH_LIBMV)
|
|
|
|
add_subdirectory(ceres)
|
|
|
|
endif()
|
|
|
|
|
2016-01-04 12:47:36 +01:00
|
|
|
if(WITH_LIBMV OR WITH_GTESTS OR (WITH_CYCLES AND WITH_CYCLES_LOGGING))
|
2017-10-30 02:58:44 +01:00
|
|
|
if(NOT WITH_SYSTEM_GFLAGS)
|
2017-04-21 10:58:01 +02:00
|
|
|
add_subdirectory(gflags)
|
|
|
|
endif()
|
2016-01-04 12:47:36 +01:00
|
|
|
add_subdirectory(glog)
|
|
|
|
endif()
|
|
|
|
|
2014-06-18 18:28:27 +02:00
|
|
|
if(WITH_GTESTS)
|
2014-06-18 14:49:17 +02:00
|
|
|
add_subdirectory(gtest)
|
2016-07-29 18:34:33 +02:00
|
|
|
add_subdirectory(gmock)
|
2014-06-18 14:49:17 +02:00
|
|
|
endif()
|
2014-11-17 12:35:36 +01:00
|
|
|
|
|
|
|
if(WITH_SDL AND WITH_SDL_DYNLOAD)
|
|
|
|
add_subdirectory(sdlew)
|
|
|
|
endif()
|
2017-08-18 08:24:12 +02:00
|
|
|
|
|
|
|
if(WITH_AUDASPACE AND NOT WITH_SYSTEM_AUDASPACE)
|
|
|
|
set(AUDASPACE_CMAKE_CFG ${CMAKE_CURRENT_SOURCE_DIR}/audaspace/blender_config.cmake)
|
|
|
|
add_subdirectory(audaspace)
|
|
|
|
endif()
|
2019-08-26 18:34:11 +02:00
|
|
|
|
|
|
|
if(WITH_QUADRIFLOW)
|
|
|
|
set(QUADRIFLOW_CMAKE_CFG ${CMAKE_CURRENT_SOURCE_DIR}/quadriflow/blender_config.cmake)
|
|
|
|
add_subdirectory(quadriflow)
|
|
|
|
endif()
|
2019-12-16 15:50:14 +01:00
|
|
|
|
|
|
|
if(WITH_MOD_FLUID)
|
|
|
|
add_subdirectory(mantaflow)
|
|
|
|
endif()
|